LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Failed to install gcc-2.95.3 in Fedora 3 (https://www.linuxquestions.org/questions/fedora-35/failed-to-install-gcc-2-95-3-in-fedora-3-a-517255/)

RedAlert 01-07-2007 05:20 PM

Failed to install gcc-2.95.3 in Fedora 3
 
Hi,
Fedora comes with gcc-3.4.2. For my project, I have to install the older version, gcc-2.95.3. The following occurs during the installation:

make[2]: Entering directory `/root/ftp/gcc-2.95.3/gcc/ch'
gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config -
I./../../include decl.c
decl.c: In function `start_struct':
decl.c:4451: error: argument "code" doesn't match prototype
ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Error 1
make[2]: Leaving directory `/root/ftp/gcc-2.95.3/gcc/ch'
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/root/ftp/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2

Can you guys help me to solve out this problem?

Thank you very much!

Lenard 01-07-2007 05:49 PM

Install the compat libs;

yum install compat-gcc compat-libstdc++ compat-libgcc

FYI: it would be really a good idea to update your project the 2.9X version of gcc is to old to be useful in a modern environment. Even the kernel sources now suggests at least gcc 3.2


All times are GMT -5. The time now is 03:29 PM.