Python-2.1.1 and gcc-3.0.x ?
Pekko Piirola
pekko at iki.fi
Tue Sep 4 09:53:45 EDT 2001
I'm having problems when compiling the Python-2.1.1 with gcc-3.0 or
gcc-3.0.1. The compiled interpreter seems to run OK, but whenever I'm
trying to import a module, it complains as:
---------------------------------------------------------------------
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 39, in ?
import random
File "/scratch/src/Python-2.1.1/Lib/random.py", line 76, in ?
from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: /scratch/src/Python-2.1.1/Modules/mathmodule.so: undefined symbol:
__dso_handle
---------------------------------------------------------------------
(This output is from 'make test', that's why the directories are
under /scratch/src/Python-2.1.1)
The symbol __dso_handle is defined in the library
/usr/local/lib/libgcc_s.so.1, as you see:
$ nm -s /usr/local/lib/libgcc_s.so.1 | grep __dso_handle
0000700c d __dso_handle
Any ideas where to look from advise, or what to do?
--
Pekko Piirola
More information about the Python-list
mailing list