[mod_python] can't compile on linux?

Mark Harrison mh at pixar.com
Sun Nov 26 21:49:43 EST 2006


So I had no problem building apache, python, and mod_python
on my OS X box, but I'm having problems on my Linux box
(surprising, because that is usually the most trouble-free
compilation environment).

ohm ~/mp2/src/mod_python-3.2.10$ uname -a
Linux ohm 2.6.12-1.1372_FC3p2smp #1 SMP Wed Jul 27 18:07:20 PDT 2005 x86_64 x86_64 x86_64 GNU/Linux

httpd-2.2.3
Python-2.4.3

(both configured with ./configure --prefix=/u0/mh/mp)

mod_python-3.2.10

(configured with
./configure --with-apxs=/u0/mh/mp/bin/apxs --with-python=/u0/mh/mp/bin/python)

The httpd and python both seem good, but I get this
error when compiling mod_python.

Any clues appreciated!
Mark


/u0/mh/mp2/build/libtool --silent --mode=link gcc -o mod_python.la  -rpath /u0/m
h/mp2/modules -module -avoid-version    hlistobject.lo hlist.lo filterobject.lo
connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo _apachemod
ule.lo mod_python.lo -L/u0/mh/mp2/lib/python2.4/config -Xlinker -export-dynamic
-lm -lpython2.4 -lpthread -ldl -lutil -lm
/usr/bin/ld: /u0/mh/mp2/lib/python2.4/config/libpython2.4.a(abstract.o): relocat
ion R_X86_64_32 can not be used when making a shared object; recompile with -fPI
C
/u0/mh/mp2/lib/python2.4/config/libpython2.4.a: could not read symbols: Bad valu
e
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

-- 
Mark Harrison
Pixar Animation Studios


More information about the Mod_python mailing list