[mod_python] compiling on HPUX 11.11

Diener-Rodriguez Jan Raino Eerik jan.diener-rodriguez at orange.ch
Fri Feb 15 03:58:21 EST 2008


Hello guys,
I managed to compile python 2.5.1, which works fine but I don't get
mod_python to compile on my HP box (see below)
 
I am not a compiler/ing expert and it is well possible that I missed
some obvious detail.. would appreciate any hint or direction where to
find a possible solution to my problem.
 
thanks
jan
 
=== configure works, according to my little knowledge ===
# pwd
/tmp/mod_python-3.3.1
# ./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-flex=/usr/local/bin/flex
checking for gcc... gcc
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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... ./install-sh -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... /usr/local/apache2/bin/apxs executable, good
checking Apache version... 2.0.63
checking for Apache libexec directory... /usr/local/apache2/modules
checking for Apache include directory... -I/usr/local/apache2/include
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.5
checking Python install prefix... /usr/local
checking checking where python libraries are installed...
/usr/local/lib/python2.5
checking for Py_NewInterpreter in -lpython2.5... yes
checking what libraries Python was linked with... -lpython2.5   -lnsl
-lrt -ldld    -lm
checking linker flags used to link Python...
checking where Python include files are...
-I/usr/local/include/python2.5
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... /usr/local/bin/flex
found /usr/local/bin/flex, we'll use this. Use --with-flex to specify
another.
checking flex version... 2.5.34. Good
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/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile
#
 

=== compiling - fails ====
 
#  gmake
gmake[1]: Entering directory `/tmp/mod_python-3.3.1/src'
 
Compiling for DSO.
 
/usr/local/apache2/bin/apxs -I/tmp/mod_python-3.3.1/src/include
-I/usr/local/apache2/include -I/usr/local/include/python2.5 -c
mod_python.c _apachemodule.c requestobject.c tableobject.c util.c
serverobject.c connobject.c filterobject.c hlist.c hlistobject.c
finfoobject.c -L/usr/local/lib/python2.5/config  -Wl,-E -Wl,+s      -lm
-lpython2.5   -lnsl -lrt -ldld    -lm
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o mod_python.lo mod_python.c &&
touch mod_python.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from mod_python.c:28:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
mod_python.c: In function 'python_init':
mod_python.c:826: warning: initialization from incompatible pointer type
mod_python.c: In function 'get_interpreter':
mod_python.c:290: warning: passing argument 1 of 'make_obcallback'
discards qualifiers from pointer target type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o _apachemodule.lo _apachemodule.c
&& touch _apachemodule.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from _apachemodule.c:25:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o requestobject.lo requestobject.c
&& touch requestobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from requestobject.c:25:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o tableobject.lo tableobject.c &&
touch tableobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from tableobject.c:25:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
tableobject.c:329: warning: initialization from incompatible pointer
type
tableobject.c:1092: warning: initialization from incompatible pointer
type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o util.lo util.c && touch util.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from util.c:28:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o serverobject.lo serverobject.c &&
touch serverobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from serverobject.c:25:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
serverobject.c:387: warning: initialization from incompatible pointer
type
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o connobject.lo connobject.c &&
touch connobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from connobject.c:30:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o filterobject.lo filterobject.c &&
touch filterobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from filterobject.c:28:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o hlist.lo hlist.c && touch
hlist.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from hlist.c:28:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o hlistobject.lo hlistobject.c &&
touch hlistobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from hlistobject.c:28:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT
-D_XOPEN_SOURCE_EXTENDED -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/tmp/mod_python-3.3.1/src/include -I/usr/local/apache2/include
-I/usr/local/include/python2.5  -c -o finfoobject.lo finfoobject.c &&
touch finfoobject.slo
In file included from /usr/local/include/python2.5/Python.h:8,
                 from /tmp/mod_python-3.3.1/src/include/mod_python.h:80,
                 from finfoobject.c:25:
/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
finfoobject.c:278: warning: 'intargfunc' is deprecated
finfoobject.c:278: warning: initialization from incompatible pointer
type
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_python.la  -rpath /usr/local/apache2/modules -module -avoid-version
finfoobject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo
serverobject.lo util.lo tableobject.lo requestobject.lo _apachemodule.lo
mod_python.lo -L/usr/local/lib/python2.5/config -Wl,-E -Wl,+s -lm
-lpython2.5 -lnsl -lrt -ldld -lm
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output
file for symbol "_PyEval_SliceIndex" in input file
"/usr/local/lib/python2.5/config/libpython2.5.a(listobject.o)"
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
gmake[1]: *** [mod_python.so] Error 1
gmake[1]: Leaving directory `/tmp/mod_python-3.3.1/src'
gmake: *** [do_dso] Error 2
#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080215/a4d835b9/attachment-0001.html


More information about the Mod_python mailing list