(see steps to reproduce) Reproducible: Always Steps to Reproduce: - search for files on system depending on libstdc++.so.6 - ldd <name of file> - notice: libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/<gcc version>/libstdc++.so.6 - (re)move /usr/lib/gcc/i686-pc-linux-gnu/<gcc version>/libstdc++.so.6 - ldd <name of file> notice: libstdc++.so.6 => not found - run revdep-rebuild Actual Results: revdep-rebuild reports; * Dynamic linking on your system is consistent... All done. Expected Results: revdep-rebuild detects broken files.
I followed your instructions and it worked for me. Please submit the following: emerge --info A copy of the output from the revdep-rebuild command A copy of the .revdep-rebuild* files as an attachment
# ldd /usr/bin/cmake linux-gate.so.1 => (0xb7fe8000) libdl.so.2 => /lib/libdl.so.2 (0x4fc9e000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/libstdc++.so.6 (0x4fdee000) libm.so.6 => /lib/libm.so.6 (0x4fc78000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/libgcc_s.so.1 (0x4fde1000) libc.so.6 => /lib/libc.so.6 (0x4fb46000) /lib/ld-linux.so.2 (0x4fb28000) # mv /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/libstdc++.so.6 ~ # ldd /usr/bin/cmake linux-gate.so.1 => (0xb7ffd000) libdl.so.2 => /lib/libdl.so.2 (0x4fc9e000) libstdc++.so.6 => not found libm.so.6 => /lib/libm.so.6 (0x4fc78000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/libgcc_s.so.1 (0x4fde1000) libc.so.6 => /lib/libc.so.6 (0x4fb46000) /lib/ld-linux.so.2 (0x4fb28000) # revdep-rebuild -k WARNING WARNING *** This is a rewritten version of revdep-rebuild *** WARNING WARNING WARNING Please report any bugs to http://bugs.gentoo.org WARNING WARNING In the bug report please include the following information: WARNING emerge --info WARNING A copy of the output from the revdep-rebuild command WARNING A copy of the .revdep-rebuild* files as an attachment WARNING WARNING If the bug is severe, the previous version of revdep-rebuild is located WARNING at: /usr/lib/gentoolkit/bin/revdep-rebuild WARNING WARNING WARNING *** This is a rewritten version of revdep-rebuild *** WARNING * Configuring search environment for revdep-rebuild * Checking reverse dependencies * Packages containing binaries and libraries broken by a package update * will be emerged. * Collecting system binaries and libraries * Generated new /root/.revdep-rebuild.1_files * Collecting complete LD_LIBRARY_PATH * Generated new /root/.revdep-rebuild.2_ldpath * Checking dynamic linking consistency [ 100% ] * Dynamic linking on your system is consistent... All done. # emerge --info Portage 2.1.3.2 (default-linux/x86/2006.1, gcc-4.2.0, glibc-2.6-r0, 2.6.21-gentoo i686) ================================================================= System uname: 2.6.21-gentoo i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System release 2.0.0_rc1 Timestamp of tree: Mon, 06 Aug 2007 10:30:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--noconfmem" FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.ISO-8859-1" LC_ALL="en_US.ISO-8859-1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acpi aiglx alsa ares arts artswrappersuid asf bash-completion bzip2 cairo cddb cisco connectionstatus crypt css cups dbus directfb dri dvd dvdread encode exif fasttrack ffmpeg firefox flac foomaticdb gif glitz gnutella gphoto2 gtk gtkhtml hal history hpn ilbc imagemagick irc java jpeg kde kdeenablefinal kdehiddenvisibility kerberos libnotify mad midi mmx mng mozdevelop mp3 mp4 mpeg musicbrainz netmeeting network-cron nfs nptl nptlonly nsplugin ogg openft opengl pdf png portaudio ppds python qt3 qt3support qt4 quicktime rdesktop readline real ruby samba sasl speex spell sqlite sse sse2 ssl statistics svg sysfs theora threads tiff tk translator truetype unicode usb vcd vorbis wavpack wifi win32codecs x264 x86 xcomposite xforms xine xorg xv xvid xvmc zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810" Unset: CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 127152 [details] .revdep-rebuild.0_env
Created attachment 127154 [details] .revdep-rebuild.1_files
Created attachment 127156 [details] .revdep-rebuild.2_ldpath
Created attachment 127157 [details] .revdep-rebuild.3_ldd_errors
According to the ldd_errors file, it looks like ldd is segfaulting. Please run revdep-rebuild --no-ld-path and let me know if it works.
I tried revdep-rebuild (rewrite) on x86 and on amd64 machine, as a few people I know tested it too. The results were the same, .revdep-rebuild-rewrite.1_files consists only from files /bin/* no other folder/file is added (like /lib/* or lib64/*).
(In reply to comment #8) > I tried revdep-rebuild (rewrite) on x86 and on amd64 machine, as a few people > I know tested it too. > > The results were the same, .revdep-rebuild-rewrite.1_files consists only from > files /bin/* no other folder/file is added (like /lib/* or lib64/*). > What does .revdep-rebuild.0_env contain?
Created attachment 127402 [details] .revdep-rebuild.0_env
(In reply to comment #7) > According to the ldd_errors file, it looks like ldd is segfaulting. Please run > revdep-rebuild --no-ld-path and let me know if it works. > If I run revdep-rebuild with --no-ld-path it works as expected. Should this be the default option for revdep-rebuild? Is something wrong with my system? Do you need more information? Thanks for the time/effort you put in Gentoo/revdep-rebuild.
(In reply to comment #11) > If I run revdep-rebuild with --no-ld-path it works as expected. Should this be > the default option for revdep-rebuild? Is something wrong with my system? Do > you need more information? Nothing is neccessarily wrong with your system. If I make it a default option, there were be a lot more people complaing about the false positives it generates than those that complain that it breaks without it. The real solution is for revdep-rebuild to utilize scanelf instead of ldd. That change is going to require a lot of changes and debugging so it isn't going to happen immediately.
Forward duplicating to bug 279922 since that bug is already being tracked for the gentoolkit-0.3.1 release. *** This bug has been marked as a duplicate of bug 279922 ***