This version (4.4.0) is not compatible with jdk-11. Adjust MODJAVA_VER to be 1.8 only for now. A newer version of jna exists that is compatible is available.
okay? Index: Makefile =================================================================== RCS file: /cvs/ports/java/jna/Makefile,v retrieving revision 1.27 diff -u -p -u -r1.27 Makefile --- Makefile 12 Jul 2019 20:47:15 -0000 1.27 +++ Makefile 21 Sep 2019 23:10:25 -0000 @@ -7,7 +7,7 @@ GH_ACCOUNT= java-native-access GH_TAGNAME= 4.4.0 CATEGORIES= devel MAINTAINER= Jasper Lievisse Adriaanse <jas...@openbsd.org> -REVISION= 2 +REVISION= 3 HOMEPAGE= https://github.com/java-native-access/jna @@ -15,7 +15,7 @@ HOMEPAGE= https://github.com/java-native PERMIT_PACKAGE= Yes MODULES= java -MODJAVA_VER= 1.8+ +MODJAVA_VER= 1.8 MODJAVA_BUILD= ant # use the system libffi