This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


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

Re: make errors on solaris for libgcj



> I'm not up on the egcs version numbering scheme.  Is this the same
> version as the java front end?  You have to make sure to use a C++
> compiler that understands our Java-specific extensions.

egcs-2.93.17 relates to the files from the latest snapshots 
(1999-04-05):
egcs-g++-19990405.tar.gz
egcs-core-19990405.tar.gz
egcs-java-19990405.tar.gz

The libgcj file is:
libgcj-snapshot-1999-04-08.tar.gz  

> You probably built in the source tree.  You can't do that right now.
I remade from a non source directory, and did not get any more make 
errors; however the compile errors are still there.

Compile Error:
/export/home/vjoseph/bin/g++ -DHAVE_CONFIG_H -I.
-I../../../libgcj-snapshot-1999-04-08/libjava -I./include -Iinclude
-I../../../libgcj-snapshot-1999-04-08/libjava/include
-I../../../libgcj-snapshot-1999-04-08/libjava/../boehm-gc
-I./../boehm-gc  -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1
-DJAVA_FINALIZATION=1  
-I../../../libgcj-snapshot-1999-04-08/libjava/../compat-include  
-fno-rtti -fvtable-thunks   -W -Wall -g -O2 -c
../../../libgcj-snapshot-1999-04-08/libjava/prims.cc
In file included from
../../../libgcj-snapshot-1999-04-08/libjava/include/cni.h:16,
                 from
../../../libgcj-snapshot-1999-04-08/libjava/prims.cc:23:
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:8: parse
error before `::'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:14:
syntax error before `('
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17:
`jlong' was not declared in this scope
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17:
`jint' was not declared in this scope
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17:
variable or field `wait' declared void
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17:
initializer list being treated as compound expression
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:18:
syntax error before `('
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:19: ANSI
C++ forbids declaration `Object' with no type
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:20:
syntax error before `::'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17:
previous non-function declaration `int wait'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:21:
conflicts with function declaration `void wait()'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:22:
`jlong' was not declared in this scope
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:22:
variable or field `wait' declared void
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:22:
redefinition of `int wait'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:17: `int
wait' previously defined here
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:23: parse
error before `public'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:27:
incomplete type `java' does not have member `lang'
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Object.h:27: parse
error before `::'
../../../libgcj-snapshot-1999-04-08/libjava/include/java-array.h:20:
sorry, not implemented: testing lang_type for template parms
In file included from
../../../libgcj-snapshot-1999-04-08/libjava/java/lang/Class.h:9,
                 from
../../../libgcj-snapshot-1999-04-08/libjava/include/cni.h:17,
                 from
../../../libgcj-snapshot-1999-04-08/libjava/prims.cc:23:
../../../libgcj-snapshot-1999-04-08/libjava/include/java-array.h:20:
confused by earlier errors, bailing out
make[2]: *** [prims.o] Error 1
make[2]: Leaving directory
`/export/home/vjoseph/build/sparc-sun-solaris2.5.1/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/export/home/vjoseph/build/sparc-sun-solaris2.5.1/libjava'
make: *** [all-target-libjava] Error 2