[Zope] - Installation Problem

Jim Fulton jim.fulton@Digicool.com
Wed, 09 Dec 1998 08:57:27 -0500


Nick Busigin wrote:
> 
> Version of python:  Python 1.5.1 (#1, Jun 18 1998, 12:39:25)
>                     [GCC 2.7.2.3] on linux2
> 
> Operating System:   Linux (Debian/GNU v2/0 on an Intel clone Box)
> 
> C-Compiler: GNU's gcc v2.7.2.3
> 
> I'm having some trouble installing Zope and would appreciate some advice.
> Here's what I've done and how far I've gotten:
> 
> 1) Downloaded Zope-1.9b1-src.tar.gz
> 
> 2) Executed 'tar zxvf Zope-1.9b1-src.tar.gz' in a directory
>    called Zope (subdirectory to my home dir).
> 
> 3) Read /Zope-1.9b1-src/doc/INSTALL.txt (and other doc's)
> 
> 4) Ran 'python wo_pcgi.py' from the top level of the source tree
>    and this seemed to work O.K. for a while, but then it crapped
>    out at this point:
> 
> ---------- start partial screen dump -------------
> 
> gcc -shared -lc  cPickleJar.o  -o cPickleJar.so
> gcc -fpic -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
> -DHAVE_CONFIG_H  -I../../Components/ExtensionClass -c ./iTree.c
> ./iTree.c:516: `EXTENSIONCLASS_BASICNEW_FLAG' undeclared here (not in a
> function)
> ./iTree.c:516: initializer element for `BucketType.class_flags' is not
> constant
> make: *** [iTree.o] Error 1
> Traceback (innermost last):
>   File "wo_pcgi.py", line 100, in ?
>   File "/home/nick/Zope/Zope-1.9b1-src/build_extensions.py", line 98, in ?
>     make('lib','python','BoboPOS')
>   File "/home/nick/Zope/Zope-1.9b1-src/do.py", line 106, in make
>     do('make')
>   File "/home/nick/Zope/Zope-1.9b1-src/do.py", line 97, in do
>     if i and picky: raise SystemError, i
> SystemError: 512
> 
> ---------- end of partial screen dump -------------
> 
> I'd appreciate advice on how to fix this.

This is strange.  

It looks as though the compiler found an old ExtensionClass.h
file on the include path.  
lib/Components/ExtensionClass/ExtenionClas.h defines 
EXTENSIONCLASS_BASICNEW_FLAG, but the compiler doesn't seem to 
see this definition.  This flag first appeared 
in ExtenionClass release 1.1.

Have you, by any chance, installed ExtensionClass 1.0
in the past and copied the ExtensionClass.h file to the Python include
directories?

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (888) 344-4332              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.