Solved

Where to get GCC 2.96 (2.9.6) source code?

Posted on 2004-09-23
6
830 Views
Last Modified: 2007-12-19
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
Comment
Question by:helpmealot
  • 2
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

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

Expert Comment

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

Accepted Solution

by:
jlevie earned 250 total points
ID: 12135253
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:helpmealot
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.
0
 
LVL 40

Expert Comment

by:jlevie
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.
0
 

Author Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now