BZ #132: compilation error with --enable-gc=none

Status fields:

creation_ts:2009-07-24 13:16
component:jni
version:0.99.4
rep_platform:All
op_sys:OpenBSD
bug_status:RESOLVED
resolution:FIXED
reporter:fdruseikis@gmail.com
The macro GCNEW_UNCOLLECTABLE seems to be only defined for --enable-gc=boehm, yet there
are dependencies in jni.c (and other places) on it.

make output:

gmake[4]: Entering directory `/usr/ports/obj/cacao-0.99.4/build-i386/src/native'
/usr/local/bin/libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native -I../..
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/vm/jit/i386
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/vm/jit/i386/openbsd -I../../src
-I/home/hubert/ports/lang/cacao.new/files -I/usr/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include/classpath -I/usr/local/include/classpath -m32
-D__I386__ -D_REENTRANT -O2 -pipe -MT jni.lo -MD -MP -MF .deps/jni.Tpo -c -o jni.lo
/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native/jni.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native -I../..
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/vm/jit/i386
-I/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/vm/jit/i386/openbsd -I../../src
-I/home/hubert/ports/lang/cacao.new/files -I/usr/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include/classpath -I/usr/local/include/classpath -m32
-D__I386__ -D_REENTRANT -O2 -pipe -MT jni.lo -MD -MP -MF .deps/jni.Tpo -c
/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native/jni.c  -fPIC -DPIC -o .libs/jni.o
/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native/jni.c: In function
`_Jv_JNI_NewGlobalRef':
/usr/ports/obj/cacao-0.99.4/cacao-0.99.4/src/native/jni.c:3421: error: syntax error
before "hashtable_global_ref_entry"
gmake[4]: *** [jni.lo] Error 1
gmake[4]: Leaving directory `/usr/ports/obj/cacao-0.99.4/build-i386/src/native'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/obj/cacao-0.99.4/build-i386/src/native'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/obj/cacao-0.99.4/build-i386/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/obj/cacao-0.99.4/build-i386'
gmake: *** [all] Error 2
*** Error code 2

Comment #1 by stefan@complang.tuwien.ac.at on 2009-08-08 16:48:35

I'm actually quite surprised that it works with the development version, but it does.

Comment #2 by stefan@complang.tuwien.ac.at on 2009-08-08 18:30:33

http://mips.complang.tuwien.ac.at/hg/cacao/rev/fa5c11684dd1