Error while installing libgcj 2.95.1
Thomas Fritz
tfritz@c-s-k.de
Sat Apr 1 00:00:00 GMT 2000
Hi.
I compiled the libgcj successfully, but then as I tried to install the
libgcj, following
error occured:
c++ -DHAVE_CONFIG_H -I. -I./. -I./include -Iinclude -I././include
-I././../boehm-gc -I./../boehm-gc -I././../compat-include -I././../zlib
-fno-rtti -fvtable-thunks -fpermissive -W -Wall -g -O2
-Wp,-MD,.deps/prims.pp -c -fPIC -DPIC prims.cc -o .libs/prims.lo
In file included from include/cni.h:16,
from prims.cc:20:
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: warning: initializer list being treated as
compound expression
java/lang/Object.h:18: syntax error before `('
java/lang/Object.h:19: warning: ANSI C++ forbids declaration `Object'
with no type
java/lang/Object.h: In function `int Object()':
java/lang/Object.h:19: warning: control reaches end of non-void function
`Object()'
java/lang/Object.h: At top level:
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:20:
include/java-array.h:20: confused by earlier errors, bailing out
make[1]: *** [prims.lo] Error 1
make[1]: Leaving directory `/home/tfritz/src/libgcj-2.95.1/libjava'
make: *** [install-recursive] Error 1
I am using the gcc 2.95.1, on a Solaris 2.7 Platform.
If someone could help...
Greetings,
Thomas Fritz.
More information about the Java
mailing list