Message122278
Building the modules fails if --enable-shared is used. The linker picks
up an existing library from /usr/local/lib, which has not been compiled
with -fPIC:
gcc -pthread -shared build/temp.linux-x86_64-3.2/home/stefan/svn/py3k/Modules/_struct.o -L/usr/local/lib -L. -lpython3.2m -o build/lib.linux-x86_64-3.2/_struct.cpython-32m.so
/usr/bin/ld: /usr/local/lib/libpython3.2m.a(abstract.o): relocation R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.2m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Linking works if the order of the flags is changed to "-L. L/usr/local/lib". |
|
Date |
User |
Action |
Args |
2010-11-24 14:05:56 | skrah | set | recipients:
+ skrah, pitrou, tarek |
2010-11-24 14:05:56 | skrah | set | messageid: <1290607556.28.0.945451412885.issue10520@psf.upfronthosting.co.za> |
2010-11-24 14:05:48 | skrah | link | issue10520 messages |
2010-11-24 14:05:47 | skrah | create | |
|