[mod_python] Trouble compiling mod_python-3.0.3 on Red Hat with Apache httpd-2.0.39 + Python-2.2.1

Tim Mansfield timbomb at timbomb.net
Fri Apr 25 16:09:24 EST 2003


... which I believe are the correct versions. I get this output when apxs 
tries to do its thing (ie step one in the make).

Any ideas?

Tim
----------------

$ make
make[1]: Entering directory `/home/timbomb/mod_python-3.0.3/src'

Compiling for DSO.

/opt/local/bin/apxs -I/home/timbomb/mod_python-3.0.3/src/include 
-I/opt/local/stow/httpd-2.0.39/include 
-I/opt/local/bin/../stow/Python-2.2.1/include/python2.2 -c mod_python.c 
_apachemodule.c requestobject.c tableobject.c util.c serverobject.c 
connobject.c filterobject.c hlist.c hlistobject.c 
-L/opt/local/bin/../stow/Python-2.2.1/lib/python2.2/config  -Xlinker 
-export-dynamic      -lm  -lpython2.2 -ldl -lpthread -lutil -lm
/opt/local/stow/httpd-2.0.39/build/libtool --silent --mode=compile gcc 
-prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 
-pthread -I/opt/local/stow/httpd-2.0.39/include 
-I/home/timbomb/mod_python-3.0.3/src/include 
-I/opt/local/stow/httpd-2.0.39/include 
-I/opt/local/bin/../stow/Python-2.2.1/include/python2.2  -c -o 
mod_python.lo mod_python.c && touch mod_python.slo
mod_python.c: In function `directive_PythonInputFilter':
mod_python.c:1507: incompatible type for argument 3 of 
`ap_register_input_filter'
mod_python.c:1507: too many arguments to function `ap_register_input_filter'
mod_python.c: In function `directive_PythonOutputFilter':
mod_python.c:1532: incompatible type for argument 3 of 
`ap_register_output_filter'
mod_python.c:1532: too many arguments to function `ap_register_output_filter'
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/home/timbomb/mod_python-3.0.3/src'
make: *** [do_dso] Error 2



More information about the Mod_python mailing list