Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252154 - app-emulation/virtualbox-bin-2.0.6 error while loading shared libraries: libstdc++.so.5
Summary: app-emulation/virtualbox-bin-2.0.6 error while loading shared libraries: libs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alessio Cassibba (X-Drum)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 08:45 UTC by Gabriel Máculus
Modified: 2009-03-05 07:26 UTC (History)
2 users (show)

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


Attachments
Modified ebuild for VirtualBox binary install. (virtualbox-bin-2.0.6-r1.ebuild,5.78 KB, text/plain)
2009-01-22 15:17 UTC, Jeff Wood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Máculus 2008-12-22 08:45:54 UTC
Portage 2.1.6.2 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.6.1-r0, 2.6.28-rc6-zen1 i686)
=================================================================
System uname: Linux-2.6.28-rc6-zen1-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-glibc2.0
Timestamp of tree: Mon, 22 Dec 2008 06:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_LA es_ES"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa bash-completion bzip2 cairo cli cracklib crypt curl cxx directfb dri emacs encode fbcon flac gdbm gmp gnutls gpm gtk iconv ipv6 isdnlog java jpeg libedit loop-aes lyrics midi mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre perl png pppd profile python readline reflection ruby sdl session sftp spl sqlite srt sse sse2 ssl svg sysfs taglib tcpd threads truetype unicode vorbis wavpack wifi win32codecs wma x86 xattr xft xorg zlib" 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_LA es_ES" NETBEANS_MODULES="*" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Alessio Cassibba (X-Drum) 2008-12-23 21:52:28 UTC
(In reply to comment #0)
[..]

is sys-libs/libstdc++ installed on your system?
if not emerge it.
Comment 2 Alessio Cassibba (X-Drum) 2008-12-23 21:53:39 UTC
err. i mean sys-libs/libstdc++-v3
Comment 3 Gabriel Máculus 2008-12-23 22:49:20 UTC
(In reply to comment #2)
> err. i mean sys-libs/libstdc++-v3
> 

merged and fixed, libstdc++-v3 must be a dependency of virtualbox-bin ?
Comment 4 Alessio Cassibba (X-Drum) 2008-12-23 23:25:13 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > err. i mean sys-libs/libstdc++-v3
> > 
> 
> merged and fixed, libstdc++-v3 must be a dependency of virtualbox-bin ?
> 

virtualbox-bin already depends on virtual/libstdc++
anyway seems that sometime this approach is not always reliable..
Comment 5 Jeff Wood 2009-01-22 15:17:06 UTC
Created attachment 179344 [details]
Modified ebuild for VirtualBox binary install.

Changes the libstdc++ dependancy from virtual/libstdc++ to sys-lib/libstdc++-v3, to correct "error while loading shared libraries: libstdc++.so.5" when runing VirtualBox. See notes.

Has added benifit of no longer requiring a build of GCC-3.3.6 if one lacks this on the system.
Comment 6 Jeff Wood 2009-01-22 15:17:56 UTC
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 /usr/lib/libstdc++.so.5

This alone seems to fix it here.  I also added a link for libstdc++.so.5.0.7 as well.  
 
Then I started wondering how to do this in the ebuild, and found that there are 2 other libstdc++v3 ebuilds, a binary install and a compiled one.

The binary install in unsuited for x86.  However, in the vbox ebuild, I replaced virtual/libstdc++ with sys-libs/libstdc++-v3 and tested it out, first having emerge -C libstdc++.

This worked.

Wanting to rid myself of the need for a (long, boring) gcc-3.3.6 compile, I emerge -C =gcc-3.3.6 libstdc++-v3 and then re-emerged virtualbox-bin.

This seems to work so far here as well.

Modified ebuild attached.

Comment 7 Alessio Cassibba (X-Drum) 2009-01-23 01:09:30 UTC
ebuilds updated on jokey's overlay[1]: 
sys-libs/libstdc++-v3 is now pushed in place of virtual/libstdc++ 
(the virtual is causing problems on many systems)

[1] http://overlays.gentoo.org/dev/jokey