Java build failure

Michael Koch konqueror@gmx.de
Tue May 13 14:20:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 13. Mai 2003 14:41 schrieb Andreas Schwab:
> 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/.lib
>s -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'

I swear I check this before checking in ...


I commited the attached patch to fix this.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+wOxiWSOgCCdjSDsRAsHwAJ9xDNnS9PAP5cjwwzakEv8lnsUW2ACcCUv7
DrCChOLjb9fEd0GPT45Zsec=
=W9/K
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: niofix.diff
Type: text/x-diff
Size: 1503 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030513/83262985/attachment.bin>


More information about the Java mailing list