This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients pitrou, skrah, tarek
Date 2010-11-24.14:05:47
SpamBayes Score 0.0009894236
Marked as misclassified No
Message-id <1290607556.28.0.945451412885.issue10520@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2010-11-24 14:05:56skrahsetrecipients: + skrah, pitrou, tarek
2010-11-24 14:05:56skrahsetmessageid: <1290607556.28.0.945451412885.issue10520@psf.upfronthosting.co.za>
2010-11-24 14:05:48skrahlinkissue10520 messages
2010-11-24 14:05:47skrahcreate