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. Thanks in advance, Nick -------------------------------------------------------------------------- Nick Busigin ...Sent from my Debian/GNU Linux Machine... nick@xwing.org To obtain my pgp public key, email me with the subject: "get pgp-key" --------------------------------------------------------------------------
Hi, I have the .exact. problem same configuration, intel box ... is it possible to fix it somehow? On Mon, Dec 07, 1998 at 07:28:01PM -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.
Thanks in advance,
-- Pavel Piankov dot at spb dot sitek dot net
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.
Thank you a lot, Jim! this should be added in a FAQ (% ExtensionClass.h is included in python-extclass package. soo if Zope is to be installed on a Debian box, this package should be removed. On Wed, Dec 09, 1998 at 08:57:27AM -0500, Jim Fulton wrote:
Have you, by any chance, installed ExtensionClass 1.0 in the past and copied the ExtensionClass.h file to the Python include directories?
-- Pavel Piankov dot at spb dot sitek dot net
On Thu, Dec 10, 1998 at 02:02:51AM +0300, pashah@spb.sitek.net wrote:
Thank you a lot, Jim! this should be added in a FAQ (% ExtensionClass.h is included in python-extclass package. soo if Zope is to be installed on a Debian box, this package should be removed.
On Wed, Dec 09, 1998 at 08:57:27AM -0500, Jim Fulton wrote:
Have you, by any chance, installed ExtensionClass 1.0 in the past and copied the ExtensionClass.h file to the Python include directories?
You could also upgrade to the python-extclass package from slink (slink is the not yet released Debian 2.1), which is python-extclass_1.2-1. But IMHO, this problem really reveals an annoyance in Python's makesetup. makesetup puts the global include directories "$(INCLUDEPY) $(EXECINCLUDEPY)" in front of the directories defined by the module in Setup. Therefore global (potentially older) header files are preferred over the ones set by the module, which makes it hard to compile new versions of modules when the old versions are installed. AFAIK, the other way around is common practice for most other software. This patch to makesetup would be an potential fix for this problem, though I don't know if it breaks anything else. Gregor --- /usr/lib/python1.5/config/makesetup Mon Nov 2 19:33:03 1998 +++ makesetup Thu Dec 10 15:09:19 1998 @@ -183,7 +183,7 @@ case $doconfig in no) cc="$cc \$(CCSHARED)";; esac - rule="$obj: $src; $cc \$(CFLAGS) $cpps -c $src" + rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src" echo "$rule" >>$rulesf done case $doconfig in
participants (4)
-
Gregor Hoffleit -
Jim Fulton -
Nick Busigin -
pashah@spb.sitek.net