[mod_python] Compilation problem.

Eric Mangold thegreengrinch at operamail.com
Mon Jan 14 02:10:38 EST 2002

I'm attempting to compile mod_python 3, under Linux, glibc2.2, with apache
2.0.28 and python2.2 final. apache is compiled and installed under
/usr/local/apache. python is compiled and installed under /usr. my configure
line is as follows:

# CFLAGS="-O6 -march=i686 -ffast-math"
./configure --with-apxs=/usr/local/apache/bin/apxs

and i try to make it as follows:

# make dso
make[1]: Entering directory `/download/mod_python3/src'
gcc  -I/download/mod_python3/src/include -I/usr/local/apache/include -I/usr/
include/python2.2    -c -o mod_python.o mod_python.c
mod_python.c: In function `python_filter':
mod_python.c:1019: warning: passing arg 4 of `ap_get_brigade' from
incompatible pointer type
mod_python.c: In function `directive_PythonInputFilter':
mod_python.c:1479: warning: passing arg 2 of `ap_register_input_filter' from
incompatible pointer type
gcc  -I/download/mod_python3/src/include -I/usr/local/apache/include -I/usr/
include/python2.2    -c -o _apachemodule.o _apachemodule.c
gcc  -I/download/mod_python3/src/include -I/usr/local/apache/include -I/usr/
include/python2.2    -c -o requestobject.o requestobject.c
requestobject.c:916: structure has no member named `content_language'
requestobject.c:916: initializer element is not constant
requestobject.c:916: (near initialization for
requestobject.c:1015: parse error before `u'
requestobject.c: In function `tuple_from_parsed_uri':
requestobject.c:1021: `u' undeclared (first use in this function)
requestobject.c:1021: (Each undeclared identifier is reported only once
requestobject.c:1021: for each function it appears in.)
make[1]: *** [requestobject.o] Error 1
make[1]: Leaving directory `/download/mod_python3/src'
make: *** [do_dso] Error 2

python is compiled without thread support, however, apache is compiled with
the 'worker' MPM, if that means anything.

More information about the Mod_python mailing list