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]

libjava grievances


Hello!

I'm trying  to make gcj usable  on my FreeBSD-3.2 system.  I'm using the
gcc 2.95.1 for the build.

Just when I thought I've overcome all the problems of

	. toplevel configure not-working
	. my /usr/local/bin/zip not being found/used
	. boehm-gc's, libjava's configures and the generated Makefiles
	  looking for configure.host and config-ml.in in the wrong
	  directories
	. absolute absence of any sort of the build/installation
	  instructions in libjava
	. snapshots on the ftp://sourceware.cygnus.com/pub/java/snapshot/
	  truncated

and, actually, saw the the build of libjava taking off, the following error
stopped things and I don't know how to proceed any further:

g++295 -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 -fno-rtti -fvtable-thunks -fpermissive -W -Wall -O -pipe -mpentiumpro -pthread -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
cpp: output pipe has been closed
gmake[1]: *** [prims.lo] Error 1
gmake[1]: Leaving directory `/usr/ports/java/libgcj/work/libgcj-2.95.1/libjava'
gmake: *** [all-recursive] Error 1

Any suggestions? Thanks,

	-mi

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