[MacPorts] #19951: db46 fails to build java bindings due to "missing" jni.h
MacPorts
noreply at macports.org
Mon Jun 15 08:44:18 PDT 2009
#19951: db46 fails to build java bindings due to "missing" jni.h
------------------------------------------------+---------------------------
Reporter: martin@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: java-bindings include file missing | Port: db46
------------------------------------------------+---------------------------
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
--
Ticket URL: <http://trac.macports.org/ticket/19951>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list