[Haskell-cafe] Problems with building haskell-jvm-bridge-0.3.RC1

Dmitri Pissarenko mailing-lists at dapissarenko.com
Mon Jan 31 07:00:18 EST 2005


Hello!

I'm trying to build Haskell-JVM bridge (http://sourceforge.net/projects/jvm-
bridge/) under Windows (cygwin) and with Java 1.5.

I can execute "configure" without errors.

When I execute make, I get a lot of errors.

Due to a limited size of my buffer, I can show you only the last lines of
make's output:

JVMBridge.cpp: In function `jboolean
   JVMBridge_CallNonvirtualBooleanMethodVL(JNIEnv*, _jobject*, _jobject*,
   _jmethodID*, void*)':
JVMBridge.cpp:778: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:779: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:780: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:781: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:783: error: `CallNonvirtualBooleanMethodA' undeclared (first use
   this function)
JVMBridge.cpp:785: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jbyte JVMBridge_CallNonvirtualByteMethodVL(JNIEnv*,

   _jobject*, _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:793: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:794: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:795: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:796: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:798: error: `CallNonvirtualByteMethodA' undeclared (first use
   this function)
JVMBridge.cpp:800: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jchar JVMBridge_CallNonvirtualCharMethodVL(JNIEnv*,

   _jobject*, _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:808: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:809: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:810: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:811: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:813: error: `CallNonvirtualCharMethodA' undeclared (first use
   this function)
JVMBridge.cpp:815: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jshort
   JVMBridge_CallNonvirtualShortMethodVL(JNIEnv*, _jobject*, _jobject*,
   _jmethodID*, void*)':
JVMBridge.cpp:823: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:824: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:825: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:826: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:828: error: `CallNonvirtualShortMethodA' undeclared (first use
   this function)
JVMBridge.cpp:830: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jint JVMBridge_CallNonvirtualIntMethodVL(JNIEnv*,
   _jobject*, _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:838: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:839: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:840: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:841: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:843: error: `CallNonvirtualIntMethodA' undeclared (first use this

   function)
JVMBridge.cpp:845: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: At global scope:
JVMBridge.cpp:850: error: parse error before `*' token
JVMBridge.cpp:853: error: `object' was not declared in this scope
JVMBridge.cpp:853: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:853: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:711: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:853: error: initializer list being treated as compound expression
JVMBridge.cpp:854: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:854: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:853: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:854: error: initializer list being treated as compound expression
JVMBridge.cpp:855: error: `methodID' was not declared in this scope
JVMBridge.cpp:855: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:855: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:854: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:855: error: initializer list being treated as compound expression
JVMBridge.cpp:856: error: `vl' was not declared in this scope
JVMBridge.cpp:856: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:856: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:855: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:856: error: initializer list being treated as compound expression
JVMBridge.cpp:857: error: redefinition of `jvalue*valueArray'
JVMBridge.cpp:712: error: `jvalue*valueArray' previously defined here
JVMBridge.cpp:857: error: `vl' was not declared in this scope
JVMBridge.cpp:858: error: parse error before `=' token
JVMBridge.cpp:860: error: `vl' was not declared in this scope
JVMBridge.cpp:860: error: ISO C++ forbids declaration of `
   JVMBridge_DestroyValueList' with no type
JVMBridge.cpp:860: error: redefinition of `int JVMBridge_DestroyValueList'
JVMBridge.cpp:715: error: `int JVMBridge_DestroyValueList' previously defined
   here
JVMBridge.cpp:861: error: ISO C++ forbids declaration of `DebugShowLong' with
   no type
JVMBridge.cpp:861: error: redefinition of `int DebugShowLong'
JVMBridge.cpp:716: error: `int DebugShowLong' previously defined here
JVMBridge.cpp:861: error: initializer list being treated as compound expression
JVMBridge.cpp:861: error: invalid conversion from `const char*' to `int'
JVMBridge.cpp:862: error: parse error before `return'
JVMBridge.cpp: In function `jfloat
   JVMBridge_CallNonvirtualFloatMethodVL(JNIEnv*, _jobject*, _jobject*,
   _jmethodID*, void*)':
JVMBridge.cpp:868: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:869: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:870: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:871: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:873: error: `CallNonvirtualFloatMethodA' undeclared (first use
   this function)
JVMBridge.cpp:875: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jdouble
   JVMBridge_CallNonvirtualDoubleMethodVL(JNIEnv*, _jobject*, _jobject*,
   _jmethodID*, void*)':
JVMBridge.cpp:883: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:884: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:885: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:886: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:888: error: `CallNonvirtualDoubleMethodA' undeclared (first use
   this function)
JVMBridge.cpp:890: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `_jobject*
   JVMBridge_CallNonvirtualObjectMethodVL(JNIEnv*, _jobject*, _jobject*,
   _jmethodID*, void*)':
JVMBridge.cpp:898: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:899: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:900: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:901: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:903: error: `CallNonvirtualObjectMethodA' undeclared (first use
   this function)
JVMBridge.cpp:905: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `void JVMBridge_CallStaticVoidMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:913: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:914: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:915: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:917: error: `CallStaticVoidMethodA' undeclared (first use this
   function)
JVMBridge.cpp:919: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jboolean
   JVMBridge_CallStaticBooleanMethodVL(JNIEnv*, _jobject*, _jmethodID*, void*)
   ':
JVMBridge.cpp:925: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:926: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:927: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:929: error: `CallStaticBooleanMethodA' undeclared (first use this

   function)
JVMBridge.cpp:931: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jbyte JVMBridge_CallStaticByteMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:939: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:940: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:941: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:943: error: `CallStaticByteMethodA' undeclared (first use this
   function)
JVMBridge.cpp:945: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jchar JVMBridge_CallStaticCharMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:953: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:954: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:955: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:957: error: `CallStaticCharMethodA' undeclared (first use this
   function)
JVMBridge.cpp:959: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jshort JVMBridge_CallStaticShortMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:967: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:968: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:969: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:971: error: `CallStaticShortMethodA' undeclared (first use this
   function)
JVMBridge.cpp:973: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jint JVMBridge_CallStaticIntMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:981: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:982: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:983: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:985: error: `CallStaticIntMethodA' undeclared (first use this
   function)
JVMBridge.cpp:987: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: At global scope:
JVMBridge.cpp:992: error: parse error before `*' token
JVMBridge.cpp:995: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:995: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:856: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:995: error: initializer list being treated as compound expression
JVMBridge.cpp:996: error: `methodID' was not declared in this scope
JVMBridge.cpp:996: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:996: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:995: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:996: error: initializer list being treated as compound expression
JVMBridge.cpp:997: error: `vl' was not declared in this scope
JVMBridge.cpp:997: error: ISO C++ forbids declaration of `DebugShowPointer'
   with no type
JVMBridge.cpp:997: error: redefinition of `int DebugShowPointer'
JVMBridge.cpp:996: error: `int DebugShowPointer' previously defined here
JVMBridge.cpp:997: error: initializer list being treated as compound expression
JVMBridge.cpp:998: error: redefinition of `jvalue*valueArray'
JVMBridge.cpp:857: error: `jvalue*valueArray' previously defined here
JVMBridge.cpp:998: error: `vl' was not declared in this scope
JVMBridge.cpp:999: error: parse error before `=' token
JVMBridge.cpp:1001: error: `vl' was not declared in this scope
JVMBridge.cpp:1001: error: ISO C++ forbids declaration of `
   JVMBridge_DestroyValueList' with no type
JVMBridge.cpp:1001: error: redefinition of `int JVMBridge_DestroyValueList'
JVMBridge.cpp:860: error: `int JVMBridge_DestroyValueList' previously defined
   here
JVMBridge.cpp:1002: error: ISO C++ forbids declaration of `DebugShowLong' with
   no type
JVMBridge.cpp:1002: error: redefinition of `int DebugShowLong'
JVMBridge.cpp:861: error: `int DebugShowLong' previously defined here
JVMBridge.cpp:1002: error: initializer list being treated as compound
   expression
JVMBridge.cpp:1002: error: invalid conversion from `const char*' to `int'
JVMBridge.cpp:1003: error: parse error before `return'
JVMBridge.cpp: In function `jfloat JVMBridge_CallStaticFloatMethodVL(JNIEnv*,
   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:1009: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1010: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1011: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1013: error: `CallStaticFloatMethodA' undeclared (first use this
   function)
JVMBridge.cpp:1015: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jdouble JVMBridge_CallStaticDoubleMethodVL(JNIEnv*,

   _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:1023: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1024: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1025: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1027: error: `CallStaticDoubleMethodA' undeclared (first use this

   function)
JVMBridge.cpp:1029: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `_jobject*
   JVMBridge_CallStaticObjectMethodVL(JNIEnv*, _jobject*, _jmethodID*, void*)':
JVMBridge.cpp:1037: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1038: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1039: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1041: error: `CallStaticObjectMethodA' undeclared (first use this

   function)
JVMBridge.cpp:1043: error: `JVMBridge_DestroyValueList' cannot be used as a
   function
JVMBridge.cpp: In function `jboolean JVMBridge_IsSameObject(JNIEnv*, _jobject*,

   _jobject*)':
JVMBridge.cpp:1051: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1052: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp: In function `jboolean JVMBridge_IsInstanceOf(JNIEnv*, _jobject*,

   _jobject*)':
JVMBridge.cpp:1059: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp:1060: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp: In function `jint JVMBridge_ThrowException(JNIEnv*, _jobject*)':
JVMBridge.cpp:1067: error: `DebugShowPointer' cannot be used as a function
JVMBridge.cpp: In function `jboolean JVMBridge_ExceptionPending(JNIEnv*)':
JVMBridge.cpp:1092: error: `ExceptionCheck' undeclared (first use this
   function)
JVMBridge.cpp: In function `jint JVMBridge_MonitorEnter(JNIEnv*, _jobject*)':
JVMBridge.cpp:1105: error: `MonitorEnter' undeclared (first use this function)
JVMBridge.cpp: In function `jint JVMBridge_MonitorExit(JNIEnv*, _jobject*)':
JVMBridge.cpp:1111: error: `MonitorEnter' undeclared (first use this function)
JVMBridge.cpp: In function `char* JVMBridge_GetStringUTFChars(JNIEnv*,
   _jobject*)':
JVMBridge.cpp:1158: error: `GetStringUTFLength' undeclared (first use this
   function)
JVMBridge.cpp:1162: error: `GetStringUTFRegion' undeclared (first use this
   function)
JVMBridge.cpp:1167: error: `GetStringUTFChars' undeclared (first use this
   function)
JVMBridge.cpp:1170: error: `ReleaseStringUTFChars' undeclared (first use this
   function)
JVMBridge.cpp: In function `jint JVMBridge_GetStringUTFLength(JNIEnv*,
   _jobject*)':
JVMBridge.cpp:1178: error: `GetStringUTFLength' undeclared (first use this
   function)
JVMBridge.cpp: In function `_jobject* JVMBridge_DefineClass(JNIEnv*, const
   char*, _jobject*, const jbyte*, long int)':
JVMBridge.cpp:1192: error: `DebugShowPointer' cannot be used as a function
make[2]: *** [JVMBridge.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/dapWork/temp/downloads/haskell-jvm-
bridg
e-0.3.RC1/Native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/dapWork/temp/downloads/haskell-jvm-
bridg
e-0.3.RC1/Native'
make: *** [all] Error 2

Have you an idea what I can do to fix these errors?

Thanks in advance

Dmitri Pissarenko
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com


More information about the Haskell-Cafe mailing list