Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80695 - ldd returns 0 while a library wasn't found
Summary: ldd returns 0 while a library wasn't found
Status: RESOLVED DUPLICATE of bug 80455
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 03:48 UTC by Andre Hinrichs
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Hinrichs 2005-02-04 03:48:26 UTC
After upgrading media-libs/libdv to 0.102 I surely ran revdep-rebuild!
So I thought everything would be fine. But I was wrong.
Tonight, as I wanted to view a DVD on my laptop mplayer didn't start...

mplayer: error while loading shared libraries: libdv.so.2: cannot open shared object file: No such file or directory

hmmm... I restarted revdep-rebuild and it reported that everything was fine...
Very strange I thought until I ran 'ldd /usr/bin/mplayer'
ldd reported that the libdv library wasn't found, but... the return code was 0 !!!

So, I think revdep-rebuild looks at the return code of ldd first. I would do so...
So I assume, there is a bug in ldd.

Looking for ldd binary I found, that it is located in sys-libs/glibc-2.3.4.20040808-r1
and that it is a sh-script! I did look into it, but was to tired to get it...
AND I WANTED TO VIEW THIS MOVIE!!!

Ok, I recompiled mplayer directly and it seems to be ok now. But how do I know, that other packages are ok also? In fact, I already found at least one package, which is involved also: transcode

Here is, what ldd says:
# ldd `which tcextract`
        linux-gate.so.1 =>  (0xffffe000)
        libdv.so.2 => not found
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40038000)
        libtheora.so.0 => /usr/lib/libtheora.so.0 (0x4005e000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40084000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x400ba000)
        libm.so.6 => /lib/libm.so.6 (0x400bf000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x400e2000)
        libdl.so.2 => /lib/libdl.so.2 (0x40136000)
        libc.so.6 => /lib/libc.so.6 (0x4013a000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I decided to do an 'emerge -e world' this weekend... just to be sure.

You need more infos? Just ask... and hope, I am able to reinitiate the problem after recompiling mplayer... or world.


Reproducible: Always
Steps to Reproduce:
1.emerge --oneshot =media-libs/libdv-0.99-r1
2.emerge --oneshot media-video/mplayer
3.emerge --oneshot =media-libs/libdv-0.102
4.ldd `which mplayer`

Actual Results:  
ldd recognizes that there is a missing library but doesn't return an error code.


Expected Results:  
ldd should return error code.


Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 18 2005, 23:47:33)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks keeptemp sandbox sfperms strict"
GENTOO_MIRRORS="http://192.168.200.1/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.linux.ee/pub/gentoo/distfiles/
http://ftp.linux.ee/pub/gentoo/distfiles/ http://src.gentoo.pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl alsa apache2 apm arts audiofile avi
bitmap-fonts bonobo bzlib cdparanoia cdr cpdflib crypt cups curl dbm divx4linux
dv dvd dvdread emacs encode esd expat f77 fam ffmpeg flac flash font-server
foomaticdb fortran ftp gd gdbm ggi gif gmp gnome gnutls gphoto2 gpm gtk gtk2
gtkhtml guile icq imagemagick imap imlib ipv6 java jpeg kde kdeenablefinal lcms
ldap leim libg++ libwww mad maildir matroska mhash mikmod milter mime ming mmx
mng motif mozilla mp3 mpeg mysql mysqli nas ncurses nls nocardbus odbc ogg
oggvorbis openal opengl oss pam pcmcia pcre pda pdflib perl php plotutils png
posix ppds profile python qt quicktime readline recode sasl scanner sdl shared
sharedmem simplexml slang slp sndfile soap sockets sox speex spell spl ssl svg
svga sziptcltk tcpd tetex theora threads tidy tiff tokenizer truetype
truetype-fonts type1-fonts unicode usb vcd wmf wxwindows xine xml xml2 xmlrpc
xmms xpm xsl xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-04 04:54:51 UTC
libdv-0.102 installs:

> slocate libdv.so
/usr/lib/libdv.so.4.0.0
/usr/lib/libdv.so
/usr/lib/libdv.so.4

>ldd `which tcextract`
        libdv.so.4 => /usr/lib/libdv.so.4 (0x40041000)

Search for stale .la files (the last few messages in http://forums.gentoo.org/viewtopic.php?t=278649 may be helpful).
Comment 2 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2005-02-04 05:44:46 UTC
sounds similar to what's described in bug #80455 to me
Comment 3 Andre Hinrichs 2005-02-04 06:36:58 UTC
Olaf, you are right!
The revdep-rebuild script as attached in bug #62644 comment #24
does the trick.


*** This bug has been marked as a duplicate of 80455 ***