Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 369131

Summary: net-im/skype-2.2.0.25 - ./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Product: Gentoo Linux Reporter: tman <cornicx>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description tman 2011-05-29 02:30:20 UTC
~ $ skype
./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Reproducible: Always




Portage 2.2.0_alpha37_p2 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 29 May 2011 02:00:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r2, 3.1.3-r1, 3.2
dev-util/ccache:          3.1.4
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1::poly-c
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo amielke-overlay emacs gnome lorelei-overlay java-overlay lxde mgorny mpd nikai qting-edge roslin scarabeus_local_overlay science Techwolf bleeding-edge poly-c wirelay x-local-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/boot/grub/40_custom /etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/default/grub /etc/fstab /etc/grub.d/05_theme /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /usr/share/xsessions/openbox.desktop /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en vi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
Comment 1 Rafał Mużyło 2011-05-29 02:49:35 UTC
Given skype being a binary package, it's a bad indicator of anything.

If in the other packages error is similar, standard steps:
check gcc-config, check ldd on the program.
Comment 2 tman 2011-05-29 06:49:43 UTC
gcc-config seems to be ok.

gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-4.5.2 ...    

nothing help:

 skype
./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Comment 3 tman 2011-05-29 06:56:48 UTC
i solved this problem with make manually the symblink. there must be sth wrong and should be fix.

locate libstdc++.so.6

/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/libstdc++.so.6.0.14
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32/libstdc++.so.6.0.14
/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/libstdc++.so.6.0.14-gdb.py
/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32/libstdc++.so.6.0.14-gdb.py


cd /lib32
lib32 # ln -s /usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32/libstdc++.so.6 libstdc++.so.6
Comment 4 Rafał Mużyło 2011-05-29 14:14:18 UTC
Quite, but for the moment is seems to be wrong on your system only.

If you don't know why it happened, it's likely to fall into WORKSFORME category.
Comment 5 Bruno Yporti 2011-06-11 19:31:53 UTC
Same problem here with net-im/skype-2.2.0.35 , symlink fix it. I'm using Gentoo amd64 multilib.
Comment 6 SpanKY gentoo-dev 2011-06-17 05:06:54 UTC
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32 should be listed in /etc/ld.so.conf or a file in /etc/ld.so.conf.d/

if it isnt, it should be listed in LDPATH in /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.2

if it isnt, then re-emerge sys-devel/gcc and see if the problem still persists
Comment 7 Matteo 'The Peach' Pescarin 2011-06-24 10:54:42 UTC
(In reply to comment #6)
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.2/32 should be listed in /etc/ld.so.conf
> or a file in /etc/ld.so.conf.d/
> 
> if it isnt, it should be listed in LDPATH in
> /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.2
> 
> if it isnt, then re-emerge sys-devel/gcc and see if the problem still persists

yes, rebuilding gcc seems to have fixed the problem :)
thanks for the suggestion.
Comment 8 Sergey Ilinykh 2011-06-27 06:16:48 UTC
rebuilding gcc fixed the problem for me too.
Comment 9 SpanKY gentoo-dev 2011-07-01 01:58:44 UTC
we need the full build log where the library was not installed in order to go anywhere