Bug 1576027 - smbclient - libwbclient.so.0 not found
Summary: smbclient - libwbclient.so.0 not found
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: samba
Version: 7.5
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-08 15:18 UTC by MarkS
Modified: 2018-05-09 15:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-09 15:56:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description MarkS 2018-05-08 15:18:37 UTC
Description of problem:
Running RHEL Workstation 7.5, fully patched. Attempting to run "smbclient" tools fails as it cannot find one of its libraries.

Version-Release number of selected component (if applicable):
samba-client-4.7.1-6.el7.x86_64
libwbclient-4.7.1-6.el7.x86_64

How reproducible:
I did attempt to reinstall both packages to see if it was a broken install. I am unsure exactly when the break occurred as I do not regularly use smbclient.

Steps to Reproduce:
1. /usr/bin/smbclient

Actual results:
/usr/bin/smbclient: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory

Expected results:
Usage: smbclient [-?EgBVNkPeC] ....

Additional info:
It seems this is just a search path issue.

1. echo "/usr/lib64/samba/wbclient" >>/etc/ld.so.conf.d/samba-fix.conf
2. ldconfig
3. smbclient

Works

Comment 2 Andreas Schneider 2018-05-09 14:55:41 UTC
Please check where the symlink ob libwbclient is pointing to:

krikkit:~ # ll /usr/lib64/libwbclient.so.0*
lrwxrwxrwx 1 root root 19 May  9 16:53 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14                                                                                
lrwxrwxrwx 1 root root 40 May  9 16:53 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64                                                        
krikkit:~ # ll /etc/alternatives/libwbclient.so.0.14-64
lrwxrwxrwx 1 root root 45 May  9 16:53 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14

Make sure sssd-libwbclient is not installed and reinstall libwbclient, then the symlink should be setup correctly.

Comment 3 MarkS 2018-05-09 15:34:55 UTC
Many thanks for the quick response, you were correct to point to sssd-lbwbclient as my issue. I removed it and reinstalled libwbclient, after which everything is functional again.

# ls -l /usr/lib64/libwbclient.so.0* /etc/alternatives/libwbclient.so.0.14-64 
lrwxrwxrwx. 1 root root 45 May  9 16:27 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14
lrwxrwxrwx. 1 root root 19 May  9 16:27 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14
lrwxrwxrwx. 1 root root 40 May  9 16:27 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64

# alternatives --list | grep samba
libwbclient.so.0.14-64	auto	/usr/lib64/samba/wbclient/libwbclient.so.0.14


Note You need to log in before you can comment on or make changes to this bug.