Java build failure

Andreas Schwab schwab@suse.de
Tue May 13 12:58:00 GMT 2003


The java library does not build:

/tmp/cvs/gcc-20030513/Build/gcc/xgcc -shared-libgcc -B/tmp/cvs/gcc-20030513/Build/gcc/ -nostdinc++ -L/tmp/cvs/gcc-20030513/Build/ia64-suse-linux/libstdc++-v3/src -L/tmp/cvs/gcc-20030513/Build/ia64-suse-linux/libstdc++-v3/src/.libs -B/usr/local/ia64-suse-linux/bin/ -B/usr/local/ia64-suse-linux/lib/ -isystem /usr/local/ia64-suse-linux/include -isystem /usr/local/ia64-suse-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude -I../../../libjava/include -I../../../libjava/../boehm-gc/include -DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DTHREAD_LOCAL_ALLOC=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I../../../libjava/libltdl -I../../../libjava/libltdl -I../../../libjava/.././libjava/../gcc -I../../../libjava/../libffi/include -I../libffi/include -O2 -g -O2 -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -funwind-t
 ables -W -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -D_GNU_SOURCE -MD -MT gnu/java/nio/natDirectByteBufferImpl.lo -MF gnu/java/nio/natDirectByteBufferImpl.pp -c ../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc  -fPIC -DPIC -o gnu/java/nio/.libs/natDirectByteBufferImpl.o
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:20: error: prototype 
   for `jlong gnu::java::nio::DirectByteBufferImpl::allocateImpl(__java_int)' 
   does not match any in class `gnu::java::nio::DirectByteBufferImpl'
gnu/java/nio/DirectByteBufferImpl.h:46: error: candidate is: static 
   gnu::gcj::RawData* 
   gnu::java::nio::DirectByteBufferImpl::allocateImpl(__java_int)
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:20: error: `jlong 
   gnu::java::nio::DirectByteBufferImpl::allocateImpl(__java_int)' and `static 
   gnu::gcj::RawData* 
   gnu::java::nio::DirectByteBufferImpl::allocateImpl(__java_int)' cannot be 
   overloaded
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc: In member function `
   jlong gnu::java::nio::DirectByteBufferImpl::allocateImpl(__java_int)':
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:20: warning: unused 
   parameter `jint capacity'
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc: At global scope:
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:27: error: prototype 
   for `void gnu::java::nio::DirectByteBufferImpl::freeImpl(__java_long)' does 
   not match any in class `gnu::java::nio::DirectByteBufferImpl'
gnu/java/nio/DirectByteBufferImpl.h:47: error: candidate is: static void 
   gnu::java::nio::DirectByteBufferImpl::freeImpl(gnu::gcj::RawData*)
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc: In member function `
   void gnu::java::nio::DirectByteBufferImpl::freeImpl(__java_long)':
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:27: warning: unused 
   parameter `jlong address'
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc: In member function `
   jbyte gnu::java::nio::DirectByteBufferImpl::getImpl(__java_int)':
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:33: warning: unused 
   parameter `jint index'
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc: In member function `
   void gnu::java::nio::DirectByteBufferImpl::putImpl(__java_int, __java_byte)
   ':
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:41: warning: unused 
   parameter `jint index'
../../../libjava/gnu/java/nio/natDirectByteBufferImpl.cc:41: warning: unused 
   parameter `jbyte value'

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Java mailing list