LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2016, 03:36 AM   #1
cmyster
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Slackware64-current
Posts: 61

Rep: Reputation: 4
HTTPD won't start with latest sasl


Unless I did something wrong, but with latest sasl version I see this:

# ls -l /usr/lib64/libsasl2.so*
... /usr/lib64/libsasl2.so -> libsasl2.so.3.0.0*
... /usr/lib64/libsasl2.so.3 -> libsasl2.so.3.0.0*

But HTTPD is still looking for /usr/lib64/libsasl2.so.2 which I created by linking it to libsasl2.so.3.0.0 (dirty like surrounder said).

# slackpkg search sasl

Looking for sasl in package list. Please wait... DONE

The list below shows all packages with name matching "sasl".

[ installed ] - qca-cyrus-sasl-2.0.0_beta3-x86_64-2
[ installed ] - cyrus-sasl-2.1.26-x86_64-1
 
Old 02-17-2016, 03:50 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,391

Rep: Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329
you probably have to update your httpd too: here
Code:
# objdump -x /usr/sbin/httpd | grep NEEDED | grep sasl 
  NEEDED               libsasl2.so.3
# ls -la /usr/sbin/httpd 
-rwxr-xr-x 1 root root 622424 Nov 18 03:21 /usr/sbin/httpd
 
Old 02-17-2016, 04:30 AM   #3
cmyster
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 4
And yet...

installed version is httpd-2.4.17-x86_64-2

$ objdump -x /usr/sbin/httpd | grep NEEDED | grep sasl
NEEDED libsasl2.so.3

and

# ldd /usr/sbin/httpd
linux-vdso.so.1 (0x00007ffe4bdb8000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f34a30b8000)
libaprutil-1.so.0 => /usr/lib64/libaprutil-1.so.0 (0x00007f34a2e8e000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f34a2c64000)
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00007f34a2996000)
libicui18n.so.56 => /usr/lib64/libicui18n.so.56 (0x00007f34a2509000)
libicuuc.so.56 => /usr/lib64/libicuuc.so.56 (0x00007f34a2171000)
libicudata.so.56 => /usr/lib64/libicudata.so.56 (0x00007f34a078e000)
libdb-4.4.so => /lib64/libdb-4.4.so (0x00007f34a047f000)
libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x00007f34a0236000)
libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007f34a001a000)
libssl.so.1 => /lib64/libssl.so.1 (0x00007f349fda1000)
libcrypto.so.1 => /lib64/libcrypto.so.1 (0x00007f349f952000)
liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007f349f744000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f349f529000)
libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00007f349f2f5000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f349f0f1000)
librt.so.1 => /lib64/librt.so.1 (0x00007f349eee9000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f349ecb0000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f349ea92000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f349e88e000)
libc.so.6 => /lib64/libc.so.6 (0x00007f349e4c1000)
libm.so.6 => /lib64/libm.so.6 (0x00007f349e1c0000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f349de45000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f349dc2f000)
/lib64/ld-linux-x86-64.so.2 (0x0000555b2685a000)

but
# /etc/rc.d/rc.httpd start
/usr/sbin/httpd: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
 
Old 02-17-2016, 04:38 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,391

Rep: Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329
you probably have other stuff in your system still linking to the old libsasl2.
if you want to find what is you can check it using objdump: run it like this
Code:
# objdump -x /usr/sbin/httpd | grep NEEDED
  NEEDED               libpcre.so.1
  NEEDED               libaprutil-1.so.0
  NEEDED               libexpat.so.1
  NEEDED               libsqlite3.so.0
  NEEDED               libicui18n.so.56
  NEEDED               libicuuc.so.56
  NEEDED               libicudata.so.56
  NEEDED               libdb-4.4.so
  NEEDED               libldap-2.4.so.2
  NEEDED               libsasl2.so.3
  NEEDED               libssl.so.1
  NEEDED               libcrypto.so.1
  NEEDED               liblber-2.4.so.2
  NEEDED               libresolv.so.2
  NEEDED               libapr-1.so.0
  NEEDED               libuuid.so.1
  NEEDED               librt.so.1
  NEEDED               libcrypt.so.1
  NEEDED               libpthread.so.0
  NEEDED               libdl.so.2
  NEEDED               libc.so.6
then repeat this with every library you got in output from the first step and so on until you get what links to the old version of libsasl2.
 
1 members found this post helpful.
Old 02-17-2016, 05:23 AM   #5
cmyster
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 4
Thanks for the tip:
for lib in $(objdump -x /usr/sbin/httpd | grep NEEDED | awk '{print $NF}'); do echo "Now checking $lib:"; objdump -x $(locate $lib); done > file
and indeed looking into file I see that libldap-2.4.so.2 is looking for the problematic file, which is a part of aaa_elflibs or
openldap-client which is not installed on my machine. Installing the later fixed this issue, thanks a lot.
 
  


Reply

Tags
httpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL5 httpd won't start jnojr Red Hat 4 01-20-2010 09:39 PM
httpd won't start charlie2450 Linux - Newbie 17 03-12-2008 07:23 PM
httpd won'[t start charlie2450 Linux - Server 1 03-12-2008 07:19 AM
httpd won't start jim.thornton Linux - Newbie 2 01-06-2008 02:57 PM
HTTPD won't start with PHP 4.3.4 BarkingBonefish Linux - Software 0 03-03-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration