Can't find libgcc after building 1.4.1

Wyllys Ingersoll wyllys.ingersoll at sun.com
Thu Aug 4 08:59:28 EDT 2005


Mike Friedman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I have an update to my earlier posting, because it was in error. (For 
> one thing, after setting LD_LIBRARY_PATH in my configure script and 
> compiling, I inadvertently tried the 'make install' without first 
> becoming root).
> 
> Actually, these are my symptoms:
> 
> o  I build and install krb5-1.4.1 (this is Solaris 9)
> 
> o As root, I find that when I run the installed kinit, I get this message:
> 
>    ld.so.1: kinit: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> 
> However, when I exit from my root shell, as my own userid, I don't get 
> that error message.  Similarly, under my own userid, ldd shows 
> everything as OK;  in particular, I get this entry:
> 
>    libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
> 
> whereas, as root, ldd shows this:
> 
>    ...
>    libgcc_s.so.1 =>         (file not found)
>    libgcc_s.so.1 =>         (file not found)
>    libgcc_s.so.1 =>         (file not found)
>    libgcc_s.so.1 =>         (file not found)
>    libgcc_s.so.1 =>         (file not found)
>    libgcc_s.so.1 =>         (file not found)
>    ...
> 
> So, why the error in resolving libgcc only when I'm root? (And why the 
> multiple 'not found' messages?).

Because root has a different, more restricted, default library path than
your normal user.  Check the value of $LD_LIBRARY_PATH when you are
'root' and compare to the same value when you are not root.

-Wyllys

> 
> Mike
>


More information about the Kerberos mailing list