Hey,

I ran into a issue with Mod-python 3.3.1. The issue: It fails to build
under the new LFS 6.5 toolchain!!!!!!!! :-(. Just see the attached
log. Google was of no help.

This is espicaly an issue, espicaly if you (LFS) decides to update the
servers, as Trac depends on mod_python, and mod_python fails to build
right now, it would probably, in the worst case scenario, knock Trac
offline for a while!! (that was the whole reason I tried to build it
anyway, I don't use it.)

If you are thinking of updating the LFS servers (which you should do,
as securty is an issue right now), you might want to fix that
mod_python thing.

William
make[1]: Entering directory `/sources/mod_python-3.3.1/src'

Compiling for DSO.

/usr/sbin/apxs -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6 -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/lib/python2.6/config  -Xlinker -export-dynamic      -lm  -lpython2.6   -lpthread -ldl  -lutil   -lm                 
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o mod_python.lo mod_python.c && touch mod_python.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from mod_python.c:28:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from mod_python.c:28:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from mod_python.c:28:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from mod_python.c:28:
/usr/include/features.h:160: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/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from _apachemodule.c:25:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from _apachemodule.c:25:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from _apachemodule.c:25:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from _apachemodule.c:25:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o requestobject.lo requestobject.c && touch requestobject.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from requestobject.c:25:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from requestobject.c:25:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from requestobject.c:25:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from requestobject.c:25:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o tableobject.lo tableobject.c && touch tableobject.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from tableobject.c:25:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from tableobject.c:25:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from tableobject.c:25:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from tableobject.c:25:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
tableobject.c:1092: warning: initialization from incompatible pointer type
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o util.lo util.c && touch util.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from util.c:28:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from util.c:28:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from util.c:28:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from util.c:28:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o serverobject.lo serverobject.c && touch serverobject.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from serverobject.c:25:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from serverobject.c:25:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from serverobject.c:25:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from serverobject.c:25:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
serverobject.c:387: warning: initialization from incompatible pointer type
/usr/lib/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -I/sources/mod_python-3.3.1/src/include -I/usr/include/apache -I/usr/include/python2.6  -c -o connobject.lo connobject.c && touch connobject.slo
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from connobject.c:30:
/usr/include/python2.6/pyconfig.h:1019:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from connobject.c:30:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:80,
                 from connobject.c:30:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/apache/apr.h:127,
                 from /usr/include/apache/ap_config.h:25,
                 from /usr/include/apache/httpd.h:43,
                 from /sources/mod_python-3.3.1/src/include/mod_python.h:42,
                 from connobject.c:30:
/usr/include/features.h:160: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 `/sources/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to