LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2011, 03:20 AM   #1
idxtr
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
gcc-2.95.3 and gcc-4.3.2


Hello there,
sun:~/src/objdir2 # gcc --version
gcc (GCC) 4.3.2

I want to install and gcc-2.95.3:
Code:
../gcc-2.95.3/configure --enable-languages=c,c++ --prefix=/usr/local/gcc-2.95.3
configure works fine.

but "make":
Code:
...
/usr/include/bits/libc-lock.h:429: syntax error before `void'
In file included from ../../../gcc-2.95.3/libio/builtinbuf.h:32,
                 from ../../../gcc-2.95.3/libio/builtinbuf.cc:29:
../../../gcc-2.95.3/libio/streambuf.h:37: parse error before `}'
make[1]: *** [builtinbuf.o] Error 1
make[1]: Leaving directory `/root/src/objdir2/i686-pc-linux-gnu/libio'
make: *** [all-target-libio] Error 2
How can I fix it?
 
Old 02-10-2011, 10:25 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Some more information would be nice : Which Linux OS are you using ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

Why do you want gcc-2.95.3 ?
And which software is it, that requires gcc-2.95.3 ?

( Requirement for compiling gcc-2.95.3 and get 'c++' is a ten year old OS.
The binary 'gcc' can still be created on some later 'Linux'.)

..
 
Old 02-10-2011, 11:18 AM   #3
idxtr
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Some more information would be nice : Which Linux OS are you using ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

Why do you want gcc-2.95.3 ?
And which software is it, that requires gcc-2.95.3 ?

( Requirement for compiling gcc-2.95.3 and get 'c++' is a ten year old OS.
The binary 'gcc' can still be created on some later 'Linux'.)

..
Sorry.
SUSE Linux Enterprise Server 11 SP1 (i586)

GCC-2.95.3 needed for very old project. Old systems doesn't support new drivers.
Software is development of our programmers who doesn't want to support old projects. My task is make impossible.

About 1 year ago I did it but I can't refresh one's memory.

Last edited by idxtr; 02-10-2011 at 11:21 AM.
 
Old 02-11-2011, 02:55 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be you have used an old Suse ? ?

The latest with a g++ version 2.95 : 'Debian Etch' and 'CentOS 3.9'.
( Both obsoleted / unsupported not many months ago.)

You could use an older OS ( On an older spare computer.)
But some libraries can be different, and the result may not run on SLES 11.

..
 
Old 02-12-2011, 03:05 AM   #5
idxtr
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
May be you have used an old Suse ? ?

The latest with a g++ version 2.95 : 'Debian Etch' and 'CentOS 3.9'.
( Both obsoleted / unsupported not many months ago.)

You could use an older OS ( On an older spare computer.)
But some libraries can be different, and the result may not run on SLES 11.

..
I have decided by
Code:
make -i
actally it works.
 
  


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
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 06:11 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 07:07 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 03:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:36 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