Technics

Member
Apr 14, 2003
12
0
151
I'm having a lot of problems getting mod_python to build, i've googled the error, tried fixing the error in the file it says but then I get errors with not being able to find /usr/local/apache/bin/apxs Command not found..

using mod_pyton (unmodified) from easyapache.cpanel.net I get the following:

/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/home/cpeasyapache/src/mod_python-3.3.1/src/include -I/usr/local/apache/include -I/usr/include/python2.4 -c -o connobject.lo connobject.c && touch connobject.slo
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] Error 1
make[1]: Leaving directory `/home/cpeasyapache/src/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
!! 'make' failed with exit code '512' !!
!! Restoring original working apache !!
This is on a Centos 5.3 VDS - Any ideas?
 

Technics

Member
Apr 14, 2003
12
0
151
It's defiantly this line in src/connobject.c:

!(b == APR_BRIGADE_SENTINEL(b) ||
By changing it to:

!(b == APR_BRIGADE_SENTINEL(bb) ||
In a manual build of mod_python it works, But I'd like to have this work with the cPanel distributed (I know it's experimental!) download but whenever I unzip it locally and then change and re-package it won't work for me at all and bombs out before it even tries to compile apache.

Any ideas?