This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Problems compiling libgcj-2.95.1 on Solaris


SunOS cascade.cs.ubc.ca 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-60

Trying to compile the libgcj package. I cd to libjava, then run 
./configure. Complains about lack of ./.././config.host file, so I
create one and put my hostname in it. Run configure again, complains
about incorrect format of config.host file but eventually succeeds. 
Run make, I get a missing boehm-config.h. So I link boehm/config.h to
boehm-config.h and compilation continues, but fails with the error
below. -chris

gmake[1]: Entering directory `/cs/public/generic/lib/pkg/libgcj-2.95.1/libjava'
/bin/sh ./libtool --mode=compile 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 -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 -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
gmake[1]: *** [prims.lo] Error 1
gmake[1]: Leaving directory `/cs/public/generic/lib/pkg/libgcj-2.95.1/libjava'
gmake: *** [all-recursive] Error 1
[cascade]12:34:06[libjava]$  



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