I have been trying, on behalf of one of our researchers here, to install the gpc-20010623 on a Solaris 8 (8-04) SunBlade.
I had install problems buth using Sun's "extra" gcc-2.95.2 sources as the base and using the gcc-core distribution from the GPC ftp site.
Mainly, these difficulties appear to arise because things like xmalloc and concat were being multiply defined.
So, by a good deal of guesswork, I ended up adding:
-DEGCS -DEGCS92 -DEGCS95
to be defined when doing the make. It compiled.
This suggests that configure didn't run correctly since it's supposed to set the correct defines automatically.
However when I try to compile a "hello word" I get the following at the linker stage
Undefined first referenced symbol in file _p_eq /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(string.o) ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status
I guess this is a Pascal thing.
[...]
GNU Pascal Compiler PreProcessor version 20010605, based on gcc-2.95.2 19991024 (release) (sparc)
^^^^^^^^ That seems strange since you said you were using 20010623 (this problem on the Sparc was fixed (I hope) on 2001-06-19, so it does make a difference).
Does ./gpcpp (in the build directory) claim to be 20010623? If so, apparently the Makefile used an older installed compiler. Otherwise, you either did not get 20010623 (and might want to do so now), or something went wrong in our CVS archives (which I can't check right now).
You can probably work around the problem by removing `{$if True}' and the following `{$endif}' in p/rts/string.pas, but I'd appreciate if you try to find out whether there's a real problem left or it was only a version conflict.
Frank
-- Frank Heckenbach, frank@g-n-u.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan