Hi, I've compiled up Python 1.5.2 on our Solaris box, (./configure --with-threads) Then (from the lastest CVS) % python wo_pcgi.py (lots of stuff). then 80 % python z2.py -2 -w 9900 zinit: Wed May 19 16:32:49 1999: Houston, we have forked zinit: Wed May 19 16:32:49 1999: Houston, we have forked zinit: Wed May 19 16:32:49 1999: Hi, I just forked off a kid: 5002 Traceback (innermost last): File "z2.py", line 284, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/home/nnle/zope/Zope2/Zope/lib/python/Main.py", line 100, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/home/nnle/zope/Zope2/Zope/lib/python/BoboPOS/__init__.py", line 93, in ? import ExtensionClass, cStringIO ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /home/nnle/zope/Zope2/Zope/lib/python/ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not found zinit: Wed May 19 16:32:49 1999: Aiieee! 5002 exited with error code: 256 Is there anywhere I can look to batter this bug down? Tone ps *love* the descriptions! ('Houston, we have forked' and ' Aiieee!'). ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
Tony McDonald wrote:
Hi, I've compiled up Python 1.5.2 on our Solaris box, (./configure --with-threads)
Then (from the lastest CVS)
Yee ha!
% python wo_pcgi.py (lots of stuff).
then 80 % python z2.py -2 -w 9900 zinit: Wed May 19 16:32:49 1999: Houston, we have forked zinit: Wed May 19 16:32:49 1999: Houston, we have forked zinit: Wed May 19 16:32:49 1999: Hi, I just forked off a kid: 5002 Traceback (innermost last): File "z2.py", line 284, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/home/nnle/zope/Zope2/Zope/lib/python/Main.py", line 100, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/home/nnle/zope/Zope2/Zope/lib/python/BoboPOS/__init__.py", line 93, in ? import ExtensionClass, cStringIO ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /home/nnle/zope/Zope2/Zope/lib/python/ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not found zinit: Wed May 19 16:32:49 1999: Aiieee! 5002 exited with error code: 256
Is there anywhere I can look to batter this bug down?
Curious. To narrow things, I recommend starting by trying to import ExtensionClass from a Python prompt. I suggest going to lib/python and trying to import ExtensionClass yourself. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.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.
Curious. To narrow things, I recommend starting by trying to import ExtensionClass from a Python prompt. I suggest going to lib/python and trying to import ExtensionClass yourself.
Jim
Jim, thanks for the thoughts. I've gone to lib/python and .. 199 % python Python 1.5.2 (#1, May 20 1999, 13:54:05) [GCC egcs-2.91.66 19990314 (egcs-1.1.2 on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import BTree Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./BTree.so: symbol PyImport_ImportModule: referenced symbol not found import Missing Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./Missing.so: symbol PyImport_ImportModule: referenced symbol not found import ExtensionClass Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not found
and I'm completely stumped. Is it anything to do with the way I've compiled up Python by any chance? Anyone who's compiled up Python 1.5.2 under Solaris have any thoughts? Many thanks for the help, tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
199 % python Python 1.5.2 (#1, May 20 1999, 13:54:05) [GCC egcs-2.91.66 19990314 (egcs-1.1.2 on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import BTree Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./BTree.so: symbol PyImport_ImportModule: referenced symbol not found import Missing Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./Missing.so: symbol PyImport_ImportModule: referenced symbol not found
and I'm completely stumped.
Is it anything to do with the way I've compiled up Python by any chance? Anyone who's compiled up Python 1.5.2 under Solaris have any thoughts?
Have you enabled shared library support during python compilation? Check the Modules/Setup file in your Python directory and find a line whith the entry: *shared* It should be uncommented. Pavlos
Is it anything to do with the way I've compiled up Python by any chance? Anyone who's compiled up Python 1.5.2 under Solaris have any thoughts?
Have you enabled shared library support during python compilation? Check the Modules/Setup file in your Python directory and find a line whith the entry: *shared*
It should be uncommented.
Pavlos
Pavlos, many thanks for that piece of advice. However, after uncommenting the *shared* line, I'm getting *a lot* of failures on 'make test' with some (test_re for example) actually crashing. :( If anyone can point me at a site where I can get details on how to compile up Python 1.5.2 for Solaris I'd be way grateful - I don't really want to clutter this list. I've scoured www.python.org but nothing has come up really (and checked out section 3 of the FAQ). cheers tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
participants (3)
-
Jim Fulton -
Pavlos Christoforou -
Tony McDonald