|
[
Permlink
| « Hide
]
Michel Jouvin added a comment - 21/Feb/06 08:33 AM
Diff file containing changes implemented to fix the issue described. Built for 3.2.6 but should probably works with any 3.2.x.
Michel's patch does not work for Debian Linux. mod_python immediately segfaults. There was a different gcc warning, which I had not seen before:
/usr/bin/libtool --silent --mode=compile gcc -prefer-pic -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -O2 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -O2 -pthread -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -I/tmp/mod_python/src/include -I/usr/include/apache2 -I/usr/include/python2.3 -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo In file included from /usr/include/python2.3/Python.h:8, from /tmp/mod_python/src/include/mod_python.h:46, from _apachemodule.c:25: /usr/include/python2.3/pyconfig.h:865:1: warning: "_XOPEN_SOURCE" redefined <command line>:1:1: warning: this is the location of the previous definition I should have added that a similar error occurs 9 more times.
Suggest this be put on hold anyway until original poster actually attaches here the original output from the build, including compiler options and error output.
I suggest this, as their original comment: "When included at the end of the includes, this results to some conflicts because the same include is included twice with a different macro value." makes no sense. If header files are correctly protected with #ifndef they shouldn't be able to be included twice. Thus more information needed about the actual error message and which header files is supposedly being included twice, so it can be debugged properly rather than trying to solve it by just shifting stuff around. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||