samba-4.4 nss_wins rpath does not include <lib/private>

Jones Syue jonessyue at qnap.com
Tue Sep 20 00:17:41 UTC 2016


Hello list,

https://bugzilla.samba.org/show_bug.cgi?id=12277
Just for reference, looks like will address here,
thank you samba team!


--
Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.

On Wed, Aug 31, 2016 at 3:09 PM, Jones Syue <jonessyue at qnap.com> wrote:

> Hello list,
>
> The samba4 installation path is /usr/local/samba in my linux box,
> the symptom is failed to ping remote HOSTNAME if samba-4.4.5 installed,
> looks like libnss_wins.so.2 cannot find the libreplace-samba4.so,
> which is resident in /usr/local/samba/lib/private/libreplace-samba4.so .
>
> 2 workarounds could help this symptom,
> A) Create a symbolic link in the linux box,
> ln -sf /usr/local/samba/lib/private/libreplace-samba4.so
> /usr/local/samba/lib
>
> B) Rollback: remove samba-4.4.5 and install samba-4.0 or samba-4.1 into
> the linux box,
> and ping remote HOSTNAME is good.
>
> https://wiki.samba.org/index.php/Samba_4.4_Features_added/
> changed#WINS_nsswitch_module
> Looks like new nss_wins is introduced from samba-4.4,
> the question is if  i want to add the rpath /usr/local/samba/lib/private
> to libnss_wins.so.2,
> which configure option should be added,
> or supposed to edit some wscript_build scripts,
> any suggestions are much appreciated,
> thank you.
>
> samba-4.4.5 has issue.
> # ldd libnss_wins.so.2
> libreplace-samba4.so => not found
> # readelf -d libnss_wins.so.2 | grep RPATH
>  0x0000000f (RPATH)                      Library rpath:
> [/usr/local/samba/lib]
>
> samba-4.0 and samba-4.1 are fine.
> # readelf -d libnss_wins.so.2 | grep RPATH
>  0x0000000f (RPATH)                      Library rpath:
> [/usr/local/samba/lib:/usr/local/samba/lib/private]
>
> --
> Regards,
> Jones Syue | 薛懷宗
> QNAP Systems, Inc.
>


More information about the samba-technical mailing list