Package: gij-3.2 Version: 1:3.2.2-0pre0 Severity: normal Tags: sid In converting the libnbio2-java package to build with all free tools, I have discovered that gij is not able to run some programs that are part of the NBIO test suite, although other interepreters such as Kaffe can.
There was a long discussion in debian-java on the general subject of converting NBIO, starting here: http://lists.debian.org/debian-java/2002/debian-java-200211/msg00038.html A discussion of the problems I had with gij starts near here: http://lists.debian.org/debian-java/2002/debian-java-200211/msg00047.html At the time of this conversation, I passed the information in this bug report off to Tom Tromey because he asked for it; I decided it would be worthwhile to file a bug, as well. The bug can be reproduced by first installing the libnbio2-java package, version 2.0-5, and then building and running part of the NBIO test suite based on the installed NBIO jarfile. The attached file 'script-gij' provides a recipe to reproduce the problem, assuming that the libnio2-java package is already installed. (I hope the attachment is OK; reportbug hosed it previously, and this time I attached it directly from mutt.) Version 2.0-5 of libnbio2-java may or may not be in the archive when you get this report, since my sponsor may not have had a chance to upload it yet. If you don't want to wait for it to appear the archive before researching this bug, you can get it using this apt data source: # Cedar Solutions updates deb ftp://cedar-solutions.com/debian unstable main deb-src ftp://cedar-solutions.com/debian unstable main or you can just grab it directly via FTP: ftp://cedar-solutions.com/debian/java/libnbio2-java/ Please let me know if there is any other information I can get you. I'd be happy to help in any way that I can. KEN -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux agamemnon 2.4.18 #1 Sun Jul 28 16:52:21 CDT 2002 i686 Locale: LANG=en, LC_CTYPE=en_US (ignored: LC_ALL set) Versions of packages gij-3.2 depends on: ii gcc-3.2-base 1:3.2.2-0pre0 The GNU Compiler Collection (base ii libc6 2.3.1-5 GNU C Library: Shared libraries an ii libgcc1 1:3.2.2-0pre0 GCC support library. ii libgcj3 1:3.2.2-0pre0 Java runtime library for use with ii zlib1g 1:1.1.4-8 compression library - runtime -- no debconf information
Script started on Fri Dec 6 11:09:19 2002 agamemnon> pwd /home/pronovic/projects/cvs/libnbio2-java/nbio-2.0/seda/src/seda/nbio/test/test agamemnon> uname -a Linux agamemnon 2.4.18 #1 Sun Jul 28 16:52:21 CDT 2002 i686 unknown unknown GNU/Linux agamemnon> echo $CLASSPATH /usr/share/java/nbio2.jar:. agamemnon> echo $LD_LIBRARY_PATH /usr/lib/java/jni-1.2 agamemnon> which gcc-3.2 /usr/bin/gcc-3.2 agamemnon> gcc-3.2 -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.2 20021202 (Debian prerelease) agamemnon> ls -l /etc/alternatives/javac lrwxrwxrwx 1 root root 24 2002-12-04 18:44 /etc/alternatives/javac -> /usr/bin/gcj-wrapper-3.2* agamemnon> gcj-3.2 -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/../../../libgcj.spec rename spec lib to liborig Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.2 20021202 (Debian prerelease) agamemnon> ls -l /etc/alternatives/java lrwxrwxrwx 1 root root 23 2002-12-06 11:04 /etc/alternatives/java -> /usr/lib/kaffe/bin/java* agamemnon> kaffe -version Kaffe Virtual Machine Copyright (c) 1996-2002 Kaffe.org project contributors (please see the source code for a full list of contributors). All rights reservced. Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc. The Kaffe virtual machine is free software, licensed under the terms of the GNU General Public License. Kaffe.org is a an independent, free software community project, not directly affiliated with Transvirtual Technologies, Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes with ABSOLUTELY NO WARRANTY. Engine: Just-in-time Version: 1.0.7 Java Version: 1.1 agamemnon> ls -l /usr/bin/gij ls: /usr/bin/gij: No such file or directory agamemnon> ls -l /usr/bin/gij-3.2 -rwxr-xr-x 1 root root 6640 2002-12-03 11:29 /usr/bin/gij-3.2* agamemnon> gij-3.2 --version gij (GNU libgcj) version 3.2.2 20021202 (Debian prerelease) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. agamemnon> ldd $(which gij-3.2) libgcj.so.3 => /usr/lib/libgcj.so.3 (0x4001d000) libpthread.so.0 => /lib/libpthread.so.0 (0x40610000) libdl.so.2 => /lib/libdl.so.2 (0x40660000) libz.so.1 => /lib/libz.so.1 (0x40663000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40671000) libc.so.6 => /lib/libc.so.6 (0x40679000) libm.so.6 => /lib/libm.so.6 (0x4078c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) agamemnon> make clean cleaning seda/nbio/test/test agamemnon> make ... seda/nbio/test/test javac BlockingClient.java javac BlockingServer.java javac NBIOClient.java javac NBIOSelectServer.java javac NBIOServer.java agamemnon> java NBIOSelectServer NBIO server starting... SelectSet: Using poll(2) Waiting for connection... agamemnon> gij-3.2 NBIOSelectServer NBIO server starting... Exception in thread "main" java.lang.UnsatisfiedLinkError: NBIO: Cannot resolve field buf ([B) in nbio_init_fids() -- this is a bug, please contact <[EMAIL PROTECTED] at 0x40268207: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3) at 0x4025b10a: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3) at 0x4025cb96: java.lang.LinkageError.LinkageError(java.lang.String) (/usr/lib/libgcj.so.3) at 0x402684da: java.lang.UnsatisfiedLinkError.UnsatisfiedLinkError(java.lang.String) (/usr/lib/libgcj.so.3) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386806: ffi_call (/usr/lib/libgcj.so.3) at 0x40252dc4: _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], jvalue, jvalue) (/usr/lib/libgcj.so.3) at 0x402530af: _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.3) at 0x402519c1: java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (/usr/lib/libgcj.so.3) at 0x4022310b: ?? (??:0) at 0x4001351c: ?? (??:0) at 0x40013ae3: Java_seda_nbio_NonblockingSocketImpl_nbSocketCreate (/usr/lib/java/jni-1.2/libNBIO2.so) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386a9f: ffi_raw_call (/usr/lib/libgcj.so.3) at 0x402247db: _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.3) at 0x40386990: ?? (??:0) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386a9f: ffi_raw_call (/usr/lib/libgcj.so.3) at 0x40233280: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x40233a4c: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x4023112d: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.3) at 0x40386990: ?? (??:0) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386a9f: ffi_raw_call (/usr/lib/libgcj.so.3) at 0x40233280: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x40233a4c: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x4023112d: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.3) at 0x40386990: ?? (??:0) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386a9f: ffi_raw_call (/usr/lib/libgcj.so.3) at 0x40233280: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x40233a4c: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x4023112d: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.3) at 0x40386990: ?? (??:0) at 0x40386ad7: ffi_call_SYSV (/usr/lib/libgcj.so.3) at 0x40386a9f: ffi_raw_call (/usr/lib/libgcj.so.3) at 0x40233280: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x40233a4c: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3) at 0x4023112d: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.3) at 0x40386990: ?? (??:0) at 0x4024470e: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/libgcj.so.3) at 0x402adce9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3) at 0x4024fd9a: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3) at 0x40222370: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3) at 0x08048920: ?? (??:0) at 0x4068ea5f: __libc_start_main (/lib/libc.so.6) at 0x080486e9: ?? (??:0) agamemnon> ^D Script done on Fri Dec 6 11:11:14 2002