• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 904
  • Last Modified:

Where to get GCC 2.96 (2.9.6) source code?

Hello,

I have to work on a large C/C++ project built using GCC 2.96.  This compiler is necessary because it is not feasible at this time to upgrade the code to work on newer compilers.  Yes, it really is that bad.  Where can I get the source code for GCC 2.96?  I don't want the Redhat 7.x RPM.

Points go to whoever provides a working link to the source code first.  Thanks!
0
helpmealot
Asked:
helpmealot
  • 2
  • 2
  • 2
1 Solution
 
avizitCommented:
http://gcc.gnu.org/gcc-2.96.html  
http://www.mplayerhq.hu/DOCS/HTML/en/gcc-296.html
2.96 is not official GNU  ..

gcc-2.96 was released by RE Hat and hence i guess you will end up with redhat versions only
0
 
avizitCommented:
Does it compile with gcc-2.95 ? have you tried that ?
0
 
jlevieCommented:
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
helpmealotAuthor Commented:
Thanks for your quick responses.

avizit - Your links don't seem to provide a place to download this (odd) version of GCC.  I am aware that this compiler has a host of problems, but there is nothing I can do about it at the moment :)  Unfortunately, the software does not compile under 2.95 or any 3.x version either.  If it were merely a matter of fixing one or two glitches, this would not be an issue, but this software is over 100k lines and produces literally thousands of errors upon recompiling with a different version of the compiler.  Clearly, the fact that it doesn't compile on other compilers indicates that quite a bit of code is either ambiguous, improperly written, or non-standard C++.  Again, there is nothing I can do about it at the moment :)

jlevie - This seems to be an RPM which needs to be installed.  Unfortunately, the server on which I need to install this compiler precludes access to the /usr/src directory.  The system admin attempted to install it himself, but reported that this version of GCC won't install on this OS (Fedora Core 2).  Here is the output I get:

~/gcc> rpm -i ./gcc-2.96-113.src.rpm
warning: ./gcc-2.96-113.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

Thus, what I really need to do is install it somewhere else, i.e. my home directory.  Unforuntately this too seems to fail:

~/gcc> rpm -i --prefix /homes/gws/mr/gcc ./gcc-2.96-113.src.rpm
warning: ./gcc-2.96-113.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

What I had intended to do was simply get the source code for GCC 2.96, and specify the "prefix" magic word when running "configure".  Is the source only available in this rpm format?  What would you suggest I do?

Thanks again.
0
 
jlevieCommented:
As was mentioned in avizit's comment Gcc 2.9.6 is a RedHat special. so the RedHat SRPM is the only way to get it.

There are two choices for installing this on a Fedora system:

1) As root do:

mkdir -p /usr/src/redhatSOURCES
rpm -i ./gcc-2.96-113.src.rpm

2) As a user in your home directory do:

mkdir -p buildroot/usr/src/redhatSOURCES
rpm --root /home/username/buildroot/usr/src/redhatSOURCES -i ./gcc-2.96-113.src.rpm

Now whether that version of Gcc will build or work is a different question. And whether you'll need the old libraries for a Gcc 2.96 is also open to question.

My guess, offhand, is that your problem in compiling this are related to templates more than the complier per se.
0
 
helpmealotAuthor Commented:
Thanks again, that's exactly what I needed.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now