Wow, that's an ant build!
For the record, I needed ant -Ddebug.native=true
For some reason make in native it fails during linking with
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: first field (-
current_version) in argument for: -compatibility_version -
current_version not a proper unsigned number
Reminds me why I came over to Java in the first place!
Cheers
Duncan
On 13 Dec 2007, at 16:01, Timothy Wall wrote:
Since you get *both* a memory error and an invalid struct typedef,
it's possible that something is being prematurely GC'd, or not
properly set up.
Look at init_type in dispatch.c, which is where ffi typecodes are
translated to real ffi types. If the layout is done improperly it
could result in either error.
You might get some mileage by attaching gdb to the java process so
that it can catch the invalid access (recompile the native stuff
with "make DEBUG=true" or "ant -Ddebug=true" to get better source
visibility).
There's a method you can call from gdb that makes the apple VM dump
the java stack, google "apple gdb java stack dump" 'cuz I don't
remember offhand.