Opened 15 years ago
Last modified 14 years ago
#19951 closed defect
db46 fails to build java bindings due to "missing" jni.h — at Initial Version
Reported by: | martin@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | java-bindings include file missing | Cc: | |
Port: | db46 |
Description
Hello,
several versions of the jdk are installed on my computer and jni.h is available. But it is not in the include path, so the following command fails:
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -c -I. -I../dist/.. -I/opt/local/include -O2 -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c /usr/bin/gcc-4.0 -c -I. -I../dist/.. -I/opt/local/include -O2 -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c -fno-common -DPIC -o .libs/db_java_wrap.o
../dist/../libdb_java/db_java_wrap.c:123:17: error: jni.h: No such file or directory
../dist/../libdb_java/db_java_wrap.c:147: error: syntax error before '*' token [...]
My hotfix was to remove the line --enable-java from the ports file.
Regards,
Martin