Theo Carr-Brion wrote:
I am trying to compile gpc20010623 with gcc 2.95.3 but the compiler complains about the following.
in gcc/tree.h:
extern int lang_decode_option PROTO((int, char **));
in gcc/p/lang.c:
#ifdef EGCS int lang_decode_option (argc, argv) int argc; char **argv; { return pascal_decode_option (argc, argv); } #else /* not EGCS */ int lang_decode_option (p) char *p; { return pascal_decode_option (p); } #endif /* not EGCS */
However, I am not using EGCS but gcc 2.95.3. Is comething configured incorrectly?
In GPC's terminology, "EGCS" is everything newer than gcc-2.8.1, therefore including 2.95.3 (ask Peter why ;-).
There's a problem in config-lang.in that mis-detects the GCC version on systems with crippled versions of sed or grep. I've fixed it long time ago (and the patch was posted here several times), but Peter hasn't gotten around to uploading it yet. Perhaps he'll manage to RSN.
Apart from that, you can look for the fix in the list archives, or install GNU grep/sed and reconfigure.
Frank