[asterisk-users] libspandsp.so.0: cannot open shared object file: No such file or directory

Doug Doug at NaTel.net
Sun Nov 30 20:21:05 CST 2008


At 14:30 11/30/2008, Tzafrir Cohen wrote:
 >On Sun, Nov 30, 2008 at 12:02:44AM -0600, Doug wrote:
 >> At 15:32 11/29/2008, Tzafrir Cohen wrote:
 >>  >On Sat, Nov 29, 2008 at 02:59:18PM -0600, Doug wrote:
 >>  >> Thanks for your reply, Alex.
 >>  >>
 >>  >> At 00:14 11/29/2008, Alex Balashov wrote:
 >>  >>  >Paste 'ldd /usr/sbin/asterisk'.
 >>  >>
 >>  >>   ldd /usr/sbin/asterisk
 >>  >>          linux-gate.so.1 =>  (0xffffe000)
 >>  >>          libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f98000)
 >>  >>          libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0
 >(0xb7f86000)
 >>  >>          libncurses.so.5 => /lib/libncurses.so.5 (0xb7f44000)
 >>  >>          libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f1f000)
 >>  >>          libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 
(0xb7f0c000)
 >>  >>          libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8
 >(0xb7ecd000)
 >>  >>          libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d9c000)
 >>  >>          /lib/ld-linux.so.2 (0xb7fa4000)
 >>  >>          libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8
 >>  >> (0xb7c61000)
 >>  >>          libz.so.1 => /usr/lib/libz.so.1 (0xb7c4d000)
 >>  >>
 >>  >> Do I need a symlink in "/usr/sbin/asterisk" to point
 >>  >> to "/usr/local/lib/libspandsp.so.1.0.0" ?
 >>  >
 >>  >No. Not in /usr/sbin/asterisk . In the specific module . Try e.g.:
 >>  >
 >>  >  ldd /usr/lib/asterisk/modules/app_fax.so
 >>
 >> OK:
 >>
 >> ldd /usr/lib/asterisk/modules/app_rxfax.so
 >>          linux-gate.so.1 =>  (0xffffe000)
 >>          libspandsp.so.0 => not found
 >>          libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb7ef9000)
 >>          libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc8000)
 >>          libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7da8000)
 >>          libz.so.1 => /usr/lib/libz.so.1 (0xb7d94000)
 >>          libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d6f000)
 >>          /lib/ld-linux.so.2 (0x80000000)
 >>
 >>
 >> How come it can't find it?
 >>
 >> #find / -name "libspandsp.so.0"
 >> /usr/local/lib/libspandsp.so.0
 >>
 >> # cd /usr/local/lib/
 >> # ls -lt lib*
 >> lrwxrwxrwx 1 root staff      19 2008-11-28 22:42 libspandsp.so.0 ->
 >> libspandsp.so.1.0.0
 >
 >
 >This symlink was added manually, right?

Yes.


 >libspandsp as of 0.0.5pre1 bumped SONAME to 1. That is: it has declared
 >it changed its binary interface (ABI). Your manual symlink attempts to
 >declare that the newer spandsp is compatible with the older one (read:
 >that it will not segfault Asterisk)
 >
 >> -rw-r--r-- 1 root staff 1849266 2008-11-13 13:26 libspandsp.a
 >> -rwxr-xr-x 1 root staff     865 2008-11-13 13:26 libspandsp.la
 >> lrwxrwxrwx 1 root staff      19 2008-11-13 13:26 libspandsp.so ->
 >> libspandsp.so.1.0.0
 >> lrwxrwxrwx 1 root staff      19 2008-11-13 13:26 libspandsp.so.1 ->
 >> libspandsp.so.1.0.0
 >> -rwxr-xr-x 1 root staff 1433877 2008-11-13 13:26 libspandsp.so.1.0.0
 >
 >Those links were set at install-time, I guess.
 >
 >Try removing both symlinks and running ldconfig again . Do you get any
 >messages? Or maybe 'ldconfig -v' and see what happens.

Thanks.  Will do:

:/usr/local/lib# ldconfig -v
ldconfig: Can't stat /lib64: No such file or directory
ldconfig: Can't stat /usr/lib64: No such file or directory
/lib/i486-linux-gnu:
/usr/lib/i486-linux-gnu:
/usr/local/lib:
         libspandsp.so.1 -> libspandsp.so.1.0.0 (changed)
/lib:
         libmemusage.so -> libmemusage.so
         libproc-3.2.7.so -> libproc-3.2.7.so
         libselinux.so.1 -> libselinux.so.1
         libsepol.so.1 -> libsepol.so.1
         libattr.so.1 -> libattr.so.1.1.0
         libSegFault.so -> libSegFault.so
         libutil.so.1 -> libutil-2.3.6.so
         libblkid.so.1 -> libblkid.so.1.0
         libcidn.so.1 -> libcidn-2.3.6.so
         libgcc_s.so.1 -> libgcc_s.so.1
         libthread_db.so.1 -> libthread_db-1.0.so
         libnsl.so.1 -> libnsl-2.3.6.so
         libpamc.so.0 -> libpamc.so.0.79
         libresolv.so.2 -> libresolv-2.3.6.so
         libncursesw.so.5 -> libncursesw.so.5.5
         libconsole.so.0 -> libconsole.so.0.0.0
         libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
         libext2fs.so.2 -> libext2fs.so.2.4
         libpam_misc.so.0 -> libpam_misc.so.0.79
         libpthread.so.0 -> libpthread-0.10.so
         libvolume_id.so.0 -> libvolume_id.so.0.75.0
         libnss_compat.so.2 -> libnss_compat-2.3.6.so
         libnss_files.so.2 -> libnss_files-2.3.6.so
         libnss_dns.so.2 -> libnss_dns-2.3.6.so
         libhistory.so.5 -> libhistory.so.5.2
         libe2p.so.2 -> libe2p.so.2.3
         libncurses.so.5 -> libncurses.so.5.5
         libanl.so.1 -> libanl-2.3.6.so
         libBrokenLocale.so.1 -> libBrokenLocale-2.3.6.so
         libslang.so.2 -> libslang.so.2.0.6
         libsemanage.so.1 -> libsemanage.so.1
         libpcprofile.so -> libpcprofile.so
         libc.so.6 -> libc-2.3.6.so
         libnss_hesiod.so.2 -> libnss_hesiod-2.3.6.so
         libdevmapper.so.1.02 -> libdevmapper.so.1.02
         libreadline.so.5 -> libreadline.so.5.2
         libacl.so.1 -> libacl.so.1.1.0
         libwrap.so.0 -> libwrap.so.0.7.6
         libnss_nisplus.so.2 -> libnss_nisplus-2.3.6.so
         libcfont.so.0 -> libcfont.so.0.0.0
         libcom_err.so.2 -> libcom_err.so.2.1
         libctutils.so.0 -> libctutils.so.0.0.0
         libss.so.2 -> libss.so.2.0
         librt.so.1 -> librt-2.3.6.so
         libpam.so.0 -> libpam.so.0.79
         libcrypt.so.1 -> libcrypt-2.3.6.so
         libm.so.6 -> libm-2.3.6.so
         ld-linux.so.2 -> ld-2.3.6.so
         libnss_nis.so.2 -> libnss_nis-2.3.6.so
         libdl.so.2 -> libdl-2.3.6.so
         libpopt.so.0 -> libpopt.so.0.0.0
         libcap.so.1 -> libcap.so.1.10
         libbz2.so.1.0 -> libbz2.so.1.0.3
         libuuid.so.1 -> libuuid.so.1.2
/usr/lib:
         libapr-1.so.0 -> libapr-1.so.0.2.7
         libpcre.so.3 -> libpcre.so.3.12.0
         libopcodes-2.17.so -> libopcodes-2.17.so
         libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
         libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.9
         libdb-4.4.so -> libdb-4.4.so
         libkrb5support.so.0 -> libkrb5support.so.0.0
         libapt-pkg-libc6.3-6.so.3.11 -> libapt-pkg-libc6.3-6.so.3.11.0
         libedit.so.2 -> libedit.so.2.9
         libpanelw.so.5 -> libpanelw.so.5.5
         libsqlite3.so.0 -> libsqlite3.so.0.8.6
         libtiffxx.so.0 -> libtiffxx.so.0.0.6
         libpci.so.2 -> libpci.so.2
         liblzo.so.1 -> liblzo.so.1.0.0
         libsasl2.so.2 -> libsasl2.so.2.0.22
         libmenu.so.5 -> libmenu.so.5.5
         libz.so.1 -> libz.so.1.2.3
         libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2
         libk5crypto.so.3 -> libk5crypto.so.3.0
         libgpm.so.1 -> libgpm.so.1.19.6
         libkrb5.so.3 -> libkrb5.so.3.2
         libgnutls-extra.so.13 -> libgnutls-extra.so.13.0.9
         libmagic.so.1 -> libmagic.so.1.0.0
         libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.1200.4
         libpython2.4.so.1.0 -> libpython2.4.so.1.0
         libbfd-2.17.so -> libbfd-2.17.so
         libisccfg.so.1 -> libisccfg.so.1.0.6
         libnfsidmap.so.0 -> libnfsidmap.so.0.2.0
         liblwres.so.9 -> liblwres.so.9.1.5
         libstdc++.so.6 -> libstdc++.so.6.0.8
         libisccc.so.0 -> libisccc.so.0.2.2
         libtiff.so.4 -> libtiff.so.4.2.1
         libdb-4.3.so -> libdb-4.3.so
         libbind9.so.0 -> libbind9.so.0.0.8
         libform.so.5 -> libform.so.5.5
         libopencdk.so.8 -> libopencdk.so.8.0.5
         libdes425.so.3 -> libdes425.so.3.0
         libncurses.so.5 -> libtermcap.so
         libmenuw.so.5 -> libmenuw.so.5.5
         libssl.so.0.9.8 -> libssl.so.0.9.8
         libtonezone.so.1.0 -> libtonezone.so.1.0
         libpanel.so.5 -> libpanel.so.5.5
         liblber.so.2 -> liblber.so.2.0.130
         libexpat.so.1 -> libexpat.so.1.0.0
         libtasn1.so.3 -> libtasn1.so.3.0.6
         libglib-2.0.so.0 -> libglib-2.0.so.0.1200.4
         libgssapi.so.2 -> libgssapi.so.2.0.0
         libsigc-2.0.so.0 -> libsigc-2.0.so.0.0.0
         libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
         libkrb4.so.2 -> libkrb4.so.2.0
         libdb-4.2.so -> libdb-4.2.so
         libgc.so.1 -> libgc.so.1.0.2
         libldap_r.so.2 -> libldap_r.so.2.0.130
         libasprintf.so.0 -> libasprintf.so.0.0.0
         libpri.so.1.0 -> libpri.so.1.0
         libgnutls.so.13 -> libgnutls.so.13.0.9
         libgthread-2.0.so.0 -> libgthread-2.0.so.0.1200.4
         librpcsecgss.so.3 -> librpcsecgss.so.3.0.0
         libdns.so.22 -> libdns.so.22.1.0
         libjpeg.so.62 -> libjpeg.so.62.0.0
         libaprutil-1.so.0 -> libaprutil-1.so.0.2.7
         liblockfile.so.1 -> liblockfile.so.1.0
         libgcrypt.so.11 -> libgcrypt.so.11.2.2
         libpcreposix.so.3 -> libpcreposix.so.3.12.0
         libnewt.so.0.52 -> libnewt.so.0.52.2
         libpq.so.4 -> libpq.so.4.1
         libxml2.so.2 -> libxml2.so.2.6.27
         libevent-1.1a.so.1 -> libevent.so.1
         libformw.so.5 -> libformw.so.5.5
         libidn.so.11 -> libidn.so.11.5.19
         libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
         libgdbm.so.3 -> libgdbm.so.3.0.0
         libgpg-error.so.0 -> libgpg-error.so.0.3.0
         libapt-inst-libc6.3-6.so.1.1 -> libapt-inst-libc6.3-6.so.1.1.0
         libssp.so.0 -> libssp.so.0.0.0
         libisc.so.11 -> libisc.so.11.1.1
         libcrypto.so.0.9.8 -> libcrypto.so.0.9.8
         libgobject-2.0.so.0 -> libgobject-2.0.so.0.1200.4
         libgccpp.so.1 -> libgccpp.so.1.0.2
/lib/tls: (hwcap: 0x8000000000000000)
         libmemusage.so -> libmemusage.so
         libSegFault.so -> libSegFault.so
         libutil.so.1 -> libutil-2.3.6.so
         libcidn.so.1 -> libcidn-2.3.6.so
         libthread_db.so.1 -> libthread_db-1.0.so
         libnsl.so.1 -> libnsl-2.3.6.so
         libresolv.so.2 -> libresolv-2.3.6.so
         libnss_compat.so.2 -> libnss_compat-2.3.6.so
         libnss_files.so.2 -> libnss_files-2.3.6.so
         libnss_dns.so.2 -> libnss_dns-2.3.6.so
         libanl.so.1 -> libanl-2.3.6.so
         libBrokenLocale.so.1 -> libBrokenLocale-2.3.6.so
         libpcprofile.so -> libpcprofile.so
         libpthread.so.0 -> libpthread-2.3.6.so
         libc.so.6 -> libc-2.3.6.so
         libnss_hesiod.so.2 -> libnss_hesiod-2.3.6.so
         libnss_nisplus.so.2 -> libnss_nisplus-2.3.6.so
         librt.so.1 -> librt-2.3.6.so
         libcrypt.so.1 -> libcrypt-2.3.6.so
         libm.so.6 -> libm-2.3.6.so
         libnss_nis.so.2 -> libnss_nis-2.3.6.so
         libdl.so.2 -> libdl-2.3.6.so
/usr/lib/i586: (hwcap: 0x4000000000000)
         libssl.so.0.9.8 -> libssl.so.0.9.8
         libcrypto.so.0.9.8 -> libcrypto.so.0.9.8
/usr/lib/i686: (hwcap: 0x8000000000000)
/usr/lib/i486: (hwcap: 0x2000000000000)
         libssl.so.0.9.8 -> libssl.so.0.9.8
         libcrypto.so.0.9.8 -> libcrypto.so.0.9.8
/lib/tls/i686: (hwcap: 0x8008000000000000)
/usr/lib/i686/cmov: (hwcap: 0x8000000008000)
         libssl.so.0.9.8 -> libssl.so.0.9.8
         libcrypto.so.0.9.8 -> libcrypto.so.0.9.8
/lib/tls/i686/cmov: (hwcap: 0x8008000000008000)
         libmemusage.so -> libmemusage.so
         libSegFault.so -> libSegFault.so
         libutil.so.1 -> libutil-2.3.6.so
         libcidn.so.1 -> libcidn-2.3.6.so
         libthread_db.so.1 -> libthread_db-1.0.so
         libnsl.so.1 -> libnsl-2.3.6.so
         libresolv.so.2 -> libresolv-2.3.6.so
         libnss_compat.so.2 -> libnss_compat-2.3.6.so
         libnss_files.so.2 -> libnss_files-2.3.6.so
         libnss_dns.so.2 -> libnss_dns-2.3.6.so
         libanl.so.1 -> libanl-2.3.6.so
         libBrokenLocale.so.1 -> libBrokenLocale-2.3.6.so
         libpcprofile.so -> libpcprofile.so
         libpthread.so.0 -> libpthread-2.3.6.so
         libc.so.6 -> libc-2.3.6.so
         libnss_hesiod.so.2 -> libnss_hesiod-2.3.6.so
         libnss_nisplus.so.2 -> libnss_nisplus-2.3.6.so
         librt.so.1 -> librt-2.3.6.so
         libcrypt.so.1 -> libcrypt-2.3.6.so
         libm.so.6 -> libm-2.3.6.so
         ld-linux.so.2 -> ld-2.3.6.so
         libnss_nis.so.2 -> libnss_nis-2.3.6.so
         libdl.so.2 -> libdl-2.3.6.so

Hmmm.  Doesn't show.

I think that it might be important to add that these
.so files were compiled sometime back.  They work
on our production system.  I was not able to compile
the more recent versions of rxfax and txfax:

/usr/lib/asterisk/modules# ls -lt app_?xfax.so
-rw-r--r-- 1 root root 159644 2007-03-14 01:01 app_rxfax.so
-rw-r--r-- 1 root root 154725 2007-03-14 01:01 app_txfax.so



# ldd -v /usr/lib/asterisk/modules/app_rxfax.so
         linux-gate.so.1 =>  (0xffffe000)
         libspandsp.so.0 => not found
         libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb7f3c000)
         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e0b000)
         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7deb000)
         libz.so.1 => /usr/lib/libz.so.1 (0xb7dd7000)
         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7db2000)
         /lib/ld-linux.so.2 (0x80000000)

         Version information:
         /usr/lib/asterisk/modules/app_rxfax.so:
                 libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
         /usr/lib/libtiff.so.4:
                 libm.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libm.so.6
                 libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
         /lib/tls/i686/cmov/libc.so.6:
                 ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
         /usr/lib/libjpeg.so.62:
                 libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
         /usr/lib/libz.so.1:
                 libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
         /lib/tls/i686/cmov/libm.so.6:
                 ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                 libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6


Any suggestions on what to do next?




More information about the asterisk-users mailing list