Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have some application that can go under gcc-2.95.2, RD Linux 6.1. However I have installed RD 7.0 with
gcc-2.96-40 because I have this RH on my CD. Now I am trying to install gcc-2.95.2 from source. Till now my success=0. Rh 7.0 with gcc-2.96 does not want to compile the gcc-2.95.2. Maybe I do something wrong. May
anybody help me?
In every of the three stages of building gcc there were the same three errors
1)
gcc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include \
-DTARGET_NAME=\"i386-pc-linux\" \
-c `echo /usr/local/src/gcc-2.95.2/gcc/toplev.c | sed 's,^\./,,'`
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
2)
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include /usr/local/src/gcc-2.95.2/gcc/reload1.c
/usr/local/src/gcc-2.95.2/gcc/reload1.c: In function `maybe_fix_stack_asms':
/usr/local/src/gcc-2.95.2/gcc/reload1.c:1275: warning: passing arg 4 of `decode_asm_operands' from incompatible pointer type
3)
ln -s /usr/local/src/gcc-2.95.2/gcc/../libiberty/cplus-dem.c cxxmain.c
gcc -c -DMAIN -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include \
-DVERSION=\"2.95.2\" cxxmain.c
cxxmain.c: In function `main':
cxxmain.c:4527: warning: assignment discards qualifiers from pointer target type
cxxmain.c:4530: warning: assignment discards qualifiers from pointer target type
Then the same at stage1 and once more at stage2.
And then in the end:
/usr/local/build/gcc/xgcc -B/usr/local/build/gcc/ -B/usr/local/gcc//i386-pc-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I/usr/local/src/gcc-2.95.2/libio -nostdinc++ -D_IO_MTSAFE_IO /usr/local/src/gcc-2.95.2/libio/indstream.cc
/usr/local/src/gcc-2.95.2/libio/indstream.cc:78: new declaration `int indirectbuf::seekoff(long long int, ios::seek_dir, int)'
/usr/local/src/gcc-2.95.2/libio/indstream.h:70: ambiguates old declaration `struct streampos indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)'
/usr/local/src/gcc-2.95.2/libio/indstream.cc: In method `int indirectbuf::seekoff(long long int, ios::seek_dir, int)':
/usr/local/src/gcc-2.95.2/libio/indstream.cc:85: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:88: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:90: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc: At top level:
/usr/local/src/gcc-2.95.2/libio/indstream.cc:98: new declaration `int indirectbuf::seekpos(_G_fpos64_t, int)'
/usr/local/src/gcc-2.95.2/libio/indstream.h:71: ambiguates old declaration `struct streampos indirectbuf::seekpos(_G_fpos64_t, int = 3)'
/usr/local/src/gcc-2.95.2/libio/indstream.cc: In method `int indirectbuf::seekpos(_G_fpos64_t, int)':
/usr/local/src/gcc-2.95.2/libio/indstream.cc:105: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:108: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:110: `struct streampos' used where a `int' was expected
gmake[2]: *** [indstream.o] Error 1
gmake[2]: Leaving directory `/usr/local/build/i386-pc-linux/libio'
gmake[1]: *** [all-target-libio] Error 2
gmake[1]: Leaving directory `/usr/local/build'
gmake: *** [bootstrap] Error 2
May anybody tell me what to do?
Can I find somewhere compiled gcc-2.95.2 (rpm or something else).
I found a link to a Mandrake rpm that also links to the src.rpm. Can't advise whether either of these would work for you. Maybe you could # rpm --rebuild the source.rpm? If you do, # rpm --checksig the gcc.src.rpm. In Mandrake, anyway, this will check the gpg signature (I think you have to install a gpg key from the packager) and md5sum. I think it will tell you about the md5sum whether or not you have the gpg key installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.