Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2019 00:25:25 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        mike tancsa <mike@sentex.net>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: lib not found and found at the same time ?
Message-ID:  <20191113222525.GW2707@kib.kiev.ua>
In-Reply-To: <a0d92250-b0dc-8cbb-4817-a88abece4110@sentex.net>
References:  <a0d92250-b0dc-8cbb-4817-a88abece4110@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 13, 2019 at 04:48:40PM -0500, mike tancsa wrote:
> I was trying to upgrade (failed) and then re-install the
> samba410-4.10.10 port on a RELENG12 box.  One of the Samba libs shows
> some output I dont understand on ldd
> 
> ldd /usr/local/lib/nss_wins.so.1
> /usr/local/lib/nss_wins.so.1:
>         libwbclient.so.0 => /usr/local/lib/samba4/libwbclient.so.0
> (0x801003000)
>         libwinbind-client-samba4.so => not found (0)
>         libreplace-samba4.so => not found (0)
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x80066b000)
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
>         libwinbind-client-samba4.so =>
> /usr/local/lib/samba4/private/libwinbind-client-samba4.so (0x801213000)
>         libreplace-samba4.so =>
> /usr/local/lib/samba4/private/libreplace-samba4.so (0x801417000)
> 
> 
> There are 2 libs it says it cannot find, but then a few lines below it
> says it found them ?
First instance (not found) is probably the direct dependency, which is
probably not found because nss_wins.so does not have rpath recorded.
Then, I guess, some other library also depends on libwinbind-client-samba4.so,
but this library has rpath.

You can check this with readelf, look for DT_NEEDED and DT_RPATH*
dynamic entries.

> 
> ldd -av /usr/local/lib/nss_wins.so.1
> /usr/local/lib/nss_wins.so.1:
>         libwbclient.so.0 => /usr/local/lib/samba4/libwbclient.so.0
> (0x801003000)
>         libwinbind-client-samba4.so => not found (0)
>         libreplace-samba4.so => not found (0)
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x800665000)
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
> /usr/local/lib/samba4/libwbclient.so.0:
>         libwinbind-client-samba4.so =>
> /usr/local/lib/samba4/private/libwinbind-client-samba4.so (0x801213000)
>         libreplace-samba4.so =>
> /usr/local/lib/samba4/private/libreplace-samba4.so (0x801417000)
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x800665000)
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
> /lib/libcrypt.so.5:
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
> /usr/local/lib/samba4/private/libwinbind-client-samba4.so:
>         libreplace-samba4.so =>
> /usr/local/lib/samba4/private/libreplace-samba4.so (0x801417000)
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x800665000)
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
> /usr/local/lib/samba4/private/libreplace-samba4.so:
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x800665000)
>         libc.so.7 => /lib/libc.so.7 (0x80024a000)
> 
>     ---Mike
> 
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191113222525.GW2707>