02-26-06 04:33 PM
[ http://issues.apache.org/jira/brows...236
7796 ]
Jim Gallacher commented on MODPYTHON-138:
-----------------------------------------
Michel's patch does not work for Debian Linux. mod_python immediately segfau
lts. There was a different gcc warning, which I had not seen before:
/usr/bin/libtool --silent --mode=compile gcc -prefer-pic -pipe -I/usr/includ
e/xmltok -I/usr/include/openssl -Wall -g -O2 -DAP_HAVE_DESIGNATED_INITIALIZE
R -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D
_GNU_SOURCE -pipe -I/usr/in
clude/xmltok -I/usr/include/openssl -Wall -g -O2 -pthread -I/usr/include/apa
che2 -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 _a
pachemodule.lo _apachemodul
e.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
> Python.h should be included first
> ---------------------------------
>
> Key: MODPYTHON-138
> URL: http://issues.apache.org/jira/browse/MODPYTHON-138
> Project: mod_python
> Type: Bug
> Components: core
> Versions: 3.2
> Environment: Tru64 5.1B, Python 2.4.1, Apache 2..55
> Reporter: Michel Jouvin
> Assignee: Jim Gallacher
> Attachments: mod_python-3.2.6-tru64.patch
>
> I have a problem to build mod_pyton on Tru64 with the Python config I have. This i
s basically due to the fact that Python.h should be included first as its defines so
me macros used by standard includes. When included at the end of the includes, this
res
ults to some conflicts because the same include is included twice with a different macro val
ue. This change should have no impact on platforms where the current include order works.[vb
col=seagreen]
> Affected files are :
> src/include/psp_parser.h
> src/include/mod_python.h
> src/include/psp_flex.h
> src/include/mod_python.h.in
> src/_pspmodule.c
> src/psp_parser.c
> I have a patch file available, I'll try to attach it to this issue if I ma
nage to find how to do it...
> Michel[/vbcol]
[ Post a follow-up to this message ]
|