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

Jones Syue jonessyue at qnap.com
Wed Aug 31 07:09:45 UTC 2016


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.

-- 


The information contained in this electronic message and attachment is 
confidential and is for the use of the intended recipient only. Any 
disclosure, copying or distribution of this electronic message without the 
sender’s consent is strictly prohibited. If you are not the intended 
recipient, please notify the sender and delete this electronic message and 
all attachment entirely without using, retaining, or disclosing any of its 
contents. 

If the information contained in this electronic message involving personal 
data, you shall follow the "Personal Information Protection Act" and other 
related law(s). In the event a breach by you results in damage to QNAP 
Systems, Inc., you shall compensate for the damages arising from such 
breach (including but not limited to the goodwill losses). 

This electronic message is for information purposes only and shall not be 
construed as an offer or solicitation of an offer or an acceptance or a 
confirmation of any contract or transaction. All data or other information 
contained herein are not warranted to be complete and accurate and are 
subject to change without notice. Therefore, the sender and/or QNAP 
Systems, Inc. shall not be liable for the information if altered, modified, 
changed, falsified improperly or incompletely transmitted nor for any delay 
in its receipt or damage to your system. 

Any comments or statements made herein do not necessarily reflect those of 
QNAP Systems, Inc. or any of its affiliates. Internet electronic messages 
cannot be guaranteed to be timely, secure, error or virus-free as 
information could be intercepted, corrupted, lost, arrive late or contain 
viruses. The sender and/or QNAP Systems, Inc. will not accept liability for 
any errors or omissions arising from internet transmission.


More information about the samba-technical mailing list