Jerry Feldman writes:
On Mon, 28 Apr 2003 09:55:18 -0400 Jesse Marlin
wrote: I hadn't had any trouble compiling gcc-3.1.1 in the past. I think there are some system headers out there causing problems. On a side note I am also getting a lot of these errors just compiling code that used to work with 7.2. A lot of these look like problems with the headers themselves. This is the main reason I was compiling gcc-3.1.1 in the first place.
test_plan_xml_to_rnf.c:14:27: missing terminating " character test_plan_xml_to_rnf.c:17: error: parse error before "Converts" test_plan_xml_to_rnf.c:25:1: missing terminating " character In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from test_plan_xml_to_rnf.c:48: /usr/include/gconv.h:72: error: parse error before "size_t" /usr/include/gconv.h:88: error: parse error before "size_t" /usr/include/gconv.h:97: error: parse error before "size_t" /usr/include/gconv.h:174: error: parse error before "size_t" /usr/include/gconv.h:174: warning: no semicolon at end of struct or union/usr/include/gconv.h:177: error: parse error before '}' token /usr/include/gconv.h:177: warning: type defaults to `int' in declaration of `__g conv_t' /usr/include/gconv.h:177: warning: data definition has no type or storage class In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from test_plan_xml_to_rnf.c:48: /usr/include/_G_config.h:47: error: field `__cd' has incomplete type /usr/include/_G_config.h:50: error: field `__cd' has incomplete type /usr/include/_G_config.h:53: confused by earlier errors, bailing out
Could possibly be problems with the header files, or possibly problems in your include list. While a well written header file is self referential, not all Linux ones are. I suspect that your problem is in test_plan_xml_to_rnf.c where you might have an unterminated comment or quote, especially if you have some boiler plate at the beginning.
No the code on the C side looks good. I can compile it fine on other machines, SuSE 7.2, Redhat 7.3, SUN, HP, etc, all with gcc-3.1.1. I found some bug reports about gcc reporting about the wrong files or it may be confused or something. I just tried to compile the same code above with a gcc-3.1.1 that I copied from my old SuSE 7.2 system and it works. The normal compiler is gcc-3.3 from SuSE 8.2 and it does not work. I think I will just stick with gcc-3.1.1 for now. I would like to recompile gcc-3.1.1 for this system, but if the copy works then I can live with that.