Thomas Böttcher wrote:
Hi,
I try to install the gcc 2.95.3 version (using Suse Linux 10)but after configuration I try to build it but I get two errors!
Is there a reason to install gcc-2.95.3? The current release is gcc-4.1.1.
The version you are trying to install is several years out of date. A lot
has changed and few people are likely to have a version of gcc-2.95.3 around
to look at the sources.
gcc -c -DIN_GCC -g -O2 -I. -I.. -I/home/derboe/Tools/gcc-2.95.3_install/gcc/ch -I/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/.. -I/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/../config -I/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/../../include /home/derboe/Tools/gcc-2.95.3_install/gcc/ch/decl.c
/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/decl.c: In function ‘start_struct’:
/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/decl.c:4451: error: argument ‘code’ doesn’t match prototype
/home/derboe/Tools/gcc-2.95.3_install/gcc/ch/ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Fehler 1
make[2]: Leaving directory `/home/derboe/Tools/gcc-2.95.3/gcc/ch'
make[1]: *** [cc1chill] Fehler 2
make[1]: Leaving directory `/home/derboe/Tools/gcc-2.95.3/gcc'
make: *** [all-gcc] Fehler 2
linux:/home/derboe/Tools/gcc-2.95.3 #
Take a look at gcc/ch/ch-tree.h:736 and see what the prototype
is declaring. Now take a look at ch/decl.c:4451 and see how
argument 'code' is defined. This is the mis-match.
Without knowing what the source looks like, I can only guess that
there may be some difference in the system declarations which makes
the type of 'code' incompatible with the prototype.
--
Michael Eager eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077