[mod_python] Compiling on Solaris 8

David_Greenberg at ltx.com David_Greenberg at ltx.com
Thu Jul 17 11:09:40 EDT 2008


Hi,

I am having trouble compiling mod_python on Solaris 8.  I see other people 
have had the error in the past, but I have not seen any solution that does 
not involve recompiling Python (not an option for me).  The error is as 
follows:

/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 -L/usr/local/lib -R/usr/local/lib 
-R/usr/lib -L/usr/lib -R/usr/openwin/lib -L/usr/openwin/lib 
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib 
-R/usr/local/BerkeleyDB.4.2/lib -L/usr/openwin/lib -R/usr/openwin/lib -lm 
-lpython2.5 -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm _eprintf.o 
_floatdidf.o _muldi3.o

*** 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>                           0x1030 
/usr/local/lib/python2.5/config/libpython2.5.a(floatobject.o)
<unknown>                           0x1034 
/usr/local/lib/python2.5/config/libpython2.5.a(floatobject.o)
...
...
...
clock                               0x2a4 
/usr/local/lib/python2.5/config/libpython2.5.a(xxsubtype.o)
utime                               0x158c 
/usr/local/lib/python2.5/config/libpython2.5.a(posixmodule.o)
ld: fatal: relocations remain against allocatable but non-writable 
sections
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/software/tmp/mod_python-3.3.1/src'
make: *** [do_dso] Error 2


The environment is as follows:
Solaris 8
mod_python 3.3.1 source
GCC 3.4.6 (from sunfreeware.com)
Apache 2.2.6 (from sunfreeware.com)
Python 2.5.1 (from sunfreeware.com)
Flex 2.5.31 (from sunfreeware.com)

I ran the following to compile:
./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local
make

Does anyone have any ideas?  Is there a pre-compiled package somewhere for 
Solaris 8 that would work with my configuration?

Thank you,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080717/45aea58c/attachment.html


More information about the Mod_python mailing list