[mod_python] Mod_python on HP-UX 11.11

Buehre, Joseph R joseph.r.buehre at boeing.com
Wed Nov 15 15:15:51 EST 2006


Here is the -R and you are correct, I believe it is related to the FLEX,
this is in the src/Makefile and makefile.in

psp_parser.c: psp_parser.l
        @rm -f psp_parser.c
        $(LEX) -R -opsp_parser.c --header-file=include/psp_flex.h
psp_parser.l

NEXT MAKE RUN WITHOUT -R:

Compiling for DSO.

        /wwimacs6/apache2/bin/apxs -I/mod_python-3.2.10/src/include
-I/wwimacs6/apache2/include -I/opt/Boeing/python2.4.3/include/python2.4
-c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c
serverobject.c connobject.c filterobject.c hlist.c hlistobject.c
-L/opt/Boeing/python2.4.3/lib
-L/opt/Boeing/python2.4.3/lib/python2.4/config  -Wl,-E -Wl,+s      -lm
-lpython2.4   -lnsl -lrt -ldld  -lpthread   -lm
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o mod_python.lo
mod_python.c && touch mod_python.slo
cc: "mod_python.c", line 313: warning 611: Type conversion loses "const"
qualifier.
cc: "mod_python.c", line 313: warning 563: Argument #1 is not the
correct type.
cc: "mod_python.c", line 427: warning 611: Type conversion loses "const"
qualifier.
cc: "mod_python.c", line 458: warning 611: Type conversion loses "const"
qualifier.
cc: "mod_python.c", line 540: warning 611: Type conversion loses "const"
qualifier.
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o _apachemodule.lo
_apachemodule.c && touch _apachemodule.slo
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o requestobject.lo
requestobject.c && touch requestobject.slo
cc: "requestobject.c", line 426: warning 611: Type conversion loses
"const" qualifier.
cc: "requestobject.c", line 427: warning 604: Pointers are not
assignment-compatible.
cc: "requestobject.c", line 1447: warning 604: Pointers are not
assignment-compatible.
cc: "requestobject.c", line 1454: warning 604: Pointers are not
assignment-compatible.
cc: "requestobject.c", line 1569: warning 604: Pointers are not
assignment-compatible.
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o tableobject.lo
tableobject.c && touch tableobject.slo
cc: "tableobject.c", line 1057: warning 604: Pointers are not
assignment-compatible.
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o util.lo util.c &&
touch util.slo
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o serverobject.lo
serverobject.c && touch serverobject.slo
cc: "serverobject.c", line 351: warning 604: Pointers are not
assignment-compatible.
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o connobject.lo
connobject.c && touch connobject.slo
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o filterobject.lo
filterobject.c && touch filterobject.slo
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o hlist.lo hlist.c &&
touch hlist.slo
/wwimacs6/apache2/build/libtool --silent --mode=compile
/opt/ansic/bin/cc -prefer-pic -O3 -DSSL_EXPERIMENTAL -DSSL_ENGINE
-D_REENTRANT -Ae +DAportable  -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED  -I/wwimacs6/apache2/include
-I/wwimacs6/apache2/include   -I/wwimacs6/apache2/include
-I/mod_python-3.2.10/src/include -I/wwimacs6/apache2/include
-I/opt/Boeing/python2.4.3/include/python2.4  -c -o hlistobject.lo
hlistobject.c && touch hlistobject.slo
/wwimacs6/apache2/build/libtool --silent --mode=link /opt/ansic/bin/cc
-o mod_python.la -I/mod_python-3.2.10/src/include
-I/wwimacs6/apache2/include -I/opt/Boeing/python2.4.3/include/python2.4
-rpath /wwimacs6/apache2/modules -module -avoid-version
hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo
util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo
-L/opt/Boeing/python2.4.3/lib
-L/opt/Boeing/python2.4.3/lib/python2.4/config -Wl,-E -Wl,+s -lm
-lpython2.4 -lnsl -lrt -ldld -lpthread -lm
        ln -s ../lib/python/mod_python mod_python
        ln -s ../src src
         -opsp_parser.c --header-file=include/psp_flex.h psp_parser.l
sh: -opsp_parser.c:  not found.
*** Error exit code 127

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

The crazy thing about this is they removed the psp_parser.c object in
the Makefile prior to running:
 
$(LEX) -opsp_parser.c --header-file=include/psp_flex.h psp_parser.l


Thanks, 
Joe Buehre 
Mission Critical Systems Support 
314-791-9725

 mailto:joseph.r.buehre at boeing.com


-----Original Message-----
From: Deron Meranda [mailto:deron.meranda at gmail.com] 
Sent: Wednesday, November 15, 2006 1:50 PM
To: Buehre, Joseph R
Cc: mod_python at modpython.org
Subject: Re: [mod_python] Mod_python on HP-UX 11.11

On 11/15/06, Buehre, Joseph R <joseph.r.buehre at boeing.com> wrote:
> LIBTOOL VERSION:
>
> ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54)

That libtool is quite old, and old libtools on HP-UX are buggy
sometimes.
If all else fails you may try replacing it with a newer version.  It's a
bit hackish, but when I've gotten stuck in the past (on other OSS
programs) with mysterious compiler/linker options it's sometimes worked
for me.

   http://directory.fsf.org/libtool.html

You may also consider whether you want to go up to Apache 2.2 rather
than 2.0.  (You must use the newest mod_python though).


> The -R is in the src/Makefile and is not in the Apache config_vars.mk 
> file. I believe it is a compiler switch for the C compiler. Reference 
> this link for -R http://docs.hp.com/en/B3901-90003/ch09s01.html

Can you show us the snippets of the Makefile where -R appears?
What about Makefile.in ?

-R is an obscure option to the lower-level compiler-only phase of the
compiler (i.e., ccom not cc).  If it appears it should always be
encapsulated in a -w option, such as

   -wc,-R   (no spaces)

I can't see how -R is needed, as it is a very low level optimzation
hint.  (If, in fact, the -R you see is intended to be the same as the HP
documented one).

In the mod_python I compiled I have no such -R option anyplace.
I can't explain why yours has it.  (Are you sure you're not confusing it
with the -R option to lex/flex?)

You could try just manually removing all references to -R from the
makefiles (after the configure step obviously).


> NEW MAKE RUN:  Removed silent as recommend but it must be hiding some 
> where else...I tried to find it but to no avail.

The --silent option is burried very very deep; it's almost imposible to
remove.  When I need to see more details I don't use make, I run the
actual commands directly (run make first to see what commands it is
launching, then cut-n-paste the one you want and modify the options
directly).

However in this case I'm not sure we need to see the details, as the -R
in src/Makefile is obviously the source of the problem.

--
Deron Meranda



More information about the Mod_python mailing list