You are not logged in.

#1 2013-05-22 15:14:43

andybp85
Member
Registered: 2013-05-22
Posts: 4

[SOLVED] Samba can't find shared library libsasl2.so.2

Samba is installed but won't start. systemctl status smbd.service returns:

smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
   Active: failed (Result: exit-code) since Wed 2013-05-22 10:17:03 EDT; 41min ago

May 22 10:17:03 andydesktop systemd[1]: Starting Samba SMB/CIFS server...
May 22 10:17:03 andydesktop smbd[1421]: /usr/bin/smbd: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
May 22 10:17:03 andydesktop systemd[1]: smbd.service: control process exited, code=exited status=127
May 22 10:17:03 andydesktop systemd[1]: Failed to start Samba SMB/CIFS server.
May 22 10:17:03 andydesktop systemd[1]: Unit smbd.service entered failed state

I have updated with pacman -Syu and installed libsasl. I tried enabling the testing repositories, but I don't think it found a newer version (not 100% sure about this but it is still broken). pacman -Qi libsasl returns:

Name           : libsasl
Version        : 2.1.26-2
Description    : Cyrus Simple Authentication Service Layer (SASL) Library
Architecture   : x86_64
URL            : http://cyrusimap.web.cmu.edu/
Licenses       : custom
Groups         : None
Provides       : None
Depends On     : openssl  krb5
Optional Deps  : None
Required By    : cyrus-sasl  libldap
Optional For   : None
Conflicts With : cyrus-sasl-plugins
Replaces       : None
Installed Size : 582.00 KiB
Packager       : Bartłomiej Piotrowski <barthalion@gmail.com>
Build Date     : Sat 11 May 2013 02:33:27 AM EDT
Install Date   : Wed 22 May 2013 10:41:32 AM EDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature

locate libsasl2 returns:

/usr/lib/libsasl2.so
/usr/lib/libsasl2.so.3
/usr/lib/libsasl2.so.3.0.0

Seems to me samba's looking for an older version of libsasl, but I'm not sure which one to downgrade to - or if that's even the right solution.

I found some info in this topic but I still can't figure out how to get so.2: https://bbs.archlinux.org/viewtopic.php?pid=1272906 I did notice that my libsasl was built a day after the one in that thread; maybe they changed something?

Any help is greatly appreciated! Thanks!

Last edited by andybp85 (2013-05-22 17:00:11)

Offline

#2 2013-05-22 15:18:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

You should update with 'pacman -Syu', not with 'pacman -Sy'.

Offline

#3 2013-05-22 15:19:33

andybp85
Member
Registered: 2013-05-22
Posts: 4

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

touche - that was actually a typo, I did do -Syu

Edit: fixed

Last edited by andybp85 (2013-05-22 15:20:09)

Offline

#4 2013-05-22 15:21:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

What's the output of 'pacman -Q samba'?

Offline

#5 2013-05-22 15:21:51

andybp85
Member
Registered: 2013-05-22
Posts: 4

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

samba 4.0.5-4

Offline

#6 2013-05-22 15:56:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,565

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

How about pacman -Q smbclient?

Last edited by Scimmia (2013-05-22 15:59:02)

Online

#7 2013-05-22 16:01:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

/usr/bin/smbd is provided by samba, not smbclient.

Offline

#8 2013-05-22 16:03:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,565

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

karol wrote:

/usr/bin/smbd is provided by samba, not smbclient.

But smbd is linked to a lot of libs from smbclient. If one of those libs is linked to libsasl2.so.2, you would get this same error.

Check it out, smbd isn't linked directly to libsasl at all. objdump -x /usr/bin/smbd | grep NEEDED

Online

#9 2013-05-22 16:10:48

andybp85
Member
Registered: 2013-05-22
Posts: 4

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

I installed smbclient and it worked!

smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
   Active: active (running) since Wed 2013-05-22 12:08:18 EDT; 2s ago

Thanks so much, I wouldn't have thought of that!

Offline

#10 2013-05-22 16:36:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Samba can't find shared library libsasl2.so.2

andybp85 wrote:

Thanks so much, I wouldn't have thought of that!

+1 ;P


andybp85, please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB