Hi,
[please respond by direct mail as well as I'm only just in the process of joining the list]
I cannot build gpc-19980830 with gcc-2.8.1. It seems that the patch in p/diffs/gcc-2.8.1.diff is incomplete in regard to the 'toplev.c' file. It only changes some empty lines, where it seems that it should make the variable 'version_flag' available as en external symbol, as this is what the file 'gbe.h' assumes to be the case:
/* toplev.c */ extern char *progname; extern int version_flag; extern void pedwarn PVPROTO ((char *, ...)); extern void warning PVPROTO ((char *, ...)); extern void error PVPROTO ((char *, ...)); extern void fatal PVPROTO ((char *, ...)); extern void error_with_decl PVPROTO((tree, char *, ...)); extern void rest_of_decl_compilation PROTO ((tree, char *, int, int)); extern void warning_with_file_and_line PVPROTO ((char *, int, char *, ...));
The result is a linking problem.
gcc -DIN_GCC -DGPC -DSVR4 -g -o ../gpc1 \ `cat stamp-gbe` ../c-aux-info.o ../c-iterate.o ../c-pragma.o ../choose-temp.o ../pexecute.o mkstemp.o gpc-common.o gpc-convert.o gpc-decl.o gpc-lang.o gpc-lex.o gpc-typeck.o module.o gpi-hash.o circle-buf.o objects.o parse.o rts.o types.o util.o setop.o version.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` `case "gcc" in "cc") if [ xalloca.o != x ]; then echo ../alloca.o; else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi` Undefined first referenced symbol in file version_flag module.o ld: fatal: Symbol referencing errors. No output written to ../gpc1 gmake[1]: *** [../gpc1] Error 1
Anyone with a patch ready for this?
--- benedict