This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Java build failure


-----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-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1892
diff -u -b -B -r1.1892 ChangeLog
--- ChangeLog	13 May 2003 10:24:59 -0000	1.1892
+++ ChangeLog	13 May 2003 12:56:58 -0000
@@ -1,5 +1,11 @@
 2003-05-13  Michael Koch  <konqueror@gmx.de>
 
+	* gnu/java/nio/natDirectByteBufferImpl.cc
+	(allocateImpl): jlong -> RawData*.
+	(freeImpl): Likewise.
+
+2003-05-13  Michael Koch  <konqueror@gmx.de>
+
 	* java/nio/channels/FileChannel.java
 	(MapMode.m): Made it package-private to match JDK 1.4.
 	* java/nio/charset/Charset.java
Index: gnu/java/nio/natDirectByteBufferImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/nio/natDirectByteBufferImpl.cc,v
retrieving revision 1.1
diff -u -b -B -r1.1 natDirectByteBufferImpl.cc
--- gnu/java/nio/natDirectByteBufferImpl.cc	12 May 2003 18:32:17 -0000	1.1
+++ gnu/java/nio/natDirectByteBufferImpl.cc	13 May 2003 12:56:58 -0000
@@ -13,9 +13,10 @@
 #include <gcj/cni.h>
 #include <jvm.h>
 
+#include <gnu/gcj/RawData.h>
 #include <gnu/java/nio/DirectByteBufferImpl.h>
 
-jlong
+gnu::gcj::RawData*
 gnu::java::nio::DirectByteBufferImpl::allocateImpl (jint capacity)
 {
   // FIXME: implement this
@@ -23,7 +24,7 @@
 }
 
 void
-gnu::java::nio::DirectByteBufferImpl::freeImpl (jlong address)
+gnu::java::nio::DirectByteBufferImpl::freeImpl (gnu::gcj::RawData* address)
 {
   // FIXME: implement this
 }

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