[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: libgcc_so.1 - not found, sitting right with other libs that are found

On Fri, 18 Aug 2006, Jeff Blaine wrote:

Solaris 9, GNU C 3.2.3 which has been used to build 20 other
apps on this box with zero problems.

LDFLAGS="-L/export/home/lib -R/export/home/lib -L/export/home/lib/sasl2 -R/export/home/lib/sasl2"

You do not need -R/export/home/lib/sasl2, libsasl2.so.2 know (should) how to deal with those.

I'll PayPal $2 to anyone who can give me a fix to this without
involving LD_LIBRARY_PATH (which is not a "fix", it's a hack
workaround for an improper build).


openldap-2.3.24 : noodle # ldd /export/home/bin/ldapsearch
       libsasl2.so.2 =>         /export/home/lib/libsasl2.so.2
       libdl.so.1 =>    /usr/lib/libdl.so.1
       libssl.so.0.9.7 =>       /export/home/lib/libssl.so.0.9.7
       libcrypto.so.0.9.7 =>    /export/home/lib/libcrypto.so.0.9.7
       libresolv.so.2 =>        /usr/lib/libresolv.so.2
       libgen.so.1 =>   /usr/lib/libgen.so.1
       libnsl.so.1 =>   /usr/lib/libnsl.so.1
       libsocket.so.1 =>        /usr/lib/libsocket.so.1
       libc.so.1 =>     /usr/lib/libc.so.1
       libgcc_s.so.1 =>         (file not found)      !!!!!
       libgcc_s.so.1 =>         (file not found)      !!!!!
       libmp.so.2 =>    /usr/lib/libmp.so.2

What do you get for

ldd /export/home/lib/libsasl2.so.2

ldd /export/home/lib/libssl.so.0.9.7

ldd /export/home/lib/libcrypto.so.0.9.7


My guess is that two one of those libs cannot find libgcc. If so, you need to re-build those packages with -R/export/home/lib

openldap-2.3.24 : noodle #

[ Clearly it found plenty in /export/home/lib ]

openldap-2.3.24 : noodle # ls -ld /export/home/lib/libgcc_s.so.1
-rw-r--r-- 1 bin bin 757932 Apr 29 2003 /export/home/lib/libgcc_s.so.1

[ But refuses to see libgcc_s.so.1 sitting right there? ]

openldap-2.3.24 : noodle # /usr/ccs/bin/elfdump -d /export/home/bin/ldapsearch | grep PATH
[11] RUNPATH 0x2c1c /export/home/lib:/export/home/lib/sasl2
[12] RPATH 0x2c1c /export/home/lib:/export/home/lib/sasl2
openldap-2.3.24 : noodle #

-- Igor