John_Nowlan
john_nowlan at carleton.ca
Thu Apr 5 13:55:08 EDT 2007
I have built apache2.2.4 and python2.5. from source, with some tweaks as outlined in some previous emails, i.e. build shared (some relevant snipped bits below). When I try and compile mod_python now I have a similar problem to what is outlined at: http://mail-archives.apache.org/mod_mbox/httpd-python-dev/200309.mbox/%3COFD98EF736.64974D7D-ON85256DA2.0054DC15-85256DA2.0055AD14@EU.novartis.net%3E i.e. lots of 'ld: fatal: relocations remain against allocatable but non-writable sections' Here is a fuller output: ar -x `gcc -print-libgcc-file-name` _eprintf.o ar -x `gcc -print-libgcc-file-name` _floatdidf.o ar -x `gcc -print-libgcc-file-name` _muldi3.o Compiling for DSO. /usr/local/apache2/bin/apxs -I/files/app/modpython/mod_python-3.3.1/src/include -I/usr/local/apache2/in clude -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/py thon2.5/config -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -L/usr/openwin/lib -R/usr/op enwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/Berkel eyDB.4.2/lib -lm -lpython2.5 -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm _eprintf.o _floatdid f.o _muldi3.o /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DSOLARIS2=9 -D_POSIX_PTHREA D_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -pthreads -I/usr/local/apache2/include -I/usr/lo cal/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/files/app/modpython/mod_pyth on-3.3.1/src/include -I/usr/local/apache2/include -I/usr/local/include/python2.5 -c -o mod_python.lo m od_python.c && touch mod_python.slo snip... *** Warning: Linking the shared library mod_python.la against the non-libtool *** objects _eprintf.o _floatdidf.o _muldi3.o is not portable! Text relocation remains referenced against symbol offset in file <unknown> 0x1ee4 /usr/local/lib/python2.5/config/libpython2.5.a(floatobj ect.o) <unknown> <unknown> 0x1eec /usr/local/lib/python2.5/config/libpython2.5.a(floatobj ect.o) <unknown> 0x1ef0 /usr/local/lib/python2.5/config/libpython2.5.a(floatobj ect.o) <unknown> 0x1ef4 /usr/local/lib/python2.5/config/libpython2.5.a(floatobj ect.o) <unknown> 0x1ef8 /usr/local/lib/python2.5/config/libpython2.5.a(floatobj ect.o) <unknown> 0x3474 /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x3478 /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x347c /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x3480 /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x3484 /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x3488 /usr/local/lib/python2.5/config/libpython2.5.a(listobje ct.o) <unknown> 0x290 /usr/local/lib/python2.5/config/libpython2.5.a(methodob ject.o) <unknown> 0x294 /usr/local/lib/python2.5/config/libpython2.5.a(methodob ject.o) ...lots more like above unknown symbol, ending with ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . *** Error code 1 make: Fatal error: Command failed for target `mod_python.so' Current working directory /files/app/modpython/mod_python-3.3.1/src *** Error code 1 make: Fatal error: Command failed for target `do_dso' ======================================================== Does anyone have any suggestions as to what I might look for/try? The real unix admins are not available at the moment and I'm bruising my head. Note that I seemed to have a similar problem with apache2 build seeing the static libs and not the shared libs at first that was apparently caused by some incorrect some symbolic links. Without knowing any better it almost looks to me like it is not seeing /usr/local/lib/python2.5/config/libpython2.5.a as a shared lib or something like that, but what do I know. > -----Original Message----- > From: mod_python-bounces at modpython.org > [mailto:mod_python-bounces at modpython.org]On Behalf Of Jose De Leon > Sent: Wednesday, February 28, 2007 1:16 PM > To: Graham Dumpleton > Cc: mod_python at modpython.org > Subject: Re: [mod_python] Mod_Python Make fails on Solaris 9 > > > Thank you Graham! You pointed me in the right direction :) ... l > recompiled Python 2.5 with Shared Libraries instead of Static, when l > recompiled Mod_Python it worked like a charm, thanks again :) > > ./configure --with-shared -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070405/cc28fed9/attachment.html
|