[mod_python] Mod_python compilation and install

Nick Fearn nick.fearn at openmethods.com
Fri Jan 10 16:42:19 EST 2003


Hi

I am having trouble compiling and installing Mod_python 2.7.8 (DSO) with
apache-1.3.22-3b, python 1.5.2 on YDL 2.2.

I have recompile python with no threads. The mod_python compile completes OK
but Make ends with the following errors.

Thanks for any help. Nick


[root at linux2t mod_python-2.7.8]# ./configure --with-apxs=/usr/sbin/apxs
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking for main in -lm... yes
checking for working const... yes
checking your blood pressure... a bit high, but we can proceed
checking whether apxs is available
checking for --with-apxs... /usr/sbin/apxs executable, good
checking for Apache libexec directory... /usr/lib/apache
checking for Apache include directory... -I/usr/include/apache
checking for --with-apache... no
configure: warning: **** No apache sources specified, static compilation
will not be available.
configure: warning: **** You can use --with-apache to specify where your
Apache sources are.
checking for --with-python... no
checking for python... /usr/local/bin/python
checking Python version... 1.5
checking whether Python is compiled with thread support... no threads, good
checking Python install prefix... /usr/local
checking what libraries Python was linked with...
/usr/local/lib/python1.5/config/libpython1.5.a   -lieee -ldl    -lm
checking linker flags used to link Python...
checking where Python include files are... -I/usr/local/include/python1.5
checking for mkdep... no
checking for makedepend... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/libpython.module
creating Doc/Makefile
[root at linux2t mod_python-2.7.8]# make
make[1]: Entering directory `/home/nick/mod_python-2.7.8/src'
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o mod_python.o mod_python.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o _apachemodule.o _apachemodule.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o requestobject.o requestobject.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o tableobject.o tableobject.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o util.o util.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o serverobject.o serverobject.c
gcc  -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apache -I/usr/
local/include/python1.5    -c -o connobject.o connobject.c

Compiling for DSO. For static, do "make static"

/usr/sbin/apxs -I/home/nick/mod_python-2.7.8/src/include -I/usr/include/apac
he -I/usr/local/include/python1.5 -c mod_python.o _apachemodule.o
requestobject.o tableobject.o util.o serverobject.o connobject.o  -lm
/usr/local/lib/python1.5/config/libpython1.5.a   -lieee -ldl    -lm
gcc -shared -o mod_python.so mod_python.o _apachemodule.o requestobject.o
tableobject.o util.o serverobject.o connobject.o -lm
/usr/local/lib/python1.5/config/libpython1.5.a -lieee -ldl -lm
/usr/bin/ld: mod_python.so: undefined versioned symbol name
_LIB_VERSION@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
apxs:Break: Command failed with rc=1
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/home/nick/mod_python-2.7.8/src'
make: *** [do_dso] Error 2
[root at linux2t mod_python-2.7.8]#




More information about the Mod_python mailing list