This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compile error prime.cc


When making install in libjava (latest CVS checkout) the following error 
occurs:

make[1]: Entering directory `/home/veit/gcj/libgcj/libjava'
/bin/sh ./libtool --mode=compile c++ -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   -I./../compat-include -I./../zlib   -fno-rtti -fvtable-thunks   -W  -g -O2 -c prims.cc
rm -f .libs/prims.lo
c++ -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 -I./../compat-include -I./../zlib -fno-rtti -fvtable-thunks -W -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: 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: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:20:
include/java-array.h:20: confused by earlier errors, bailing out
make[1]: *** [prims.lo] Error 1

System data:
	Solaris 2.5.1
	g++ -v = gcc version gcc-2.96 19990608 (experimental)

Ideas?

-- 
         Dr.-Ing. Holger Veit             | INTERNET: Holger.Veit"at"gmd.de
|  |   / GMD - German National Research   | Phone: (+49) 2241 14 2448
|__|  /  Center for Information Technology| Fax:   (+49) 2241 14 2342
|  | /   Schloss Birlinghoven             |  The new version XFree86-3.3.3.1
|  |/    D-53754 Sankt Augustin, Germany  | is now available from ais.gmd.de
         WWW: http://ais.gmd.de/~veit/    |   /pub/misc/XFree86OS2/3.3.3.1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]