Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-01-2005, 07:05 AM   #1
LQ Newbie
Registered: Nov 2004
Location: India
Distribution: FC1
Posts: 9

Rep: Reputation: 0
compiling older gcc

I currently have FC3 with gcc-3.4 installed on it.

For some readons. i wanted to work with an older compiler version of gcc , so i dnloaded the gcc-3.0 src code from the GNU mirror sites,

I did the following.

Untarred the src code into the /opt dir and then did the
./configure --prefix=/usr/local/mygcc --enable-shadow-headers

then i did the make
make bootstrap

After pretty long time, i lande with an error 2
in file included in from at line 508

which was #include<bits/ctype_noninline.h>
In constructor std:ctype<char>:ctype(.........); undefined reference to do_toupper, similarly do_tollower

then it had exited,

I chked the file. but coulld not really set it right.
There exists a #ifdef regarding shadow headers which says if given in configure would allow legacy C definitions to be used, but to summarise i landed in nothing after a struggle for 2 days. Can any1 suggest what is wrong and what needs to be done to get this gcc-3.0 compiled.

Does glibc create some problems. This is precisely only in the libstdc++ library compilations.

Any suggestions would be great.....

Thanking u,
Old 04-01-2005, 11:18 AM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
you might want to look on the internet for a no_fixincludes patch (always a good idea to disabe that)
for the locale problem you might try
and i would also be using
and it may be necesarry to use

and since you are using one version to compile another version use
make bootstrap
so it can sort itself

sometimes there are just problems between glibc versions and gcc versions on certain hardware

edit: it may be that --enable-shadow-headers is broken as well posibly ?
doesn't seem like that would be necesary but i don't fully understand all the ins and outs of that

Last edited by foo_bar_foo; 04-01-2005 at 11:21 AM.


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
How can I install an older gcc thorney Fedora 1 11-25-2005 08:16 PM
Installing older gcc. Bad idea? Surg Debian 1 11-14-2005 10:53 AM
compiling issues on as3 with older gcc nkshirsagar Red Hat 2 12-07-2004 10:56 PM
using an older version of gcc win32sux Slackware 1 05-12-2004 01:53 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 AM.

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