On 09/11/2018 18:54, Mark Thomas wrote:
> On 09/11/2018 12:38, Mark Thomas wrote:
>> On 09/11/2018 10:57, Rory O'Donnell wrote:
>>
>> <snip/>
>>
>>> *Project Panama Early-Access build 0 ***is available at : -
>>> http://jdk.java.net/panama/
>>
>> This looks interesting. If I am reading the information correctly, it
>> could reduce the scope of Tomcat Native or even remove it completely
>> (assuming we dropped the APR connector).
>>
>> I'm going to try experimenting with it and I'll report back.
> 
> No joy. I suspect my lack of C knowledge is holding me back. I'm trying
> this in an OpenSSL build directory:
> 
> /opt/java/openjdk-12-panama-b0/bin/jextract \
>    -I /usr/include/linux \
>    -I include \
>    include/openssl/rand.h
> 
> and getting
> 
> /usr/include/stdlib.h:97:8: error: unknown type name 'size_t'

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.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to