Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libstdc++.so.6: cannot open shared object file: No such file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Baer
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 96
Location: Munich, Germany

PostPosted: Sat Apr 23, 2011 8:49 pm    Post subject: libstdc++.so.6: cannot open shared object file: No such file Reply with quote

Hi,

I encounter the following problem since my recent

Code:
emerge -uvDN world
:

For some strange reason all -bin packages (especially: net-im/skype, www-client/firefox-bin, mail-client/thunderbird-bin) are not starting anymore and give me the following error when trying to start them from a shell:

Code:
rob@frostmourne ~ $ skype
./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


I tried running a revdep-rebuild and tried fix_libtool_files.sh, unluckily none of it helped. Even tried to unmerge/re-emerge the affected ebuilds didn't help anything.

You'll find my corresponding emerge --info here: http://pastebin.com/h2VuqAqF

Thanks in advance for any help.

Regs,
Rob

PS: My previous gcc-version was 4.4.4-r2, which was emerged on 21-Nov-2010.
_________________
Life is like a roll of toilet paper, when the end is near we panic!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Sat Apr 23, 2011 9:03 pm    Post subject: Reply with quote

Baer,

libstdc++.so.6 is a piece of gcc-3, which Gentoo has not used for a long time.
Try
Code:
emerge sys-libs/libstdc++-v3

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Baer
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 96
Location: Munich, Germany

PostPosted: Sat Apr 23, 2011 9:13 pm    Post subject: Reply with quote

That reminds me:

Code:
rob@frostmourne ~ $ locate libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6.0.13
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/32/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/32/libstdc++.so.6.0.13


It seems that libstdc++.so.6 is already available.
_________________
Life is like a roll of toilet paper, when the end is near we panic!
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Apr 23, 2011 9:39 pm    Post subject: Reply with quote

NeddySeagoon, I think you've mixed it up with libstdc++.so.5, which indeed is at gcc 3.3.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Sun Apr 24, 2011 1:07 pm    Post subject: Reply with quote

VoidMage,

Well caught. Thank you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
aronparsons
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2004
Posts: 117
Location: Virginia

PostPosted: Sun Apr 24, 2011 9:08 pm    Post subject: Reply with quote

www-plugins/google-talkplugin has the same issue. The 32-bit version of the library is not in the library search path. I fixed the issue by adding /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/32 to ld.so.conf via an env.d file. It seems like this should be done by the gcc package since all of the other 32-bit paths are already adding to the LDPATH variable by baselayout.

/etc/env.d/99mutlilib-libstdc++
Code:
LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/32"


My existing bug: https://bugs.gentoo.org/show_bug.cgi?id=363523
Back to top
View user's profile Send private message
silbak04
n00b
n00b


Joined: 01 May 2011
Posts: 9

PostPosted: Sun May 01, 2011 4:26 pm    Post subject: Reply with quote

Hey guys I just wanted to say I actually get the same exact error as Baer does. I also encountered the same problem after running

Code:
 
$ sudo emerge -uvDN world


In fact I even tried to re-emerge gcc-4.4.5 (latest one I had), but I was not able to re-emerge gcc-4.4.5. Every time I run

Code:
 
$ sudo emerge sys-devel/gcc


it just tries to emerge gcc-4.6.0 (and I do not want this version) and I am having trouble, because I added it in /etc/portage/package.mask, but of course that did me no good.

I tried to download libstdc++.so.6 and create a sym link in /usr/lib/, which somewhat worked, no longer was I receiving this error:

Code:

./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


I actually started to receive a new error:

Code:

$ skype
./skype: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./skype)


I tried to do some googling, and yet I still came up with nothing, I tried running revdep-rebuil and tried fix_libtool_files.sh, and yet that did absolutely nothing. Therefore I tried to go ahead and just emerge gcc-4.6.0, because obviously there's something wrong with gcc here. But that also did me no good because i ended up with another error:

Code:

* ERROR: sys-devel/gcc-4.6.0 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4852:  Called toolchain_src_compile
 *   environment, line 5446:  Called gcc_src_compile
 *   environment, line 3038:  Called gcc_do_make
 *   environment, line 2826:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";


Here is the output of

Code:

sudo emerge --info =sys-devel/gcc-4.6.0


Code:

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 01 May 2011 03:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     9999
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://durknation.gotdns.com/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 apache2 automount bash-completion berkdb blksha1 bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt curl cvs cxx dbus device-mapper dri dts dvd dvdr emboss encode exif extensions extras fam ffmpeg firefox flac fortran gdbm gdu gif gnome gnutls gpm gstreamer gtk iconv innodb ipv6 java jpeg lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification subversion svg sysfs tcpd threads tiff tk truetype udev unicode usb v4l vorbis webdav x264 xcb xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


As this is really not my main concern, because I really just want to stick with gcc-4.4.5, because this is the latest stable gcc, but I just want to be able to re-emerge gcc-4.4.5 to fix the issue that both Baer and I are experiencing:

Code:

$ skype
./skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


All help will be appreciated, thanks so much!
Back to top
View user's profile Send private message
silbak04
n00b
n00b


Joined: 01 May 2011
Posts: 9

PostPosted: Sun May 01, 2011 4:52 pm    Post subject: Reply with quote

Also here is my output of

Code:

* Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using libstdc++.so.6
 * will be emerged.

 * Collecting system binaries and libraries
 * Found existing 1_files.rr
 * Checking dynamic linking
 * Found existing 3_broken.rr.
 * Assigning files to packages
 * Found existing 4_raw.rr
 * Cleaning list of packages to rebuild
 * Found existing 4_pkgs.rr
 * Assigning packages to ebuilds
 * Found existing 4_ebuilds.rr
 * Evaluating package order
 * Warning: Failed to resolve package order.
 * Will merge in arbitrary order
Possible reasons:
- An ebuild is no longer in the portage tree.
- An ebuild is masked, use /etc/portage/packages.keyword
and/or /etc/portage/package.unmask to unmask it
.....
 * All prepared. Starting rebuild
emerge --oneshot --pretend --verbose  media-gfx/gimp:2
x11-drivers/xf86-video-ati:0
x11-drivers/xf86-video-intel:0
x11-drivers/xf86-video-nouveau:0

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/libdrm-2.4.24[video_cards_nouveau]".
!!! One of the following packages is required to complete your request:
- x11-libs/libdrm-2.4.25 (Change USE: +video_cards_nouveau)
(dependency required by "x11-drivers/xf86-video-nouveau-0.0.16_pre20110323" [ebuild])
(dependency required by "x11-drivers/xf86-video-nouveau:0" [argument])
 * revdep-rebuild failed to emerge all packages.
 * you have the following choices:
 * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
 * - Use /etc/portage/package.keywords to unmask a newer version of the package.
 *   (and remove 5_order.rr to be evaluated again)
 * - Modify the above emerge command and run it manually.
 * - Compile or unmerge unsatisfied packages manually,
 *   remove temporary files, and try again.
 *   (you can edit package/ebuild list first)
 * To remove temporary files, please run:
 * rm /var/cache/revdep-rebuild/*.rr


Not sure why I am getting this error, I installed nvidia drivers as a binary in gentoo...so I should not have to add ">=x11-libs/libdrm-2.4.24" that in my package.use file or have to add 'VIDEO_CARDS="nouveau"' in make.conf.

well for whatever reason, these were installed

x11-drivers/xf86-video-ati:0
x11-drivers/xf86-video-intel:0
x11-drivers/xf86-video-nouveau:0

so i removed them, and so now this is my new output of

Code:

$ sudo revdep-rebuild --library libstdc++.so.6 -- -p -v


Code:

 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using libstdc++.so.6
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Checking dynamic linking
[ 100% ]                 

 * There are no dynamic links to libstdc++.so.6... All done.


so this did not fix the issue
Back to top
View user's profile Send private message
silbak04
n00b
n00b


Joined: 01 May 2011
Posts: 9

PostPosted: Sun May 01, 2011 11:18 pm    Post subject: Reply with quote

okay so I guess gcc-4.6.0 was actually unmasked in package.keywords which was really weird cause I don't remember ever autounmasking it. Anyways, I went ahead and removed that from package.keywords, and then ran

Code:

$ sudo emerge -uNDva world


and now everything works well...so basically just reinstall gcc, and everything should be g2g

Hope this helps...
Back to top
View user's profile Send private message
taras-lao
n00b
n00b


Joined: 11 May 2011
Posts: 1

PostPosted: Wed May 11, 2011 9:11 pm    Post subject: Reply with quote

in my case gcc-4.4.5 was installed and solution was the next:

# cd /lib32
# ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libstdc++.so.6 libstdc++.so.6
Back to top
View user's profile Send private message
andreac
n00b
n00b


Joined: 03 Aug 2004
Posts: 14
Location: Mergo

PostPosted: Fri May 20, 2011 5:57 pm    Post subject: Reply with quote

taras-lao wrote:
in my case gcc-4.4.5 was installed and solution was the next:

# cd /lib32
# ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libstdc++.so.6 libstdc++.so.6


worked for me, thanks
_________________
Andrea
Back to top
View user's profile Send private message
rectilinear
n00b
n00b


Joined: 22 May 2011
Posts: 1

PostPosted: Sun May 22, 2011 7:38 pm    Post subject: Reply with quote

Thanks for this, taras-lao! Sems to be an error in the post-install routine? I may well be wrong though....
Back to top
View user's profile Send private message
vash_the_oxygen
n00b
n00b


Joined: 13 Jul 2011
Posts: 3

PostPosted: Wed Jul 13, 2011 11:38 pm    Post subject: Reply with quote

thanks a ton taras-lao!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Thu Jul 14, 2011 9:47 am    Post subject: Reply with quote

taras-lao wrote:
in my case gcc-4.4.5 was installed and solution was the next:

# cd /lib32
# ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libstdc++.so.6 libstdc++.so.6


It may work, but that is wrong.
There should be no link in /lib32 and the next time you upgrade gcc, you'll likely have problems again.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Spidey
Apprentice
Apprentice


Joined: 07 Sep 2006
Posts: 269

PostPosted: Tue Aug 09, 2011 8:40 pm    Post subject: Reply with quote

I'm watching this. I'm emergind libstdc++, despite having the libs already installed, the package wasn't. I thought this libraries came with gcc.
Anyways, if emerging don't work, I'll try symlinking the 64 bit version to the 32bit folder. amd64 multilib here.
Besides Skype, Eclipse + ADT also complained about this specific lib missing.

edit: symlinking didn't work as expected. The path was wrong. I need the link to be at /usr/lib32, not /lib32. Anyways, that didn't work either, I need the 32 bit version of the library. Tried symlinking libstdc++.so.5 to .so.6, but it didn't work too, ADT throws these errors:

[2011-08-09 17:44:42 - XXXXX] /home/spidey/android-sdk-linux_x86/platform-tools/aapt: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3' not found (required by /home/spidey/android-sdk-linux_x86/platform-tools/aapt)
[2011-08-09 17:44:42 - XXXXX] /home/spidey/android-sdk-linux_x86/platform-tools/aapt: /usr/lib32/libstdc++.so.6: version `GLIBCXX_3.4' not found (required by /home/spidey/android-sdk-linux_x86/platform-tools/aapt)

Aparently, I need the updated version, and it's missing.

Could someone run this to help us out?
equery b /usr/lib32/libstdc++.so.6

It will return the package that "owns" the library.

edit2: found who owns libstdc++.so.5: sys-libs/libstdc++-v3-3.3.6-r1
Like I said previously, I didn't had this package 'till a couple minutes earlier, and I'm sure that emerge depclean will remove it. What we need is the updated package.

edit3: found the problem: https://bugs.gentoo.org/show_bug.cgi?id=377633
Solution: https://bugs.gentoo.org/show_bug.cgi?id=377633#c9
Back to top
View user's profile Send private message
alexxy
Developer
Developer


Joined: 28 Jun 2005
Posts: 50
Location: Gatchina, St. Petersburg, Russia

PostPosted: Mon Aug 15, 2011 10:21 am    Post subject: Reply with quote

Actualy it caused by bug 377633. And it should be fixed for now.
_________________
Gentoo Team Russia
Working on Gentoo for iPAQ hx4700
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum