[asterisk-scf-dev] linking issue (libServiceLocatorIf_CXX.so)
Paul Belanger
paul.belanger at polybeacon.com
Thu Nov 4 10:03:47 CDT 2010
On Thu, Nov 4, 2010 at 10:44 AM, David M. Lee <dlee at digium.com> wrote:
> If you pass VERBOSE=1 into make, it will print out the commands being executed.
>
More verboseness:
---
Linking CXX shared library libServiceLocatorIf_CXX.so
cd /home/pabelanger/digium/asterisk-scf/gitall/build/slice/Core/Discovery
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/ServiceLocatorIf_CXX.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -shared -Wl,-soname,libServiceLocatorIf_CXX.so
-o libServiceLocatorIf_CXX.so
CMakeFiles/ServiceLocatorIf_CXX.dir/ServiceLocatorIf.cpp.o
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjlib/lib
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjlib-util/lib
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjnath/lib
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/third_party/lib
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjmedia/lib
-L/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjsip/lib
-lIce -Wl,-rpath,/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjlib/lib:/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjlib-util/lib:/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjnath/lib:/home/pabelanger/digium/asterisk-scf/gitall/pjproject/third_party/lib:/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjmedia/lib:/home/pabelanger/digium/asterisk-scf/gitall/pjproject/pjsip/lib:
/usr/bin/ld: cannot find -lIce
collect2: ld returned 1 exit status
make[2]: Leaving directory `/home/pabelanger/digium/asterisk-scf/gitall/build'
make[1]: Leaving directory `/home/pabelanger/digium/asterisk-scf/gitall/build'
make[2]: *** [slice/Core/Discovery/libServiceLocatorIf_CXX.so] Error 1
make[1]: *** [slice/Core/Discovery/CMakeFiles/ServiceLocatorIf_CXX.dir/all]
Error 2
make: *** [all] Error 2
---
I've also included some information about -lIce
---
pabelanger at web01:~/digium/asterisk-scf/gitall$ locate libIce.so
/opt/Ice-3.4.1/lib64/libIce.so
/opt/Ice-3.4.1/lib64/libIce.so.3.4.1
/opt/Ice-3.4.1/lib64/libIce.so.34
pabelanger at web01:~/digium/asterisk-scf/gitall$ ls -la
/opt/Ice-3.4.1/lib64/libIce.so*
lrwxrwxrwx 1 pabelanger pabelanger 12 2010-11-02 11:40
/opt/Ice-3.4.1/lib64/libIce.so -> libIce.so.34
lrwxrwxrwx 1 pabelanger pabelanger 15 2010-11-02 11:40
/opt/Ice-3.4.1/lib64/libIce.so.34 -> libIce.so.3.4.1
-rwxr-xr-x 1 pabelanger pabelanger 21960131 2010-11-02 11:40
/opt/Ice-3.4.1/lib64/libIce.so.3.4.1
pabelanger at web01:~/digium/asterisk-scf/gitall$ ldd
/opt/Ice-3.4.1/lib64/libIce.so
linux-vdso.so.1 => (0x00007fff5d5ff000)
libIceUtil.so.34 => /opt/Ice-3.4/lib64/libIceUtil.so.34 (0x00007fdb0905f000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007fdb08e44000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fdb08c3f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdb08a22000)
librt.so.1 => /lib/librt.so.1 (0x00007fdb0881a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fdb08505000)
libm.so.6 => /lib/libm.so.6 (0x00007fdb08282000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdb0806b000)
libc.so.6 => /lib/libc.so.6 (0x00007fdb07ce7000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdb09994000)
pabelanger at web01:~/digium/asterisk-scf/gitall$ sudo ldconfig -v | grep libIce
/sbin/ldconfig.real: Can't stat /usr/lib32/mesa: No such file or directory
/sbin/ldconfig.real: Can't stat /lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/x86_64-linux-gnu: No such
file or directory
/sbin/ldconfig.real: Can't stat /lib32: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib32: No such file or directory
libIceStorm.so.34 -> libIceStorm.so.3.4.1
libIce.so.34 -> libIce.so.3.4.1
libIceUtil.so.34 -> libIceUtil.so.3.4.1
libIceDB.so.34 -> libIceDB.so.3.4.1
libIceBox.so.34 -> libIceBox.so.3.4.1
libIceStormFreezeDB.so.34 -> libIceStormFreezeDB.so.3.4.1
libIceGridFreezeDB.so.34 -> libIceGridFreezeDB.so.3.4.1
libIceStormService.so.34 -> libIceStormService.so.3.4.1
libIceXML.so.34 -> libIceXML.so.3.4.1
libIcePatch2.so.34 -> libIcePatch2.so.3.4.1
libIceGrid.so.34 -> libIceGrid.so.3.4.1
libIceSSL.so.34 -> libIceSSL.so.3.4.1
--
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger
More information about the asterisk-scf-dev
mailing list