make errors on solaris for libgcj
Vincent Joseph
vincent.joseph@usa.net
Thu Apr 8 13:21:00 GMT 1999
Hi,
System details:
===============
Sun 2.5.1
> make --version
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
c++ compiler : egcs-2.93.17
I got a few errors when compiling:
My first error occured in the sparc-*** sub directory. I had to
copy config.sub and install-sh to the sparc sub directory, and this
fixed that problem.
Once I did that I got the following error:
./configure: ./.././configure.host: not found
So I copied the configure.host file from the main boehm-gc
directory. There is also a configure.host file in the
main libjava directory (and the two are different).
The compile moved along further, but stopped again with the
following message.(BTW, libgcjgc.a was created, as was zip)
/export/home/vjoseph/bin/g++ -DHAVE_CONFIG_H -I. -I. -I./include
-Iinclude -I./include -I./../boehm-gc -I./../boehm-gc -DSILENT=1
-DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -fno-rtti
-fvtable-thunks -W -Wall -g -O2 -c prims.cc
In file included from include/cni.h:16,
from prims.cc:23:
java/lang/Object.h:8: parse error before `::'
java/lang/Object.h:14: syntax error before `('
java/lang/Object.h:17: `jlong' was not declared in this scope
java/lang/Object.h:17: `jint' was not declared in this scope
java/lang/Object.h:17: variable or field `wait' declared void
java/lang/Object.h:17: initializer list being treated as compound
expression
java/lang/Object.h:18: syntax error before `('
java/lang/Object.h:19: ANSI C++ forbids declaration `Object' with no
type
java/lang/Object.h:20: syntax error before `::'
java/lang/Object.h:17: previous non-function declaration `int wait'
java/lang/Object.h:21: conflicts with function declaration `void wait()'
java/lang/Object.h:22: `jlong' was not declared in this scope
java/lang/Object.h:22: variable or field `wait' declared void
java/lang/Object.h:22: redefinition of `int wait'
java/lang/Object.h:17: `int wait' previously defined here
java/lang/Object.h:23: parse error before `public'
java/lang/Object.h:27: incomplete type `java' does not have member
`lang'
java/lang/Object.h:27: parse error before `::'
include/java-array.h:20: sorry, not implemented: testing lang_type for
template parms
In file included from java/lang/Class.h:9,
from include/cni.h:17,
from prims.cc:23:
include/java-array.h:20: confused by earlier errors, bailing out
make[2]: *** [prims.o] Error 1
make[2]: Leaving directory
`/export/home/vjoseph/libgcj-snapshot-1999-04-08/sparc-sun-solaris2.5.1/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/export/home/vjoseph/libgcj-snapshot-1999-04-08/sparc-sun-solaris2.5.1/libjava'
make: *** [all-target-libjava] Error 2
And thats where I am right now...
Any help would be appreciated.
Thanks
Vincent
More information about the Java
mailing list