On 10/11/2018 11:00, Mark Thomas wrote: <snip/>
> Thanks to some off-list help from Chuck, I have been able to make some > progress on this. The following: > > /opt/java/openjdk-12-panama-b0/bin/jextract \ > -I include \ > -I /usr/lib/gcc/x86_64-linux-gnu/7.3.0/include \ > -I /usr/include/linux \ > include/openssl/rand.h > > creates rand.h.jar > > Next up is figuring out how to use this jar and testing how portable it is. Hmm. What is produced is just a set of interfaces with some constants. I can't see anything that results in a call to native code. I'm not sure if this is something I've done wrong, a limitation of the early release or something else. I tried using a different header file with (hopefully) more functionality: /opt/java/openjdk-12-panama-b0/bin/jextract \ -I include \ -I /usr/lib/gcc/x86_64-linux-gnu/7.3.0/include \ -I /usr/include/linux \ -t org.openssl \ include/openssl/crypto.h and I get: /usr/include/linux/time.h:10:8: error: redefinition of 'timespec' /usr/include/linux/time.h:10:8: error: redefinition of 'timespec' It isn't immediately obvious to me where timespec is redefined - else I'd tweak the relevant header file. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org