[mod_python] mod_python compilation error

Graham Dumpleton graham.dumpleton at gmail.com
Thu Aug 20 04:56:56 EDT 2009


2009/8/20 Shu Hung (Koala) <koalay at gmail.com>:
> Hello,
>
> I tried to compile mod_python 3.3.1 for Apache 2.2.13
> An error "Command failed with rc=65536" occured.
> I searched Google and it should be solved on 2008 with Apache updated.

That is not what the ticket says. The mod_python package is not
connected with Apache releases. The only way you can get fix is to
check mod_python out from mod_python subversion repository or make the
change yourself that is mentioned in that ticket. There has never been
any mod_python release including the fix.

Graham

>> Compiling for DSO.
>>
>> /usr/local/apache-2.2.13/bin/apxs
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5 -c
>> mod_python.c _apachemodule.c requestobject.c tableobject.c util.c
>> serverobject.c connobject.c filterobject.c hlist.c hlistobject.c
>> finfoobject.c -L/usr/local/lib/python2.5/config  -Xlinker
>> -export-dynamic      -lm  -lpython2.5 -lpthread -ldl -lutil -lm
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> mod_python.lo mod_python.c && touch mod_python.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from mod_python.c:28:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from mod_python.c:28:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> mod_python.c: In function `python_init':
>> mod_python.c:826: warning: initialization from incompatible pointer type
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from _apachemodule.c:25:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from _apachemodule.c:25:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> requestobject.lo requestobject.c && touch requestobject.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from requestobject.c:25:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from requestobject.c:25:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> tableobject.lo tableobject.c && touch tableobject.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from tableobject.c:25:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from tableobject.c:25:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> tableobject.c:1092: warning: initialization from incompatible pointer type
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> util.lo util.c && touch util.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from util.c:28:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from util.c:28:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> serverobject.lo serverobject.c && touch serverobject.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from serverobject.c:25:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from serverobject.c:25:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> serverobject.c:387: warning: initialization from incompatible pointer type
>> /usr/local/apache-2.2.13/build/libtool --silent --mode=compile gcc
>> -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g
>> -O2 -pthread -I/usr/local/apache-2.2.13/include
>> -I/usr/local/apache-2.2.13/include   -I/usr/local/apache-2.2.13/include
>> -I/usr/share/src/mod_python-3.3.1/src/include
>> -I/usr/local/apache-2.2.13/include -I/usr/local/include/python2.5  -c -o
>> connobject.lo connobject.c && touch connobject.slo
>> In file included from /usr/local/include/python2.5/Python.h:8,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:80,
>>                  from connobject.c:30:
>> /usr/local/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
>> redefined
>> In file included from /usr/include/sys/types.h:27,
>>                  from /usr/local/apache-2.2.13/include/apr.h:127,
>>                  from /usr/local/apache-2.2.13/include/ap_config.h:25,
>>                  from /usr/local/apache-2.2.13/include/httpd.h:43,
>>                  from
>> /usr/share/src/mod_python-3.3.1/src/include/mod_python.h:42,
>>                  from connobject.c:30:
>> /usr/include/features.h:150:1: warning: this is the location of the
>> previous definition
>> 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 `/usr/share/src/mod_python-3.3.1/src'
>> make: *** [do_dso] Error 2
>
>
>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>



More information about the Mod_python mailing list