[mod_python] Mod_python on HP-UX 11.11

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


HERE IS THE CONFIGURE RUN:

CC=cc CXX=aCC CFLAGS=+DD32 CXXFLAGS=+DD32
LDFLAGS=-L/opt/Boeing/python2.4.3/lib ./configure
--with-apxs=/wwimacs6/apache2/bin/apxs
--with-python=/opt/Boeing/python2.4.3/bin/python2.4

CONFIGURE RESULTS:

checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... /opt/imake/bin/install -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... /wwimacs6/apache2/bin/apxs executable, good
checking Apache version... 2.0.52
checking for Apache libexec directory... /wwimacs6/apache2/modules
checking for Apache include directory... -I/wwimacs6/apache2/include
checking for --with-python... /opt/Boeing/python2.4.3/bin/python2.4
checking Python version... 2.4
checking Python install prefix... /opt/Boeing/python2.4.3
checking checking where python libraries are installed...
/opt/Boeing/python2.4.3/lib/python2.4
checking for Py_NewInterpreter in -lpython2.4... yes
checking what libraries Python was linked with... -lpython2.4   -lnsl
-lrt -ldld  -lpthread   -lm
checking linker flags used to link Python...
checking where Python include files are...
-I/opt/Boeing/python2.4.3/include/python2.4
checking for --with-python-src... no
checking for --with-mutex-dir... no
Using MUTEX_DIR /tmp
checking for --with-max-locks... no
Using 8 MAX_LOCKS.
checking for --with-flex... no
checking for flex... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating src/include/mod_python.h
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile

AND OF COURSE THE FLEX VERBAGE:

configure: WARNING: flex  not found
  You can generally ignore this warning unless you need to regenerate
  psp_parser.c from psp_parse.l.  If you do need regenerate
psp_parser.c,
  use --with-flex to specify the location of flex.
  See the README for more information.

FIRST RUN AT MAKE:

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
         -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



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

 mailto:joseph.r.buehre at boeing.com


-----Original Message-----
From: Buehre, Joseph R 
Sent: Wednesday, November 15, 2006 11:11 AM
To: Deron Meranda
Cc: mod_python at modpython.org
Subject: RE: [mod_python] Mod_python on HP-UX 11.11

Sorry for the slow response, but I will re-compile and send the errors
as I move along.
To answer the first questions, yes Apache was compiled with --enable-so
and I am doing a 32 bit compile.

Thanks in advance.!


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: Thursday, November 02, 2006 4:12 PM
To: Buehre, Joseph R
Cc: mod_python at modpython.org
Subject: Re: [mod_python] Mod_python on HP-UX 11.11

I think you replied to the wrong thread...

On 11/2/06, Buehre, Joseph R <joseph.r.buehre at boeing.com> wrote:
> I have tried consently to get mod_python to compile and create the .so

> file for Apache.  To date this has been an unsucessful adventure.  Has

> anyone done this type of install with HP-UX 11.11, Apache 2.0 and the 
> latest version of mod_python.  Desperately seeking insight.

I did get it working (but not heavily tested) with these parts...

  HP-UX 11.0
  Apache 2.2 (mpm_worker, dso)
  OpenSSL 0.9.8d
  Python 2.4.3
  GNU readline 5.1
  mod_python 3.2.10

Everything (except the OS of course) was compiled from sources with HP's
ANSI-C cc compiler in 32-bit mode.

I've since got python 2.5 working now, but I haven't tried recompiling
the mod_python against it.

Did you also compile httpd?  If so did you make sure you used the
--enable-so option to configure?  Are you by chance trying to compile
64-bit applications?  Can you provide more information, such as what
kind of errors you might be seeing.  What configure options you've
given, etc.

I know getting stuff to compile under HP-UX can in general be a real
pain.  I may have done some sort of magic, but I honestly can't remember
what I did exactly.  At least it's not AIX; that one always gives me
terrible fits.
--
Deron Meranda

_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list