[mod_python] Install on Solaris

Ulf Engström alexis at mobiliant.com
Fri Mar 1 10:57:15 EST 2002


Hello :)
I'm having some problems installing on Solaris and I hope that someone could
help me a little. I've been searching the net and I've found many questions
regarding similar problems, but I havn't found a solution that works for me.

Problem is:
/usr/local/apache/> /bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_python.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_python.so: symbol ap_log_error: referenced
symbol not found
/bin/apachectl start: httpd could not be started

(ap_log_error symbol exists in /usr/local/apache/include)

Other information:
> ldd -r /usr/local/apache/libexec/mod_python.so
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
        symbol not found: ap_log_error
(/usr/local/apache/libexec/mod_python.so)
        symbol not found: ap_log_error
(/usr/local/apache/libexec/mod_python.so)
        symbol not found: ap_log_error
(/usr/local/apache/libexec/mod_python.so)
<snipped many more symbols)

> uname -a
SunOS sol 5.8 Generic_108528-07 sun4u sparc SUNW,Sun-Blade-100

> which gcc
/usr/local/bin/gcc

> gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/specs
Configured with:
../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld --enabl
e-libgcj
Thread model: posix
gcc version 3.0.3

> echo $LD_LIBRARY_PATH
/usr/lib:/lib:/usr/local/lib:/usr/local/mysql/lib:/usr/local/lib/

Python version 2.1.1
Apache version 1.3.23

I've also tried static compiling of mod_python, but that gave me the
following error during make of apache
connobject.o(.text+0x5d4): undefined reference to `PyMember_Set'

And many, many other rows of missing references.

Any more information needed, just let me know, I'd be very thankful for
anything that could help me with this:)

Regards
Ulf




More information about the Mod_python mailing list