Thanks and you were correct:
p/lang.c:1236: conflicting types for `lang_mark_tree' ggc.h:184: previous declaration of `lang_mark_tree' p/lang.c: In function `lang_mark_tree': p/lang.c:1237: invalid type argument of `->' p/lang.c:1243: invalid type argument of `->' p/lang.c:1249: invalid type argument of `->' p/lang.c:1249: invalid type argument of `->' p/lang.c:1251: invalid type argument of `->' p/lang.c:1260: invalid type argument of `->' p/lang.c:1260: invalid type argument of `->' p/lang.c:1262: invalid type argument of `->' make[1]: *** [p/lang.o] Error 1 make[1]: Leaving directory `/home/apseyed/software/gcc-3.2.3/gcc' make: *** [all-gcc] Error 2
not having much success with p2c either.
-Patrice
-----Original Message----- From: Pascal Viandier [mailto:pascal@accovia.com] Sent: Tuesday, May 17, 2005 1:10 PM To: 'Patrice Seyed'; gpc@gnu.de Subject: RE : gnu p compilation on redhat variant
Hi,
I have the same problem under Solaris - among others - with gpc-20050331.
I fixed it this this way:
In declarations.c
Line 1587 was not compiling because of shared_decl_lang_specific undefined
ggc_mark (shared_decl_lang_specific);
I replaced it by: ggc_mark (level->shared_decl_lang_specific);
Then it passed.
But, be prepared to have other compilation problems after this one...
Anyway, even when I fixed the compilation errors, the gpc1 compiler crash on some Pascal sources (string1.pas in rts directory for example)
Pascal Viandier
-----Message d'origine----- De : gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] De la part de Patrice Seyed Envoyé : May 17, 2005 12:56 À : gpc@gnu.de Cc : apseyed@bu.edu Objet : gnu p compilation on redhat variant
Hi,
As following instructions at: http://www2.gnu-pascal.de/gpc/Compiling-GPC.html#Compiling-GPC
In terms of creating symlink to unpackaged "p" and so forth, and the configure line with --enable-languages=pascal, when I then do the "make" I get the following errors at the end:
p/declarations.c: In function `mark_binding_level': p/declarations.c:1587: `shared_decl_lang_specific' undeclared (first use in this function) p/declarations.c:1587: (Each undeclared identifier is reported only once p/declarations.c:1587: for each function it appears in.) make[1]: *** [p/declarations.o] Error 1 make[1]: Leaving directory `/home/apseyed/software/gcc-3.2.3/gcc' make: *** [all-gcc] Error 2
Any help appreciated. This is a system based on RHEL 3. I tried the gpc rpm binary that runs on rh 6 and received the error: ld: cannot open crtbegin.o: No such file or directory
Thanks,
Patrice Seyed Linux System Administrator - LinGA RHCE, SCSA Boston University Medical Campus