Opened 15 years ago

Last modified 14 years ago

#19951 closed defect

db46 fails to build java bindings due to "missing" jni.h — at Version 1

Reported by: martin@… Owned by: blair@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: java-bindings include file missing Cc:
Port: db46

Description (last modified by mf2k (Frank Schima))

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

Change History (1)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to blair@…
Note: See TracTickets for help on using tickets.