[csw-users] pidgin fails when aspell is installed

James Lee james at opencsw.org
Sat Nov 14 20:43:36 CET 2009


On 14/11/09, 18:32:36, Stoyan Angelov <s_angelov at filibeto.org> wrote
regarding Re: [csw-users] pidgin fails when aspell is installed:

> i don't have gcc3g++rt installed but you nailed the problem with the
> /usr/sfw/lib destination. i forgot to remove /usr/sfw/lib from crle's
> configuration. after fixing this pidgin works with aspell installed.
> thanks for your help!

Sorry it's taken me while to find this, although you triggered it by
using libgcc_s.so.1 in /usr/sfw/lib you have isolated a problem.  It
can happen if gcc3 libs are installed with no gcc3g++rt.

Either install CSWgcc3g++rt, remove CSWgcc3corert or set
LD_LIBRARY_PATH=/opt/csw/gcc4/lib.


The problem is caused by there being duplicates of these files:

/opt/csw/lib/libstdc++.so.6
/opt/csw/lib/libgcc_s.so.1
/opt/csw/gcc4/lib/libstdc++.so.6
/opt/csw/gcc4/lib/libgcc_s.so.1

Which would be all right had the previous incarnation of gcc4 had
known to put /opt/csw/gcc4/lib in front of /opt/csw/lib, e.g. using
gcc4g++ 4.0.2,REV=2005.09.29:

$ /opt/csw/gcc4/bin/g++ -R/opt/csw/lib test.cc
$ dump -Lv a.out | grep RPATH
[8]     RPATH           /opt/csw/lib:/opt/csw/gcc4/lib

which picks up gcc3's libs, if installed.  The error occurs if
it finds libgcc_s.so from the gcc3 runtime but uses libstdc++.so.6
from the gcc4gc++rt which expects a different libgcc_s.so.1



The previous gcc4 coped because it had an RPATH.  Using gcc
4.0.2,REV=2005.09.29:

$ dump  -Lv /opt/csw/gcc4/lib/libstdc++.so.6 | grep RPATH
[8]     RPATH           /opt/csw/lib


ldd /opt/csw/lib/libaspell.so.15
        libdl.so.1 =>    /lib/libdl.so.1
        libintl.so.3 =>  /opt/csw/lib/libintl.so.3
        libc.so.1 =>     /lib/libc.so.1
        libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
        libstdc++.so.6 =>        /opt/csw/gcc4/lib/libstdc++.so.6
        libm.so.1 =>     /lib/libm.so.1
        libgcc_s.so.1 =>         /opt/csw/lib/libgcc_s.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1




Using gcc4g++rt 4.3.3,REV=2009.05.07:


$ dump -Lv /opt/csw/gcc4/lib/libstdc++.so.6 | grep -c RPATH
0


$ ldd /opt/csw/lib/libaspell.so.15
        libdl.so.1 =>    /lib/libdl.so.1
        libintl.so.3 =>  /opt/csw/lib/libintl.so.3
        libc.so.1 =>     /lib/libc.so.1
        libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
        libstdc++.so.6 =>        /opt/csw/gcc4/lib/libstdc++.so.6
        libm.so.1 =>     /lib/libm.so.1
        libgcc_s.so.1 =>         /opt/csw/lib/libgcc_s.so.1
        libgcc_s.so.1 (GCC_4.3.0) =>     (version not found)
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1





James.



More information about the users mailing list