Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275466 - net-fs/samba-3.2.13 - /usr/sbin/smbd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Summary: net-fs/samba-3.2.13 - /usr/sbin/smbd: error while loading shared libraries: l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 09:37 UTC by Norman Back
Modified: 2009-06-26 21:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2009-06-26 09:37:55 UTC
After upgrading from net-fs/samba-3.0.34 to net-fs/samba-3.2.13 got error

/usr/sbin/smbd: error while loading shared libraries: cannot open shared object file: No such file or directory

Reproducible: Always

Steps to Reproduce:
1. Upgrade from net-fs/samba-3.0.34 to net-fs/samba-3.2.13
2. /etc/init.d/samba restart


Actual Results:  
/usr/sbin/smbd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
when smbd restarted

Expected Results:  
smbd restarts cleanly.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-06-26 09:45:31 UTC
what is the output of revdep-rebuild?
Comment 2 Richard Foltyn 2009-06-26 12:48:21 UTC
I encountered the same problem when upgrading to 3.2.13.

It seems that some symlinks from /usr/lib/ to /usr/lib/samba are missing, therefore smbd cannot find libwbclient.so.0:

# cd /usr/lib/samba; for so in *.so.*; do ls -la /usr/lib/$so; done
ls: cannot access /usr/lib/libnetapi.so.0: No such file or directory
lrwxrwxrwx 1 root root 23 2009-06-26 10:29 /usr/lib/libsmbclient.so.0 -> samba/libsmbclient.so.0
ls: cannot access /usr/lib/libsmbsharemodes.so.0: No such file or directory
lrwxrwxrwx 1 root root 20 2009-06-26 10:29 /usr/lib/libtalloc.so.1 -> samba/libtalloc.so.1
lrwxrwxrwx 1 root root 17 2009-06-26 10:29 /usr/lib/libtdb.so.1 -> samba/libtdb.so.1
ls: cannot access /usr/lib/libwbclient.so.0: No such file or directory

Consequently, when you do 
# cd /usr/lib
# ln -s samba/libwbclient.so.0 libwbclient.so.0
# ln -s samba/libsmbsharemodes.so.0 libsmbsharemodes.so.0
# ln -s samba/libnetapi.so.0 libnetapi.so.0

smbd starts just fine.
Comment 3 Norman Back 2009-06-26 12:51:59 UTC
(In reply to comment #1)
> what is the output of revdep-rebuild?
>


revdep-rebuild -p
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]

 * Dynamic linking on your system is consistent... All done.
Comment 4 Norman Back 2009-06-26 12:53:34 UTC
(In reply to comment #2)
> I encountered the same problem when upgrading to 3.2.13.
....
> Consequently, when you do 
> # cd /usr/lib
> # ln -s samba/libwbclient.so.0 libwbclient.so.0
> # ln -s samba/libsmbsharemodes.so.0 libsmbsharemodes.so.0
> # ln -s samba/libnetapi.so.0 libnetapi.so.0
> 
> smbd starts just fine.

but I shouldn't need to any of that.
Comment 5 Patrick Lauer gentoo-dev 2009-06-26 17:23:13 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > I encountered the same problem when upgrading to 3.2.13.
> ....
> > Consequently, when you do 
> > # cd /usr/lib
> > # ln -s samba/libwbclient.so.0 libwbclient.so.0
> > # ln -s samba/libsmbsharemodes.so.0 libsmbsharemodes.so.0
> > # ln -s samba/libnetapi.so.0 libnetapi.so.0
> > 
> > smbd starts just fine.
> 
> but I shouldn't need to any of that.

Yes, and that's why you get a -r1 of the ebuild that does it for you.

+*samba-3.2.13-r1 (26 Jun 2009)
+
+  26 Jun 2009; Patrick Lauer <patrick@gentoo.org> +samba-3.2.13-r1.ebuild:
+  Fixing missing symlinks, closes #275466


Comment 6 Norman Back 2009-06-26 21:23:00 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > I encountered the same problem when upgrading to 3.2.13.
> > ....
> > > Consequently, when you do 
> > > # cd /usr/lib
> > > # ln -s samba/libwbclient.so.0 libwbclient.so.0
> > > # ln -s samba/libsmbsharemodes.so.0 libsmbsharemodes.so.0
> > > # ln -s samba/libnetapi.so.0 libnetapi.so.0
> > > 
> > > smbd starts just fine.
> > 
> > but I shouldn't need to any of that.
> 
> Yes, and that's why you get a -r1 of the ebuild that does it for you.
> 
> +*samba-3.2.13-r1 (26 Jun 2009)
> +
> +  26 Jun 2009; Patrick Lauer <patrick@gentoo.org> +samba-3.2.13-r1.ebuild:
> +  Fixing missing symlinks, closes #275466
> 

Thanks Patrick. I have merged samba-3.2.13-r1 and can confirm that the issue is fixed. smbd now starts cleanly.