gnunetd and gnunet-* programs try to load inexistant libraries like libgnunetcommon or libgnunetafs_util. Reproducible: Always Steps to Reproduce: 1.emerge gnunet 2.gnunetd -d 3.gnunet-stats Actual Results: emerge works, but the others fail: root@mike:~# gnunetd -d Aug 22 11:23:56 WARNING: scanDirectory /var/lib/GNUnet/data/hosts/ returned no known hosts! Aug 22 11:23:56 Could not open library libgnunettransport_udp (file not found)! Aug 22 11:23:56 __BREAK__ at logging.c:226 root@mike:~# gnunet-stats gnunet-stats: error while loading shared libraries: libgnunetcommon.so.0: cannot open shared object file: No such file or directory All other gnunet-* programs fail, but sometimes on different libraries: root@mike:~# gnunet-chat gnunet-chat: error while loading shared libraries: libgnunetcommon.so.0: cannot open shared object file: No such file or directory root@mike:~# gnunet-check gnunet-check: error while loading shared libraries: libgnunetafs_database.so.0: cannot open shared object file: No such file or directory root@mike:~# gnunet-delete gnunet-delete: error while loading shared libraries: libgnunetafs_util.so.0: cannot open shared object file: No such file or directory root@mike:~# gnunet-search gnunet-search: error while loading shared libraries: libgnunetafs_util.so.0: cannot open shared object file: No such file or directory Here are the libs I found on my system: root@mike:~# find /usr -name 'libgnunet*' /usr/lib/libgnunetutil.so.0 /usr/lib/libgnunetutil.so /usr/lib/libgnunetutil.so.0.0.0 /usr/lib/libgnunetutil.la /usr/lib/libgnunetafs_database_bdb.so.0 /usr/lib/libgnunetafs_database_bdb.so.0.0.0 /usr/lib/libgnunetafs_database_bdb.so /usr/lib/libgnunetafs_database_gdbm.so.0 /usr/lib/libgnunetafs_database_bdb.la /usr/lib/libgnunetafs_database_directory.so.0 /usr/lib/libgnunetafs_database_directory.so.0.0.0 /usr/lib/libgnunetafs_database_directory.so /usr/lib/libgnunetafs_database_gdbm.so /usr/lib/libgnunetafs_database_directory.la /usr/lib/libgnunetafs_database_gdbm.so.0.0.0 /usr/lib/libgnunetafs_database_mysql.so.0.0.0 /usr/lib/libgnunetafs_database_gdbm.la /usr/lib/libgnunetafs_database_mysql.so.0 /usr/lib/libgnunetafs_database_mysql.so /usr/lib/libgnunetafs_database_mysql.la root@mike:~# emerge info Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/mnt/debian/tmp/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/debian/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 apm avi crypt cups encode foomaticdb gif jpeg libwww mad mikmod mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo ggi tcltk guile mysql X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis opengl mozilla gphoto2 cdr mmx 3dnow fbcon oss libg++ nls -arts -svga -qt -kde -motif gtk gnome java ruby" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
ok, I think it'd do a bit better were this to mention the version of gnunet ;) But, for me this reports as: qpkg -f /usr/lib/libgnunetcommon.so.0 -v net-p2p/gnunet-0.5.4 * could you please try emerge -C gnunet script gnunet.log emerge gnunet exit and attach gnunet.log here ?
well, Michael?
Waiting for reply.
Created attachment 16526 [details] log emerge gnunet
Created attachment 16527 [details] emerge log
Yes, version 0.5.4. Looks like there's a problem with the attachment. Should I paste it in a comment?
libtool: install: warning: relinking `libgnunettransport_tcp.la' (cd /mnt/debian/tmp/portage/gnunet-0.5.4/work/GNUnet-0.5.4/src/transports; /bin/sh ../../libtool --mode=relink gcc -Wall -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -module -o libgnunettransport_tcp.la -rpath /usr/lib tcp.lo ../../src/util/libgnunetutil.la -lm -lnsl -lpthread) gcc -shared tcp.lo -L/usr/lib -lgnunetutil -lm -lnsl -lpthread -Wl,-soname -Wl,libgnunettransport_tcp.so.0 -o .libs/libgnunettransport_tcp.so.0.0.0 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgnunetutil collect2: ld returned 1 exit status libtool: install: error: relink `libgnunettransport_tcp.la' with the above command before installing it libtool: install: warning: remember to run `libtool --finish /usr/lib' /bin/sh ../../libtool --mode=install /bin/install -c libgnunettransport_udp.la /mnt/debian/tmp/portage/gnunet-0.5.4/image//usr/lib/libgnunettransport_udp.la libtool: install: warning: relinking `libgnunettransport_udp.la' (cd /mnt/debian/tmp/portage/gnunet-0.5.4/work/GNUnet-0.5.4/src/transports; /bin/sh ../../libtool --mode=relink gcc -Wall -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -module -o libgnunettransport_udp.la -rpath /usr/lib udp.lo ../../src/util/libgnunetutil.la -lm -lnsl -lpthread) gcc -shared udp.lo -L/usr/lib -lgnunetutil -lm -lnsl -lpthread -Wl,-soname -Wl,libgnunettransport_udp.so.0 -o .libs/libgnunettransport_udp.so.0.0.0 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgnunetutil collect2: ld returned 1 exit status libtool: install: error: relink `libgnunettransport_udp.la' with the above command before installing it libtool: install: warning: remember to run `libtool --finish /usr/lib' ok, that is strange that it actually installs successfully, despite spitting out the above.
I've found a solution in medusa-0.5.1-r4.ebuild: run libtoolize & aclocal just after unpacking. See the (hopefully) attached patch.
Created attachment 16535 [details, diff] ebuild patch proposal Copied from medusa-0.5.1-r4.ebuild
checking.
added elibtoolize for it, Could you please test this?
It works. gnunet-0.5.4-r1.ebuild installed all the libs.
Good, closing.
And resolving it as fixed.