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.
what is the output of revdep-rebuild?
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.
(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.
(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.
(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
(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.