Link to home
Start Free TrialLog in
Avatar of helpmealot
helpmealot

asked on

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!
Avatar of avizit
avizit

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
Does it compile with gcc-2.95 ? have you tried that ?
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of helpmealot

ASKER

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.
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.
Thanks again, that's exactly what I needed.