[Mailman-Users] Infamous error "ImportError: ld.so.1: python: fatal: libgcc_s.so.1"

Rolf E. Sonneveld R.E.Sonneveld at sonnection.nl
Mon Apr 2 11:40:14 CEST 2007


Hi,

I installed tcl/tk, Python and Mailman on a Solaris 10 system. 
Everything seems to install fine, I can use the command line interface 
to create a mailman list, set the site and delegate password etc. 
However, when I try to access Mailman via my browser (using Apache on 
the server side) I get the infamous error message:

[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] Traceback 
(most recent call last):
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]   File 
"/usr/local/mailman/scripts/driver", line 77, in run_main
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]     from 
Mailman.Logging.StampedLogger import StampedLogger
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]   File 
"/usr/local/mailman/Mailman/Logging/StampedLogger.py", line 18, in <module>
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]     import time
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] ImportError: 
ld.so.1: python: fatal: libgcc_s.so.1: open failed: No such file or 
directory

The Solaris 10 system info:

SunOS hostname 5.10 Generic_118833-24 sun4u sparc SUNW,UltraAX-i2

Versions installed:

tcl/tk: 8.4.14
Python: 2.5
Mailman: 2.1.9

All software was compiled from sources. The libgcc_s.so.1 lives in:

bash-3.00# find / -name libgcc_s.so.1
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/sfw/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1

The /usr/local/lib version seems to be more recent. Before installation, 
I made sure that LD_LIBRARY_PATH was set to 
/lib:/usr/lib:/usr/local/lib:/usr/share/lib and I compiled using 
LDFLAGS="-L/usr/local/lib". I also added this directory to the 
LD_LIBRARY_PATH for apache in the file: /usr/local/apache/bin/envvars:

LD_LIBRARY_PATH="/usr/local/apache/lib:/usr/local/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

Stopped and started apache, to make sure it would get the right 
environment variables.

As 'python' was present in the error message, I did an ldd of python. It 
shows:

bash-3.00# ldd /usr/local/python/bin/python
        libresolv.so.2 =>        /lib/libresolv.so.2
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd5.so.1 =>   /lib/libmd5.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        /platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
        /platform/SUNW,UltraAX-i2/lib/libmd5_psr.so.1

When I visit the page http://hostname/mailman/admin I get:

<quote>


    Bug in Mailman version 2.1.9


      We're sorry, we hit a bug!

Please inform the webmaster for this site of this problem. Printing of 
traceback and other system information has been explicitly inhibited, 
but the webmaster can find this information in the Mailman error logs.
</quote>

The traceback information can be found from the Apache log file and the 
complete log shows:

[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] [----- Mailman 
Version: 2.1.9 -----]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] [----- 
Traceback ------]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] Traceback 
(most recent call last):
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]   File 
"/usr/local/mailman/scripts/driver", line

77, in run_main
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]     from 
Mailman.Logging.StampedLogger import

StampedLogger
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]   File

"/usr/local/mailman/Mailman/Logging/StampedLogger.py", line 18, in <module>
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]     import time
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] ImportError: 
ld.so.1: python: fatal: libgcc_s.so.1:

open failed: No such file or directory
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] [----- Python 
Information -----]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.version     =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 2.5 
(r25:51908, Apr  2 2007, 10:26:44)
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] [GCC 3.4.6]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.executable  =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
/usr/local/python/bin/python
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.prefix      =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] /usr/local/python
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.exec_prefix =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] /usr/local/python
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.path        =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] /usr/local/python
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sys.platform    =
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] sunos5
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] [----- 
Environment Variables -----]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tSERVER_SOFTWARE: Apache/2.2.3 (Unix)
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tSCRIPT_NAME: 
/mailman/admin
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tSERVER_SIGNATURE:
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tREQUEST_METHOD: GET
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_KEEP_ALIVE: 300
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tSERVER_PROTOCOL: HTTP/1.1
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tQUERY_STRING:
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_ACCEPT_CHARSET:

ISO-8859-1,utf-8;q=0.7,*;q=0.7
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows

NT 5.1; nl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tTZ: MET
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tSERVER_NAME: 
hostname.domain.com
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tREMOTE_ADDR: 
192.168.10.10
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tSERVER_PORT: 80
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tSERVER_ADDR: 
192.168.10.20
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tDOCUMENT_ROOT: /usr/local/apache/htdocs
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tPYTHONPATH: 
/usr/local/mailman
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tSCRIPT_FILENAME: /usr/local/mailman/cgi-bin/admin
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tSERVER_ADMIN: unix_operations at domain.com
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tHTTP_HOST: 
hostname.domain.com
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_CONNECTION: keep-alive
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tREQUEST_URI: 
/mailman/admin
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tHTTP_ACCEPT:

text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tGATEWAY_INTERFACE: CGI/1.1
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] \tREMOTE_PORT: 
4655
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_ACCEPT_LANGUAGE: nl,en-us;q=0.7,en;q=0.3
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10] 
\tHTTP_ACCEPT_ENCODING: gzip,deflate
[Mon Apr 02 11:07:06 2007] [error] [client 192.168.10.10]

Any help greatly appreciated!

/rolf











More information about the Mailman-Users mailing list