LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-23-2007, 02:25 PM   #1
north49er
Member
 
Registered: Apr 2003
Location: 60.47'N lat
Distribution: fedora 15 x86_64
Posts: 156

Rep: Reputation: 18
gcc question


I'm having a problem getting an application to work because it can't find an older libstdc++ file. This was not a problem in slack11. I'd like to try installing slack11 gcc and cxxlib packages to slack12 but I'm afraid if will cause problems. Any workarounds?
 
Old 07-23-2007, 02:40 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You can build another version and then either install it someplace like /opt or just install libstdc++.
Code:
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \
    --enable-threads=posix --disable-multilib \
    --enable-shared --enable-languages=c,c++ &&
make bootstrap &&
make -k check &&
../gcc-3.3.6contrib/test_summary >test_summary.log 2>&1 &&
../gcc-3.3.6/contrib/test_summary | \
    grep -A7 Summ >test_summary_short.log 2>&1
Install just libstdc++
Code:
cp -av $(gcc -dumpmachine)/libstdc++-v3/src/.libs/libstdc++.so.5* /usr/lib
Install the whole package
Code:
make install &&
chown -Rv root:root /opt/gcc-3.3.6/lib/gcc-lib/$(gcc -dumpmachine)/3.3.6/include &&
mv -v /opt/gcc-3.3.6/lib/libstdc++.so.5* /usr/lib &&
ln -sfv /usr/lib/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib &&
ln -sfv libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib/libstdc++.so.5
 
Old 07-24-2007, 04:02 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can just extract the missing library file(s) from the Slackware 11.0 package - like http://slackware.osuosl.org/slackwar...0.3-i486-1.tgz if you need a link to an online package.
Also check the doinst.sh script which creates additional symlinks for the libraries. You may or may not need to create these symlinks yourself - first see if your legacy application will work again when you've extracted that library file.

As for the older gcc, I have a gcc 3.4 package for Slackware 12.0 that you can install alongside the default gcc4 of Slackware 12.0. Read my instructions in the SlackBuild script on how to use this gcc3. Some applications will automatically find the gcc3 and use it (for instance QEMU, the virtual machine program, will only compile on Slackware 12.0 using this gcc3 package and it's configure program will find the gcc3 without the need for any tweeks).

See http://www.slackware.com/~alien/slackbuilds/gcc34/

Cheers, Eric
 
  


Reply



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
gcc question irfanhab Programming 1 05-21-2006 10:25 AM
gcc question ?????? jmax24 Programming 7 04-24-2004 07:36 PM
GCC Question SainT1337 Linux - General 2 11-30-2003 01:11 PM
Question about GCC 3.2.2 and 2.95 deepsix Programming 9 07-30-2003 02:54 AM
gcc question 0micron Linux - Software 4 02-19-2003 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration