[mod_python] Compilation Problem mod_python on AIX-5.3

muhammad akl muhammad.akl at gmail.com
Wed Sep 2 07:18:03 EDT 2009


hi all,

I'm trying to compile mod_python from source on aix5.3 , i've installed
apache2.2.10 , python2.6.2 ,gcc using some pre-built packages from
pware.hvcc.edu site

the compilation process gives the following :


Compiling for DSO.
        /opt/pware64/bin/apxs -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pwa
re64/include -I/opt/pware64/include/python2.6 -c mod_python.c
_apachemodule.c re
questobject.c tableobject.c util.c  serverobject.c connobject.c
filterobject.c h
list.c  hlistobject.c finfoobject.c -Wl,-bE:Modules/python.exp -lld
-L/opt/pwa
re64/lib -Wl,-blibpath:/opt/pware64/lib:/usr/lib:lib,-brtl -lpthreads   -lm
/op
t/pware64/lib/python2.6/config/libpython2.6.a   -L/opt/pware/lib -lpthreads
-ldl
    -lm
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o mod_python.lo mod_python.c && touch
mod_
python.slo
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
qual
ifiers from pointer target type
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o _apachemodule.lo _apachemodule.c &&
touc
h _apachemodule.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o requestobject.lo requestobject.c &&
touc
h requestobject.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o tableobject.lo tableobject.c &&
touch ta
bleobject.slo
tableobject.c:329: warning: initialization from incompatible pointer type
tableobject.c:1092: warning: initialization from incompatible pointer type
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o util.lo util.c && touch util.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o serverobject.lo serverobject.c &&
touch
serverobject.slo
serverobject.c:387: warning: initialization from incompatible pointer type
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o connobject.lo connobject.c && touch
conn
object.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o filterobject.lo filterobject.c &&
touch
filterobject.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o hlist.lo hlist.c && touch hlist.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o hlistobject.lo hlistobject.c &&
touch hl
istobject.slo
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=compile gcc -maix64 -O2
-Wl,-blibpath
:/opt/pware64/lib:/usr/lib:/lib,-brtl -prefer-pic   -U__STR__ -D_THREAD_SAFE
-D_
USE_IRS -g -O2 -pthread -I/opt/pware64/include  -I/opt/pware64/include
-I/opt/
pware64/include  -I/usr/src/mod_python-3.3.1/src/include
-I/opt/pware64/include
-I/opt/pware64/include/python2.6  -c -o finfoobject.lo finfoobject.c &&
touch fi
nfoobject.slo
finfoobject.c:278: warning: 'intargfunc' is deprecated
finfoobject.c:278: warning: initialization from incompatible pointer type
gcc: -blibpath:/opt/pware64/lib:/usr/lib:/lib: linker input file unused
because
linking not done
gcc: -brtl: linker input file unused because linking not done
/opt/pware64/build/libtool --silent --mode=link gcc -maix64 -O2
-Wl,-blibpath:/o
pt/pware64/lib:/usr/lib:/lib,-brtl -o mod_python.la  -rpath
/opt/pware64/modules
 -module -avoid-version   -Wl,-brtl  finfoobject.lo hlistobject.lo hlist.lo
filt
erobject.lo connobject.lo serverobject.lo util.lo tableobject.lo
requestobject.l
o _apachemodule.lo mod_python.lo -Wl,-bE:Modules/python.exp -lld
-L/opt/pware64/
lib -Wl,-blibpath:/opt/pware64/lib:/usr/lib:lib,-brtl -lpthreads -lm
/opt/pware6
4/lib/python2.6/config/libpython2.6.a -L/opt/pware/lib -lpthreads -ldl -lm
*** Warning: Linking the shared library mod_python.la against the
*** static library /opt/pware64/lib/python2.6/config/libpython2.6.a is not
porta
ble!
0654-210 .libs/finfoobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/hlistobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/hlist.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/filterobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/connobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/serverobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/util.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/tableobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/requestobject.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/_apachemodule.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
0654-210 .libs/mod_python.o is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 finfoobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 hlistobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 hlist.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 filterobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 connobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 serverobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 util.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 tableobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 requestobject.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 _apachemodule.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
ar: 0707-126 mod_python.o is not valid with the current object file mode.
        Use the -X option to specify the desired object mode.
apxs:Error: Command failed with rc=720896
.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090902/8a83f45a/attachment.html


More information about the Mod_python mailing list