Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27100 - GNUnet shared libraries missing
Summary: GNUnet shared libraries missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-22 02:38 UTC by Michael Witrant
Modified: 2003-08-25 05:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log emerge gnunet (gnunet.log,179.42 KB, text/plain)
2003-08-23 20:06 UTC, Michael Witrant
Details
emerge log (gnunet.log,179.42 KB, text/plain)
2003-08-23 20:09 UTC, Michael Witrant
Details
ebuild patch proposal (gnunet.ebuild.patch,421 bytes, patch)
2003-08-24 07:05 UTC, Michael Witrant
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Witrant 2003-08-22 02:38:58 UTC
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"
Comment 1 Spider (RETIRED) gentoo-dev 2003-08-22 04:31:34 UTC
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 ?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-23 14:16:30 UTC
well, Michael?
Comment 3 Spider (RETIRED) gentoo-dev 2003-08-23 14:35:21 UTC
Waiting for reply.
Comment 4 Michael Witrant 2003-08-23 20:06:44 UTC
Created attachment 16526 [details]
log emerge gnunet
Comment 5 Michael Witrant 2003-08-23 20:09:15 UTC
Created attachment 16527 [details]
emerge log
Comment 6 Michael Witrant 2003-08-23 20:13:46 UTC
Yes, version 0.5.4.

Looks like there's a problem with the attachment. Should I paste it in a comment?
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-08-23 20:24:26 UTC
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.
Comment 8 Michael Witrant 2003-08-24 07:03:36 UTC
I've found a solution in medusa-0.5.1-r4.ebuild: run libtoolize & aclocal just after unpacking.

See the (hopefully) attached patch.
Comment 9 Michael Witrant 2003-08-24 07:05:11 UTC
Created attachment 16535 [details, diff]
ebuild patch proposal

Copied from medusa-0.5.1-r4.ebuild
Comment 10 Spider (RETIRED) gentoo-dev 2003-08-24 10:58:04 UTC
checking.
Comment 11 Spider (RETIRED) gentoo-dev 2003-08-24 11:10:26 UTC
added elibtoolize for it, Could you please test this?
Comment 12 Michael Witrant 2003-08-24 17:59:55 UTC
It works. gnunet-0.5.4-r1.ebuild installed all the libs.
Comment 13 Spider (RETIRED) gentoo-dev 2003-08-25 05:33:25 UTC
Good, closing.
Comment 14 Spider (RETIRED) gentoo-dev 2003-08-25 05:33:40 UTC
And resolving it as fixed.