Q: RUNPATH missing in libsmbldap.so but not other executables/libraries?

Michael Tokarev mjt at tls.msk.ru
Fri May 13 09:35:05 UTC 2022


Hi!

In debian we've got a bugreport about one of the samba libraries missing RUNPATH
to the private library directory (where libreplace-sambae.so libsmbd-shim-samba4.so
etc are located.  This one is libsmbldap.so.2.1.0. And indeed, unlike all other
libs and executables, this one lacks RUNPATH section, while all other binaries
does have it.

$ ldd /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 | grep found
	libsamba-debug-samba4.so.0 => not found
	libreplace-samba4.so.0 => not found
	libsamba-security-samba4.so.0 => not found
	libsmbd-shim-samba4.so.0 => not found


$ objdump -p /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0  | egrep 'RUNPATH|RPATH|NEEDED' | grep samba
   NEEDED               libsamba-util.so.0
   NEEDED               libsmbconf.so.0
   NEEDED               libsamba-debug-samba4.so.0
   NEEDED               libreplace-samba4.so.0
   NEEDED               libsamba-security-samba4.so.0
   NEEDED               libsmbd-shim-samba4.so.0

while other libraries and executables:

$ objdump -p /usr/lib/x86_64-linux-gnu/libsamba-passdb.so.0.28.0  | egrep 'RUNPATH|RPATH|NEEDED' | grep samba
   NEEDED               libsmbldaphelper-samba4.so.0
   NEEDED               libsamba-modules-samba4.so.0
   NEEDED               libldbsamba-samba4.so.0
   NEEDED               libsamba3-util-samba4.so.0
   NEEDED               libdbwrap-samba4.so.0
   NEEDED               libreplace-samba4.so.0
   NEEDED               libsamba-credentials.so.1
   NEEDED               libsecrets3-samba4.so.0
   NEEDED               libsamdb-common-samba4.so.0
   NEEDED               libsamba-util.so.0
   NEEDED               libcliauth-samba4.so.0
   NEEDED               libsamba-errors.so.1
   NEEDED               libsamba-security-samba4.so.0
   NEEDED               libndr-samba-samba4.so.0
   NEEDED               libsamba-hostconfig.so.0
   NEEDED               libsamba-debug-samba4.so.0
   NEEDED               libtdb-wrap-samba4.so.0
   NEEDED               libutil-tdb-samba4.so.0
   NEEDED               libevents-samba4.so.0
   NEEDED               libcli-ldap-common-samba4.so.0
   NEEDED               libgenrand-samba4.so.0
   NEEDED               libsmbd-shim-samba4.so.0
   RUNPATH              /usr/lib/x86_64-linux-gnu/samba


How come this single library (libsmbldap.so) does not have a RUNPATH specified
but all the other does?

Thanks!

/mjt



More information about the samba-technical mailing list