[mod_python] Compile problems - Mod_Python 3.1.4

Frank Gruman fgatwork at verizon.net
Mon May 9 14:12:13 EDT 2005


Hello all,

I am trying to test the latest Apache dev version, and found an issue when trying to compile mod_python 3.1.4 with it.

I originally tired using Apache 2.1.5-dev (from tip on Friday, 06-May) with mod_python 3.1.4 and Python 2.4.1.  When this failed, I thought that there might have been a resolution in the current mod_python tip, so pulled the mod_python tip as of 09-May @ 13:00.  Still ran into the same errors.  

The system goes through the ./configure without any issues.  Please see the steps / output below.  It gets quite long, so please bear with me.

*  Configure *****************************************
toybox:/sources/mod_python-3.1.4 # ./configure --with-apxs=/usr/local/apache2/bin/apxs
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
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 gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... /usr/local/apache2/bin/apxs executable, good
checking Apache version... 2.1.5-dev
checking for Apache libexec directory... /usr/local/apache2/modules
checking for Apache include directory... -I/usr/local/apache2/include
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.4
checking Python install prefix... /usr
checking for Py_NewInterpreter in -lpython2.4... yes
checking what libraries Python was linked with... -lpython2.4   -lpthread -ldl  -lutil   -lm
checking linker flags used to link Python...
checking where Python include files are... -I/usr/include/python2.4
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile
toybox:/sources/mod_python-3.1.4 #
****************************************************

No warnings or errors.  Looks good.  Let's go on...

* 1st Make *****************************************
toybox:/sources/mod_python-3.1.4 # make
make[1]: Entering directory `/sources/mod_python-3.1.4/src'

Compiling for DSO.

/usr/local/apache2/bin/apxs -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c -L/usr/lib/python2.4/config  -Xlinker -export-dynamic      -lm  -lpython2.4   -lpthread -ldl  -lutil   -lm
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o mod_python.lo mod_python.c && touch mod_python.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from mod_python.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from mod_python.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
mod_python.c: In function `python_cleanup':
mod_python.c:237: warning: passing arg 1 of `free' discards qualifiers from pointer target type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from _apachemodule.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from _apachemodule.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o requestobject.lo requestobject.c && touch requestobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from requestobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from requestobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
requestobject.c: In function `req_get_options':
requestobject.c:357: warning: initialization discards qualifiers from pointer target type
requestobject.c:358: warning: initialization from incompatible pointer type
requestobject.c: At top level:
requestobject.c:1464: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o tableobject.lo tableobject.c && touch tableobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from tableobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from tableobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
tableobject.c:1057: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o util.lo util.c && touch util.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from util.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from util.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o serverobject.lo serverobject.c && touch serverobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from serverobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from serverobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
serverobject.c:335: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o connobject.lo connobject.c && touch connobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from connobject.c:30:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from connobject.c:30:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o filterobject.lo filterobject.c && touch filterobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from filterobject.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from filterobject.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o hlist.lo hlist.c && touch hlist.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from hlist.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from hlist.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o hlistobject.lo hlistobject.c && touch hlistobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from hlistobject.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from hlistobject.c:28:
/usr/include/features.h:131: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/lib/python2.4/config -Xlinker -export-dynamic -lm -lpython2.4 -lpthread -ldl -lutil -lm
make[1]: Leaving directory `/sources/mod_python-3.1.4/src'
make[1]: Entering directory `/sources/mod_python-3.1.4/dist'
ln -s ../lib/python/mod_python
ln -s ../src
make[2]: Entering directory `/sources/mod_python-3.1.4/src'
/usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h psp_parser.l
make[2]: /usr/local/bin/flex: Command not found
make[2]: *** [psp_parser.c] Error 127
make[2]: Leaving directory `/sources/mod_python-3.1.4/src'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/sources/mod_python-3.1.4/dist'
make: *** [do_dso] Error 2
toybox:/sources/mod_python-3.1.4 #
***************************************************

It appears I the system could not find psp_parser.c.  This is not in the src directory.  I looked at the SVN repository, and found it there.  Not sure why it didn't come with the initial checkout, but I manually downloaded it.  Let's try to do a MAKE again.

* 2nd Make ****************************************

toybox:/sources/mod_python-3.1.4 # make clean && make
cd src && make clean
make[1]: Entering directory `/sources/mod_python-3.1.4/src'
rm -rf  core libpython.a mod_python.so *~ .libs *.o *.slo *.lo *.la
make[1]: Leaving directory `/sources/mod_python-3.1.4/src'
cd dist && make clean
make[1]: Entering directory `/sources/mod_python-3.1.4/dist'
rm -rf mod_python build dist
make[1]: Leaving directory `/sources/mod_python-3.1.4/dist'
rm -f core
make[1]: Entering directory `/sources/mod_python-3.1.4/src'

Compiling for DSO.

/usr/local/apache2/bin/apxs -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c -L/usr/lib/python2.4/config  -Xlinker -export-dynamic      -lm  -lpython2.4   -lpthread -ldl  -lutil   -lm
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o mod_python.lo mod_python.c && touch mod_python.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from mod_python.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from mod_python.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
mod_python.c: In function `python_cleanup':
mod_python.c:237: warning: passing arg 1 of `free' discards qualifiers from pointer target type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from _apachemodule.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from _apachemodule.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o requestobject.lo requestobject.c && touch requestobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from requestobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from requestobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
requestobject.c: In function `req_get_options':
requestobject.c:357: warning: initialization discards qualifiers from pointer target type
requestobject.c:358: warning: initialization from incompatible pointer type
requestobject.c: At top level:
requestobject.c:1464: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o tableobject.lo tableobject.c && touch tableobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from tableobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from tableobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
tableobject.c:1057: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o util.lo util.c && touch util.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from util.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from util.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o serverobject.lo serverobject.c && touch serverobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from serverobject.c:25:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from serverobject.c:25:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
serverobject.c:335: warning: initialization from incompatible pointer type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o connobject.lo connobject.c && touch connobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from connobject.c:30:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from connobject.c:30:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o filterobject.lo filterobject.c && touch filterobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from filterobject.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from filterobject.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o hlist.lo hlist.c && touch hlist.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from hlist.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from hlist.c:28:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/sources/httpd-2.1.x/srclib/pcre -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/sources/mod_python-3.1.4/src/include -I/usr/local/apache2/include -I/usr/include/python2.4  -c -o hlistobject.lo hlistobject.c && touch hlistobject.slo
In file included from /usr/include/python2.4/Python.h:8,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:57,
                 from hlistobject.c:28:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/local/apache2/include/apr.h:112,
                 from /usr/local/apache2/include/ap_config.h:20,
                 from /usr/local/apache2/include/httpd.h:30,
                 from /sources/mod_python-3.1.4/src/include/mod_python.h:32,
                 from hlistobject.c:28:
/usr/include/features.h:131: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/lib/python2.4/config -Xlinker -export-dynamic -lm -lpython2.4 -lpthread -ldl -lutil -lm
make[1]: Leaving directory `/sources/mod_python-3.1.4/src'
make[1]: Entering directory `/sources/mod_python-3.1.4/dist'
ln -s ../lib/python/mod_python
make[2]: Entering directory `/sources/mod_python-3.1.4/src'
make[2]: `psp_parser.c' is up to date.
make[2]: Leaving directory `/sources/mod_python-3.1.4/src'
/usr/bin/python setup.py build
Traceback (most recent call last):
  File "setup.py", line 138, in ?
    ModPyModule = ModPyExtension(getmp_srcdir(), [getmp_includedir(), getapache_includedir()], [getapache_libdir()])
  File "setup.py", line 80, in getapache_includedir
    return getapxs_option("INCLUDEDIR")
  File "setup.py", line 68, in getapxs_option
    APXS = getapxs_location()
  File "setup.py", line 65, in getapxs_location
    return getconfigure_option("APXS")
  File "setup.py", line 47, in getconfigure_option
    raise AssertionError("unable to find @%s@ definition in %s", (option_name, config_status_file))
AssertionError: ('unable to find @%s@ definition in %s', ('APXS', '/sources/mod_python-3.1.4/config.status'))
make[1]: *** [build] Error 1
make[1]: Leaving directory `/sources/mod_python-3.1.4/dist'
make: *** [do_dso] Error 2
toybox:/sources/mod_python-3.1.4 #
****************************************************

So - now it seems to have problems reading the value I passed for the APXS parameter.  And I can't figure out why.

Any ideas??

Regards,
Frank


More information about the Mod_python mailing list