[mod_python] Mod_python on HP-UX 11.11

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


Well the touch worked for getting past the previous error....thanks for
the info.

I just need to trouble you all for one more look into the reason for
this failure.

Performing DSO installation.

        /opt/imake/bin/install -c -d /wwimacs6/apache2/modules
rm: /wwimacs6/apache2/modules/ directory
cp: illegal option -- d
Usage:  cp [-f|-i] [-p] [-S] [-e warn|force|ignore] source_file
target_file
        cp [-f|-i] [-p] [-S] [-e warn|force|ignore] source_file ...
target_directory
        cp [-f|-i] [-p] [-S] -R|-r [-e warn|force|ignore]
source_directory ... target_directory
        /opt/imake/bin/install -c src/mod_python.so
/wwimacs6/apache2/modules
cp: cannot access src/mod_python.so: No such file or directory

Now don't forget to edit your main config and add
    LoadModule python_module /wwimacs6/apache2/modules/mod_python.so
and if your configuration uses ClearModuleList, then also
    AddModule mod_python.c

        cd dist && make install_py_lib
`psp_parser.c' is up to date.
        if test -z "" ; then \
                /opt/Boeing/python2.4.3/bin/python2.4 setup.py install
--optimize 2 --force ; \
        else \
                /opt/Boeing/python2.4.3/bin/python2.4 setup.py install
--optimize 2 --force --root  ; \
        fi

This is all that is in .libs after the make install and I end up with no
.so file

-rw-r--r--   1 root       sys         161346 Nov 15 20:39 mod_python.a
lrwxr-xr-x   1 root       sys             16 Nov 15 20:39 mod_python.la
-> ../mod_python.la
-rw-r--r--   1 root       sys            848 Nov 15 20:39 mod_python.lai
-rwxr-xr-x   1 root       sys         188416 Nov 15 20:39 mod_python.sl 

THE COMPLETE MAKE INSTALL:

make install

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
`psp_parser.c' is up to date.
        /opt/Boeing/python2.4.3/bin/python2.4 setup.py build
running build
running build_py
running build_ext

Now su and make install
  (or, if you only want to perform a partial install,
   you can use make install_dso and make install_py_lib)


Performing DSO installation.

        /opt/imake/bin/install -c -d /wwimacs6/apache2/modules
rm: /wwimacs6/apache2/modules/ directory
cp: illegal option -- d
Usage:  cp [-f|-i] [-p] [-S] [-e warn|force|ignore] source_file
target_file
        cp [-f|-i] [-p] [-S] [-e warn|force|ignore] source_file ...
target_directory
        cp [-f|-i] [-p] [-S] -R|-r [-e warn|force|ignore]
source_directory ... target_directory
        /opt/imake/bin/install -c src/mod_python.so
/wwimacs6/apache2/modules
cp: cannot access src/mod_python.so: No such file or directory

Now don't forget to edit your main config and add
    LoadModule python_module /wwimacs6/apache2/modules/mod_python.so
and if your configuration uses ClearModuleList, then also
    AddModule mod_python.c

        cd dist && make install_py_lib
`psp_parser.c' is up to date.
        if test -z "" ; then \
                /opt/Boeing/python2.4.3/bin/python2.4 setup.py install
--optimize 2 --force ; \
        else \
                /opt/Boeing/python2.4.3/bin/python2.4 setup.py install
--optimize 2 --force --root  ; \
        fi
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/testhandler.py
-> /opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/Cookie.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/publisher.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/__init__.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/util.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/cgihandler.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/apache.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/psp.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/Session.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/cache.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/python22.py ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
copying build/lib.hp-ux-B.11.11-9000/800-2.4/mod_python/_psp.sl ->
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/testhandl
er.py to testhandler.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/Cookie.py
to Cookie.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/publisher
.py to publisher.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/__init__.
py to __init__.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/util.py
to util.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/cgihandle
r.py to cgihandler.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/apache.py
to apache.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/psp.py to
psp.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/Session.p
y to Session.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/cache.py
to cache.pyc
byte-compiling
/opt/Boeing/python2.4.3/lib/python2.4/site-packages/mod_python/python22.
py to python22.pyc
writing byte-compilation script '/tmp/tmpuG8DE8.py'
/opt/Boeing/python2.4.3/bin/python2.4 -OO /tmp/tmpuG8DE8.py
removing /tmp/tmpuG8DE8.py


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

 mailto:joseph.r.buehre at boeing.com


-----Original Message-----
From: Graham Dumpleton [mailto:grahamd at dscpl.com.au] 
Sent: Wednesday, November 15, 2006 2:18 PM
To: Buehre, Joseph R
Cc: Deron Meranda; mod_python at modpython.org
Subject: Re: [mod_python] Mod_python on HP-UX 11.11


On 16/11/2006, at 4:28 AM, Buehre, Joseph R wrote:

>          -R -opsp_parser.c --header-file=include/psp_flex.h 
> psp_parser.l
> sh: -R:  not found.
> *** Error exit code 127
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> I could remove the -R from /src/Makefile, it seems the HP c compiler 
> does not like that switch. Thoughts?
>
>
> ENTRY FROM src/Makefile
>
> 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

The -R option is not from the previous compile line but from running
lex.
It would appear your make program doesn't defined LEX variable. Since
the psp_parser.c file with source is okay, simply touch the file so that
it isn't being regenerated from the .l file in the first place. Ie.,

   touch src/psp_parser.c

If you have managed to loose the file, get it back out of the tarball
and touch it after having done that.

Graham



More information about the Mod_python mailing list