aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: (resolved) error while loading shared libraries (amule 2.2.4, libupnp1.6.6)  (Read 6424 times)

justinux

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4

OS : Ubuntu 8.04

Before compiling aMule 2.2.4, I compiled libupnp 1.6.6 with default configures.

Then compile aMule with default configures
Code: [Select]
./configure
make
make install

the output about configure is:
Code: [Select]
...
checking for libupnp version >= 1.6.6... yes (version 1.6.6)
...
**** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                no
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with UPnP support?                yes
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            installed

when I run amule, error occurce:
Code: [Select]
amule: error while loading shared libraries: libupnp.so.3: cannot open shared object file: No such file or directory

but libupnp.so.3 and libupnp.so.3.0.5 were there (/usr/local/lib/libupnp.so.3 -> libupnp.so.3.0.5)

what's wrong ?
and how to fix it ?
« Last Edit: May 24, 2009, 04:51:28 PM by justinux »
Logged

Festor

  • Hero Member
  • *****
  • Karma: 79
  • Offline Offline
  • Posts: 935
  • Offline -> Studying...
Re: error while loading shared libraries (amule 2.2.4, libupnp1.6.6)
« Reply #1 on: April 07, 2009, 07:02:28 PM »

Quote
I compiled libupnp 1.6.6 with default configures

How?

aMule 2.2.4 in Hardy (Ubuntu 8.04) compile and works well with libupnp 1.6.6.

Build log: http://launchpadlibrarian.net/24932275/buildlog_ubuntu-hardy-i386.amule_2.2.4-0ubuntu1~hardy1_FULLYBUILT.txt.gz
Packages: http://www.amule.org/amule/index.php?topic=16647.0
« Last Edit: April 07, 2009, 07:11:33 PM by Festor »
Logged

justinux

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: error while loading shared libraries (amule 2.2.4, libupnp1.6.6)
« Reply #2 on: April 08, 2009, 12:22:02 PM »

How?

here is the output of libupnp configures:
Code: [Select]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for --enable-debug... no
checking for --enable-client... yes
checking for --enable-device... yes
checking for --enable-webserver... yes
checking for --enable-tools... yes
checking for --enable-samples... yes
checking for documentation directory... ${datarootdir}/doc/libupnp-1.6.6
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for egrep... (cached) /bin/grep -E
--------------------- Default compilation flags -------------------------------
host is i686-pc-linux-gnu
host_os is linux-gnu
Using non-specific system compiler settings
checking CFLAGS for gcc -Os... -Os
checking CFLAGS for maximum warnings... -Wall
-------------------------------------------------------------------------------
checking for size_t... yes
checking for off_t... yes
......
--------------------------- pthread stuff -------------------------------------
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
----------------------- pthread_rwlock_t stuff --------------------------------
checking if pthread_rwlock_t is available... yes, supported without any options
-------------------------------------------------------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ixml/Makefile
config.status: creating ixml/doc/Makefile
config.status: creating threadutil/Makefile
config.status: creating upnp/Makefile
config.status: creating upnp/doc/Makefile
config.status: creating upnp/sample/Makefile
config.status: creating docs/dist/Makefile
config.status: creating libupnp.pc
config.status: creating autoconfig.h
config.status: autoconfig.h is unchanged
config.status: creating upnp/inc/upnpconfig.h
config.status: upnp/inc/upnpconfig.h is unchanged
config.status: executing depfiles commands

btw i got the libupnp source from here:
http://sourceforge.net/project/showfiles.php?group_id=166957
« Last Edit: April 08, 2009, 12:26:22 PM by justinux »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: error while loading shared libraries (amule 2.2.4, libupnp1.6.6)
« Reply #3 on: April 08, 2009, 03:03:56 PM »

Most probably /usr/local/lib is not in /etc/ld.so.conf


Add it and re-run ldconfig (as root)
Logged

justinux

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: error while loading shared libraries (amule 2.2.4, libupnp1.6.6)
« Reply #4 on: April 09, 2009, 06:36:30 AM »

Most probably /usr/local/lib is not in /etc/ld.so.conf
Add it and re-run ldconfig (as root)

/usr/local/lib is right there.
Code: [Select]
/etc $ cat ld.so.conf
include /etc/ld.so.conf.d/*.conf
/etc $ cd ld.so.conf.d
/etc/ld.so.conf.d $ ls
i486-linux-gnu.conf  libc.conf
/etc/ld.so.conf.d $ cat libc.conf
# libc default configuration
/usr/local/lib
Logged

justinux

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: error while loading shared libraries (amule 2.2.4, libupnp1.6.6)
« Reply #5 on: May 24, 2009, 04:48:54 PM »

amule works well now, but I didn't recompile the two packages even ...
i forgot what i change to my system, seems not :-(
thank you all
Logged