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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at
freebsd.org"