relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

Christian Heimes lists at
Sun Feb 15 19:27:03 CET 2009

tkevans schrieb:
> Found a couple of references to this in the newsgroup, but no
> solutions.
> I'm trying to build libsbml-3.3.0 with python 2.5.4 support on RHEL
> 5.3.  This RedHat distro has python 2.4.5, and libsbml builds ok with
> that release.
> After building 2.5.4 (./configure CFLAGS=-fPIC , as the error message
> suggests), ld still croaks here:

How about compiling Python as a shared library? ./configure
--enable-shared does the trick.


More information about the Python-list mailing list