[mod_python] compile problem with new apr/apr-util

Andre Hübner andre.huebner at gmx.de
Mon Oct 20 07:35:20 EDT 2008

Hi List,

did upgrade from apr 1.2.12 and apr-util to current versions 1.3.4/1.3.3

On Base of this apr i compiled new apache 2.2.10 + devel packages.
Configure-Line for mod_pythin is pretty simple:

 ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python --prefix=/usr

This worked and compiled for apache 2.2.9 /apr 1.2.12

Now there is Compiler-error:

/usr/lib/apr/build-1/libtool --silent --mode=compile 
c -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread 
 -I/usr/include/apache  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/usr/src/mod_python/mod_python-3.3.1/src/include 
 -I/usr/include/apache -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 connobject.c:30:
/usr/include/python2.4/pyconfig.h:838:1: warning: "_POSIX_C_SOURCE" 
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apr-1/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from connobject.c:30:
/usr/include/features.h:154:1: warning: this is the location of the previous 
connobject.c: In function '_conn_read':
connobject.c:142: error: request for member 'next' in something not a 
structure or union
apxs:Error: Command failed with rc=65536
make[1]: *** [mod_python.so] Fehler 1
make[1]: Leaving directory `/usr/src/mod_python/mod_python-3.3.1/src'
make: *** [do_dso] Fehler 2

What to do now?


More information about the Mod_python mailing list