[mod_python] ld error when trying to build mod-python

Serier, Kees kees.serier at relan.nl
Sat Jul 7 11:48:09 EST 2001


Hi,

I'm trying to build mod_python 2.7.5 on AIX, but get the following error
from ld, any ideas or hints?

ld: 0711-244 ERROR: No csects or exported symbols have been saved.
apxs:Break: Command failed with rc=8

Kees Serier mailto:kees.serier at ordina.nl

General information:
   AIX        4.2.1
   GCC        2.95.2 (locally build and installed from source)
   GNU-make   3.79.1 (locally build and installed from source)
   Python     2.0    (locally build from source without threads)
   Apache     1.3.20 (locally build and installed from source with DSO)
   Mod_python 2.7.5

This is the output of configure and make;

[/usr/local/src/mod_python-2.7.5]# ./configure
--with-apxs=/usr/local/apache/bin/apxs --with-apache=../apache_1.3.20
--with-python=../Python-2.0/
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... ./install-sh -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/local/apache/bin/apxs executable, good
checking for Apache libexec directory... /usr/local/apache/libexec
checking for Apache include directory... -I/usr/local/apache/include
checking for --with-apache... /usr/local/src/apache_1.3.20
checking for --with-python... /usr/local/src/Python-2.0
checking for python... /usr/local/src/Python-2.0/python
checking Python version... 2.0
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/src/Python-2.0/libpython2.0.a   -ldl    -lm
checking linker flags used to link Python...  -Wl,-bE:python.exp -lld
checking where Python include files are... -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include
checking for mkdep... no
checking for makedepend... /usr/bin/X11/makedepend
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/libpython.module
creating Doc/Makefile
analyzing dependencies
sant[/usr/local/src/mod_python-2.7.5]= gmake
gmake[1]: Entering directory `/usr/local/src/mod_python-2.7.5/src'
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o mod_python.o mod_python.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o _apachemodule.o _apachemodule.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o requestobject.o requestobject.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o tableobject.o tableobject.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o util.o util.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o serverobject.o serverobject.c
gcc  -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include    -c -o connobject.o connobject.c

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

/usr/local/apache/bin/apxs -I/usr/local/src/mod_python-2.7.5/src/include
-I/usr/local/src/apache_1.3.20/src/include
-I/usr/local/src/apache_1.3.20/src/os/unix -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include -c mod_python.o _apachemodule.o
requestobject.o tableobject.o util.o serverobject.o connobject.o  -lm
/usr/local/src/Python-2.0/libpython2.0.a   -ldl    -lm  
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/usr/local/apache/libexec/httpd.exp -lc -o mod_python.so mod_python.o
_apachemodule.o requestobject.o tableobject.o util.o serverobject.o
connobject.o -lm /usr/local/src/Python-2.0/libpython2.0.a -ldl -lm
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
apxs:Break: Command failed with rc=8
gmake[1]: *** [mod_python.so] Error 1
gmake[1]: Leaving directory `/usr/local/src/mod_python-2.7.5/src'
gmake: *** [do_dso] Error 2




More information about the Mod_python mailing list