[Haskell-cafe] JVM-Bridge with Kaffe
John Goerzen
jgoerzen at complete.org
Sat Jan 29 12:32:38 EST 2005
Hello,
I am attempting to package up the JVM bridge for Debian. As such, I am
limited to the purely Free JVM's available within Debian. They include
Kaffe, SableVM, GCJ/GIJ, and the Jikes compiler available for most of
the above.
I could not convince jvm-bridge's Native/configure to even see a gcj
environment.
Kaffe worked (after updating the include path to
/usr/lib/kaffe/include). However, when I tried to start the compile:
g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/kaffe/include/ -DVM_KAFFE
-O3 -W -Wall -fno-rtti -g -O2 -MT JVMBridge.lo -MD -MP -MF
.deps/JVMBridge.Tpo -c JVMBridge.cpp -fPIC -DPIC -o .libs/JVMBridge.o
JVMBridge.cpp: In function `JNIEnv*
JVMBridge_AttachCurrentThread(JavaVM*)':
JVMBridge.cpp:57: error: invalid conversion from `JNIEnv**' to `void**'
JVMBridge.cpp: In function `jboolean*
JVMBridge_GetBooleanArrayRegion(JNIEnv*,
_jobject*, int, int)':
JVMBridge.cpp:239: warning: unused variable `jboolean foo'
JVMBridge.cpp: In function `_jobject* JVMBridge_DefineClass(JNIEnv*,
const
char*, _jobject*, const jbyte*, int)':
JVMBridge.cpp:1187: warning: ignoring #pragma unused
JVMBridge.cpp:1188: error: no matching function for call to
`_Jv_JNIEnv::
DefineClass(_jobject*&, const jbyte*&, jsize&)'
/usr/lib/kaffe/include/jni.h:498: error: candidates are: _jclass*
_Jv_JNIEnv::DefineClass(const char*, _jobject*, const jbyte*, int)
make[2]: *** [JVMBridge.lo] Error 1
This is jvm-bridge 0.3 and kaffe 1.1.4 (Debian version 1.1.4PRECVS6-1).
Thanks,
--
John Goerzen
Author, Foundations of Python Network Programming
http://www.amazon.com/exec/obidos/tg/detail/-/1590593715
More information about the Haskell-Cafe
mailing list