Anastasios Hatzis
ah at hatzis.de
Wed Nov 8 08:28:28 EST 2006
Christopher Taylor wrote: > Hello all, > > I'm running RHEL4 ES on a 2 proc x86_64 server. > > I installed python 2.4 on top of python 2.3 with make altinstall so I > had to build mod_python to use /usr/bin/python2.4 instead of > /usr/bin/python (which points to /usr/bin/python2.3 for the sake of > not breaking RH). > > Well, when I try and compile up mod_python it breaks when trying to > link in /usr/lib/libpython2.4.a: > > /usr/bin/ld: /usr/lib/python2.4/config/libpython2.4.a(abstract.o): > relocation R_X86_64_32 against `a local symbol' can not be used when > making a shared object; recompile with -fPIC > /usr/lib/python2.4/config/libpython2.4.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > apxs:Error: Command failed with rc=65536 > > > Can someone please help with this? I think it's a problem with the > configure script either for mod-python or python. Not entirely sure. > Did you find a solution? I have a similar problem here on OpenSUSE 10.0 64bit (ADM Opteron). I compiled Python with # ./configure and in a second attempt after failed with mod_python: # ./configure --enabled-shared In both cases after # ./configure --with-max-locks=32 and # make I get this error: /usr/include/features.h:150:1: warning: this is the location of the previous definition /usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_python.la -rpath /usr/local/apache2/modules -module -avoid-version hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo -L/usr/local/lib/python2.5/config -Xlinker -export-dynamic -lm -lpython2.5 -lpthread -ldl -lutil -lm /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 Anyone who knows how to solve this problem? Many thanks. Anastasios
|