[Sablevm-developer] Weird link error on FreeBSD
Brought to you by:
egagnon
From: Archie C. <ar...@de...> - 2002-08-16 20:30:15
|
Hi, First of all, if anyone else on this lists is interested in running SableVM on FreeBSD, please feel free to offer suggestions re the port (I'm the maintainer). The FreeBSD version of SableVM doesn't seem to work correctly and I'm mystified as to why. It might be some kind of obscure libtool problem. In any case, I'd appreciate a sanity check from the Linux crowd. Does this happen to you? Under FreeBSD, running the attached class file (produced with jikes 1.15) gives this output: $ sablevm DoublePrint *** Couldn't bind native method Java_java_io_FileOutputStream_writeInternal *** *** or Java_java_io_FileOutputStream_writeInternal__I_3BII *** *** Couldn't bind native method Java_java_io_FileOutputStream_writeInternal *** *** or Java_java_io_FileOutputStream_writeInternal__I_3BII *** java/lang/UnsatisfiedLinkError But if you comment out the "float f = ..." line, it works just fine.. this seemingly makes no sense of course. However, Float.intBitsToFloat() is a native method that requires loading in the libjava-lang.so shared library. Perhaps this affects SableVM's ability to subsequently load in the libjava-io.so shared library, causing the error above. Any ideas appreciated... Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com |