|
Leone, James
JLeone at sjm.com
Tue Jun 10 17:32:09 EDT 2008
Hello,
I am having trouble compiling mod_python. I am compiling on a RedHat
AS4 64-bit virtual machine (VMWare over ESX).
I have both Python 2.5.2 and Apache 2.2 built from source and installed.
I configured the build using the command below:
./configure --with-apxs=/opt/apache2/bin/apxs
--with-python=/usr/local/bin/python2.5 --libdir=/usr/lib64
"make" results in a failure, I have posted the tail lines below. Do
you have any ideas about the cause?
In file included from /usr/local/include/python2.5/Python.h:8,
from /opt/mod_python-3.3.1/src/include/mod_python.h:80,
from finfoobject.c:25:
/usr/local/include/python2.5/pyconfig.h:942:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /opt/apache2/include/apr.h:116,
from /opt/apache2/include/ap_config.h:25,
from /opt/apache2/include/httpd.h:43,
from /opt/mod_python-3.3.1/src/include/mod_python.h:42,
from finfoobject.c:25:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
finfoobject.c:278: warning: `intargfunc' is deprecated (declared at
/usr/local/include/python2.5/object.h:133)
finfoobject.c:278: warning: initialization from incompatible pointer
type
/opt/apache2/build/libtool --silent --mode=link gcc -o mod_python.la
-rpath /opt/apache2/modules -module -avoid-version finfoobject.lo
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/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.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/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
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/opt/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080610/96e05bbe/attachment.html
|