Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th August 2011, 10:37 AM
FedoraTom Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7firefox
How to get GCC 4.1 for Fedora 15

Hey!

I'm a total linux newbie and currently porting a plugin for a third party software from windows to linux. Everything works well, it's just that the third party software was compiled with GCC 4.1 and we have the problem that the libstdc++ is not compatible (as F15 has GCC 4.6 equipped)

Is GCC4.1 available for F15? How can i install that? Or is it already installed as a compat version and i'm just too stupid to find it?

I tried to build GCC4.1 here, but i gave up I also don't know how to manage multiple compilers on fedora.

I'm at a point where i think about downgrading to F8 just because of the compiler....

Thank you for your help,
Thomas
Reply With Quote
  #2  
Old 8th August 2011, 11:56 AM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,606
linuxfedorafirefox
Re: How to get GCC 4.1 for Fedora 15

Just asking:

Why not upgrading libstdc++, instead of downgrading compiler?
What kind of tpp sw you're re-compiling?
Maybe there is a linux version of it.

Code:
yum list *libstdc++*
Geladene Plugins: langpacks, presto, refresh-packagekit
rpmfusion-free-updates                                  | 2.7 kB     00:00     
rpmfusion-nonfree-updates                               | 2.7 kB     00:00     
updates/metalink                                        |  29 kB     00:00     
updates-debuginfo/metalink                              |  22 kB     00:00     
updates-testing-debuginfo/metalink                      |  20 kB     00:00     
Installierte Pakete
libstdc++.i686                            4.6.0-10.fc15                @updates
libstdc++.x86_64                          4.6.0-10.fc15                @updates
libstdc++-devel.x86_64                    4.6.0-10.fc15                @updates
Verfügbare Pakete
compat-libstdc++-296.i686                 2.96-143.1                   fedora  
compat-libstdc++-33.i686                  3.2.3-68.1                   fedora  
compat-libstdc++-33.x86_64                3.2.3-68.1                   fedora  
libstdc++-devel.i686                      4.6.0-10.fc15                updates 
libstdc++-docs.x86_64                     4.6.0-10.fc15                updates 
libstdc++-static.i686                     4.6.0-10.fc15                updates 
libstdc++-static.x86_64                   4.6.0-10.fc15                updates
According to above list, next compat version would be 3.2.3-68 ??
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #3  
Old 8th August 2011, 12:06 PM
FedoraTom Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7firefox
Re: How to get GCC 4.1 for Fedora 15

i'm compiling a plugin for the foundry's NUKE. they require to build with GCC4.1 and the corresponding libstdc++, otherwise my plugin fails to load.... i'm converting my win/mac builds for a linux version of them
Reply With Quote
  #4  
Old 8th August 2011, 12:09 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,606
linuxfedorafirefox
Re: How to get GCC 4.1 for Fedora 15

In that case, you'd need to remove the current libstdc++, and add libstdc++ 4.1 from another repo.
Sadly, i'm not yet experienced enough to tell you how to do that, nor where you could find that.
But that (afaik) would be the solution.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #5  
Old 8th August 2011, 01:15 PM
FedoraTom Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7firefox
Re: How to get GCC 4.1 for Fedora 15

i finally decided to give the original GCC41 another try and compiled it for fedora 15. works now, apparently there is no other (safe) option to do it.
Reply With Quote
  #6  
Old 9th August 2011, 03:36 AM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
linuxfirefox
Re: How to get GCC 4.1 for Fedora 15

a few options
1) and recommended -- IF POSSIBLE

fix the code so it builds with the newer versions of gcc
80% is only adding #INCLUDE statements
gcc 4 to 4.3 and 4.4 porting guides
http://gcc.gnu.org/gcc-4.3/porting_to.html
http://gcc.gnu.org/gcc-4.4/porting_to.html
2)
build gcc 4.1,and 4.3 from source
-- sometimes it is not feasible to port the program ---
i have gcc 3.4, 4.1,4.3, and 4.5 installed and use a small shell script to set the system default
there are a few "how to's" around -- google it

4.5 and 4.6 are minor hacks mostly
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
Reply

Tags
fedora, gcc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


Current GMT-time: 21:04 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat