missing rpath [was: building bundled talloc/tevent/tdb libs out of main samba sources]

Michael Tokarev mjt at tls.msk.ru
Wed Nov 27 14:46:28 UTC 2024


27.11.2024 17:24, Michael Tokarev via samba-technical wrote:
...
> I removed --disable-rpath --disable-rpath-install and now everything
> is in order.

Actually it's not that simple.  With the new configure options, *all*
binaries have samba private rpath (/usr/lib/x86_64-linux-gnu/samba/ in
this case), since essentially everything is having samba private "replace"
library in deps.

Including things like talloc/tdb:

$ patchelf --print-rpath usr/lib/x86_64-linux-gnu/libtalloc.so
/usr/lib/x86_64-linux-gnu/samba

I guess the easiest would be to run patchelf on these to remove
this part, instead of tweaking samba build system for this,
which is already insanely complex.

/mjt



More information about the samba-technical mailing list