LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2005, 10:14 PM   #1
Ceafin
LQ Newbie
 
Registered: Jan 2005
Location: Texas
Distribution: #!
Posts: 3

Rep: Reputation: 0
DownGrading Failure


I'm pretty new to Linux, so please don't flame me. I've been trying to learn by working on something that will give me some drive. My choice was a particular MUD code base. And yes... I _HAVE_ searched this forum through and through, and MY question has not been answered.

Well, my problem is I'm using Fedora Core 3, straight off of linuxiso.org, and I'm trying to compile this rather old code base. It was coded before there was that big ANSI standard change. Therefore, the gcc compiler that came with FC3 is too new. I've talked around, emailed handfuls, and checked several formus (including this one) and found nothing. The one thing I find the most, is people saying, "You don't want the older version, you want to new compilers."

Well, this is all well and good, but I don't want the new compilers. I really would like to see this old code get off the ground. I know the code is supposed to compile fine on linux and under this compiler:
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

I tried installing the libraries my current compiler said it needed, (through seperate RPMs and such) I also tried installing the egcs-1.1.2 rpm & I tried installing the gcc 2.91 & gcc 2.95.2 rpms... but none of them were showing up, they weren't being installed, or something I'm just too green to recognize.

I want to learn. I am NOT asking for some hand out. But everywhere I turn to find some hints or heaven forbid some good help. I've been getting a turn down, a brush off, or someone who thinks they're so good they don't need to help lil' ol' me. I do admit I'm pretty green, but Linux seems very awesome so far, and I've enjoyed working with it for what I've done.

Thanks for your time, I really appreciate it.
Ceafin
 
Old 01-16-2005, 10:32 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
sorry people brush you off , it's very common to have a collection of compilers around
but it's important to not mess with the system compiler in /usr and don't install another compiler in --prefix=/usr

go download a copy of the current cvs realease of "Beyond Linux from Scratch"
in there is a page titled "gcc2.html"
it has detailed instructions on how to compile and use gcc-2.95.3 on a modern system.
this is the compiler from the 2 series that became the standard for that time
before 2.95.3 the standard was 2.91.66 but the two are very simmilar
think of 2.95.3 as a better 2.91.66

i would imagine the documentation you looked at was simply written before 2.95.3
and 2.95.3 will work for you
if it does not you can try to build 2.91.66 but i know of no instructions for doing that on a modern system like fedora core 3 but like all things Linux I'm sure it can be done
 
Old 01-16-2005, 11:43 PM   #3
Ceafin
LQ Newbie
 
Registered: Jan 2005
Location: Texas
Distribution: #!
Posts: 3

Original Poster
Rep: Reputation: 0
I found several version of the page you referred me to; however, each of them start off with:

Quote:
Installation of gcc
Apply the two patches, one to fix compilation and the other to stop the fixincludes script from executing.
Code:
patch -Np1 -i ../gcc-2.95.3-1.patch &&
patch -Np1 -i ../gcc-2.95.3-no-fixinc.patch

From the get go. Do I just enter these commands right into the terminal while my pwd is the directory where I've downloaded the gcc-2.95.3.tar.gz and related patches? Or do I save this step for last, after I've done all other steps to install the gcc compiler?

The rest of the page I think is enough that I can follow, but I feel there's some steps in the beginning I'm missing. I know they are probably obvious steps to more experienced users, but I've been trying with what I read, and I'm not getting anywhere close to the same results.
 
Old 01-17-2005, 12:53 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
What i usually do is install gcc-2.95.3 with the prefix /opt/gcc-2.95.3. ( I need it cause gcc-3.4 refuses to compile gnome-1.4 due to deprecated features). on the patches command, it depends on where the patches are ( ../patch.... is telling bash the patch is in the parent directory of the directory you are currently in) So say you have gcc-2.95.3 source in /home/joe/gcc-2.95.3 and the patches are in /home/joe as well. the commands as you quoted them will work if this is the case.

The patches must be applied right after you unpack the source (before ./configure ).

everything else on that page (gcc2.html) should work out for you.
dont forget to make the cc symlink like so:
Code:
ln -s /opt/gcc-2.95.3/bin/gcc /opt/gcc-2.95.3/bin/cc
and when you want to use gcc-2 compiler ( instead of your default one ) do:

export PATH=/opt/gcc-2.95.3/bin:$PATH ( this sets PATH to look in /opt/gcc-2.95.3/bin before anywhere else)

test it by running:

cc -v

and it should tell you the configure options and version as well as release date.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Downgrading gcc kewlemer Linux - General 1 04-04-2005 10:50 AM
Downgrading from 3.3 to 3.2 Niumex Linux - Distributions 0 09-02-2004 04:00 PM
Downgrading XFree86? InVisionNick Linux - Software 2 05-23-2004 05:26 PM
Downgrading MamaDoll Linux - General 1 04-11-2003 04:17 PM
downgrading kernel? nasim Linux - Newbie 8 05-05-2002 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration