Hi,
I was attempting to use HawJNI for a small project that needs to be portable among a variety of Linux platforms, include x86 32/64 as well as Power Linux 32/64. I had a concern about the power platform because I noticed that internally the shared libraries are referred to simply as Linux64 and Linux32 for x86 based builds. Won't this lead to problems for non-x86 Linux platforms (power, ARM, etc.)? I tried to test this myself, but my code wouldn't compile on power due to the following error:
[INFO] src/hawtjni-callback.c:487: warning: cast from pointer to integer of different size
[INFO] src/hawtjni-callback.c:487: error: initializer element is not constant
(hundreds and hundreds of them).
This is with:
Prefix.........: /usr/local
C Compiler.....: gcc -g -O2 -I/opt/ibm/db2/V10.6/java/jdk64/include -I/opt/ibm/db2/V10.6/java/jdk64/include/linux
Linker.........: /usr/bin/ld -m elf64ppc -release 1.0.0-SNAPSHOT
gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If I have time, I'll try to chase down why this is happening, but I first wanted to know if I even get this built, will the dll produced also be placed in Linux64 instead of a more paltform specific location?
Thanks!
-scott