Where to get GCC 2.96 (2.9.6) source code?

Posted on 2004-09-23
Medium Priority
Last Modified: 2007-12-19

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!
Question by:helpmealot
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 11

Expert Comment

ID: 12135174
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
LVL 11

Expert Comment

ID: 12135201
Does it compile with gcc-2.95 ? have you tried that ?
LVL 40

Accepted Solution

jlevie earned 1000 total points
ID: 12135253
AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.


Author Comment

ID: 12138613
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.
LVL 40

Expert Comment

ID: 12139175
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.

Author Comment

ID: 12145239
Thanks again, that's exactly what I needed.

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question