LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-30-2009, 08:42 AM   #1
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Rep: Reputation: 137Reputation: 137
libstdc++.so.5 is missing from gcc-4.3.3_multilib-x86_64-4alien.txz


I play Neverwinter Nights and in order for the movies to play they require libstdc++.so.5, but only libstdc++.so.6 is included in gcc-4.3.3_multilib-x86_64-4alien.txz. I have looked at the slackbuild but cannot see what to do to get the earlier libraries. Does anyone know how to do this?

samac
 
Old 08-30-2009, 09:34 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,745
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
libstdc++.so.5 is provided by the 3.X.X versions of gcc. The 4.X.X versions of gcc provide libstdc++.so.6 as you have already discovered. You can install just the libstdc++.so.5 from earlier versions of gcc. Here is how I do it on my (non-Slackware) machine
Code:
tar xf gcc-3.3.6.tar.bz2 && 
mkdir gcc-build &&
cd gcc-build &&
../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \
    --enable-threads=posix --enable-multilib \
    --enable-shared --enable-languages=c,c++ &&
make bootstrap &&
cp -av $(gcc -dumpmachine)/libstdc++-v3/src/.libs/libstdc++.so.5* /usr/lib64
Hopefully it gets you started.
 
Old 08-30-2009, 09:35 AM   #3
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Have you tried creating a symlink to .6 and see if it works? I've tried stuff like this in the past. Sometimes it works and sometimes not.
 
Old 08-30-2009, 09:41 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,306

Rep: Reputation: Disabled
Quote:
Originally Posted by samac View Post
I play Neverwinter Nights and in order for the movies to play they require libstdc++.so.5, but only libstdc++.so.6 is included in gcc-4.3.3_multilib-x86_64-4alien.txz. I have looked at the slackbuild but cannot see what to do to get the earlier libraries. Does anyone know how to do this?

samac
Hi!

Perhaps it is enough to run convertpkg-compat32 on Slackware's 32bit cxxlibs package and install the resulting -compat32 package.
I will add cxxlibs to the list of packages in the massconvert32.sh script so that a -compat32 package will be created automatically from now on.

Cheers, Eric
 
Old 08-30-2009, 10:29 AM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Original Poster
Rep: Reputation: 137Reputation: 137
Quote:
Perhaps it is enough to run convertpkg-compat32 on Slackware's 32bit cxxlibs package and install the resulting -compat32 package.
This resulted in a use-able libstdc++.so.5 in /usr/i486-slackware-linux/lib/, linking this to /usr/lib/ allowed the first movie to play, NWN then froze. So I guess my problem is fixed with regard to Slackware64 I will now try to fix the NWN problem.

Thanks Eric.

samac
 
Old 08-31-2009, 06:57 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,306

Rep: Reputation: Disabled
Quote:
Originally Posted by samac View Post
This resulted in a use-able libstdc++.so.5 in /usr/i486-slackware-linux/lib/, linking this to /usr/lib/ allowed the first movie to play, NWN then froze. So I guess my problem is fixed with regard to Slackware64 I will now try to fix the NWN problem.

Thanks Eric.

samac
I've updated my compat32-tools package so that it will now properly deal with the libraries in the 32bit cxxlibs package. Your manual symlink creation should no longer be needed.

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libstdc++.so.5 missing for Fluent dubak_SK Linux - Newbie 2 02-05-2006 01:49 AM
missing libstdc++.so.2.8 Avatar Linux - General 7 04-13-2005 07:39 AM
gcc, g++ libstdc ? WHAT!?! Trying to install scribus irbaileyus Linux - Software 7 02-18-2005 04:09 PM
gcc libstdc++ problem tygernoot Programming 1 11-03-2004 04:43 PM
What?!:gcc = 3.3.2 conflicts with libstdc++-3.3.2-2 dsledge Linux - Software 1 09-28-2004 06:24 AM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration