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

2007-04-05 Thread Rolf E. Sonneveld
Tokio Kikuchi wrote:
> Rolf E. Sonneveld wrote:
>> Tokio Kikuchi wrote:
 However, when I try to access Mailman via my browser (using Apache 
 on the server side) I get the infamous error message:
 
>>>  
 The /usr/local/lib version seems to be more recent. Before 
 installation, I made sure that LD_LIBRARY_PATH was set to 
>>> So, the apache was not running under LD_LIBRARY_PATH envrironment.  
>>> You should setenv LD_RUN_PATH while compiling or use crle.  Read the 
>>> crle man for detail.
>>>   
>>
>> as a followup to my previous message: I just did a ldd for httpd and 
>> this is the result:
>>
>> bash-3.00# ldd /usr/local/apache/bin/httpd
>
> It's not httpd which caused that error.  Maybe its python and/or a 
> module which resides in python library path (.../lib/python2.x/) which 
> is called from httpd running environment.  You should set LD_RUN_PATH 
> properly while compiling python, mailman, and httpd.  LD_LIBRARY_PATH 
> is only effective when the compiled executable is running.  So, you 
> might want to startup httpd like:
> # LD_LIBRARY_PATH=/whatever/lib /some/where/bin/apachectl start

Great! I removed Python and Mailman, recompiled again using the proper 
LD_RUN_PATH (in addition to the LD_LIBRARY_PATH) and now it works like a 
charm. I didn't have to recompile Apache. Thanks a lot for your help!

/rolf

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


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

2007-04-02 Thread Tokio Kikuchi
Rolf E. Sonneveld wrote:
> Tokio Kikuchi wrote:
>>> However, when I try to access Mailman via my browser (using Apache on 
>>> the server side) I get the infamous error message:
>>> 
>>   
>>> The /usr/local/lib version seems to be more recent. Before installation, 
>>> I made sure that LD_LIBRARY_PATH was set to 
>>> 
>> So, the apache was not running under LD_LIBRARY_PATH envrironment.  You 
>> should setenv LD_RUN_PATH while compiling or use crle.  Read the crle 
>> man for detail.
>>   
> 
> as a followup to my previous message: I just did a ldd for httpd and 
> this is the result:
> 
> bash-3.00# ldd /usr/local/apache/bin/httpd

It's not httpd which caused that error.  Maybe its python and/or a 
module which resides in python library path (.../lib/python2.x/) which 
is called from httpd running environment.  You should set LD_RUN_PATH 
properly while compiling python, mailman, and httpd.  LD_LIBRARY_PATH is 
only effective when the compiled executable is running.  So, you might 
want to startup httpd like:
# LD_LIBRARY_PATH=/whatever/lib /some/where/bin/apachectl start


-- 
Tokio Kikuchi, [EMAIL PROTECTED]
http://weather.is.kochi-u.ac.jp/
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


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

2007-04-02 Thread Rolf E. Sonneveld
Tokio Kikuchi wrote:
>> However, when I try to access Mailman via my browser (using Apache on 
>> the server side) I get the infamous error message:
>> 
>
>   
>> The /usr/local/lib version seems to be more recent. Before installation, 
>> I made sure that LD_LIBRARY_PATH was set to 
>> 
>
> So, the apache was not running under LD_LIBRARY_PATH envrironment.  You 
> should setenv LD_RUN_PATH while compiling or use crle.  Read the crle 
> man for detail.
>   

as a followup to my previous message: I just did a ldd for httpd and 
this is the result:

bash-3.00# ldd /usr/local/apache/bin/httpd
libm.so.2 => /lib/libm.so.2
libaprutil-1.so.0 => /usr/local/apache/lib/libaprutil-1.so.0
libexpat.so.0 => /usr/local/apache/lib/libexpat.so.0
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libapr-1.so.0 => /usr/local/apache/lib/libapr-1.so.0
libuuid.so.1 =>  /lib/libuuid.so.1
libsendfile.so.1 =>  /lib/libsendfile.so.1
librt.so.1 =>/lib/librt.so.1
libsocket.so.1 =>/lib/libsocket.so.1
libnsl.so.1 =>   /lib/libnsl.so.1
libpthread.so.1 =>   /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 =>   /lib/libaio.so.1
libmd5.so.1 =>   /lib/libmd5.so.1
libmp.so.2 =>/lib/libmp.so.2
libscf.so.1 =>   /lib/libscf.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


So here libgcc_s.so.1 seems to be fine too. Or?

Regards,
/rolf
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


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

2007-04-02 Thread Rolf E. Sonneveld
Dear Tokio,

first of all, thanks for your reply.

Tokio Kikuchi schreef:
>
>> However, when I try to access Mailman via my browser (using Apache on 
>> the server side) I get the infamous error message:
>
>> The /usr/local/lib version seems to be more recent. Before 
>> installation, I made sure that LD_LIBRARY_PATH was set to 
>
> So, the apache was not running under LD_LIBRARY_PATH envrironment.  
> You should setenv LD_RUN_PATH while compiling or use crle.  Read the 
> crle man for detail.

I forgot to mention that: before I compiled Python and Mailman, I 
changed the crle from:

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):/usr/lib/secure:/opt/SUNWmsgsr/lib

into:

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):
/usr/lib/secure:/opt/SUNWmsgsr/lib:/usr/local/lib

Then I rebooted the system and only after that was done, I started 
compiling. However, Apache was compiled under the old crle settings. Do 
you mean I should recompile Apache?

/rolf
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


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

2007-04-02 Thread Tokio Kikuchi

> However, when I try to access Mailman via my browser (using Apache on 
> the server side) I get the infamous error message:

> The /usr/local/lib version seems to be more recent. Before installation, 
> I made sure that LD_LIBRARY_PATH was set to 

So, the apache was not running under LD_LIBRARY_PATH envrironment.  You 
should setenv LD_RUN_PATH while compiling or use crle.  Read the crle 
man for detail.

-- 
Tokio Kikuchi, [EMAIL PROTECTED]
http://weather.is.kochi-u.ac.jp/
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


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

2007-04-02 Thread Rolf E. Sonneveld
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 
[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:




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.


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 
[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] [cl