RE: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-14 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[email protected]] 
> Subject: Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds
available

> 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.

These are the two usual places that declare the timespec struct:
/usr/include/time.h
/usr/include/linux/time.h

Unfortunately, they use different tags to see if timespec has already been
declared, so the conflict is probably coming from those.  If you put this:

#define _LINUX_TIME_H

somewhere early in the source code, it should prevent the inclusion of
linux/time.h, which you probably don't want anyway.

  - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.



smime.p7s
Description: S/MIME cryptographic signature


Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-14 Thread Mark Thomas
On 10/11/2018 11:00, Mark Thomas wrote:



> 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: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

On 11/9/18 07:38, Mark Thomas wrote:
> On 09/11/2018 10:57, Rory O'Donnell wrote:
> 
> 
> 
>> *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).

Yeah, it looks like Java finally decided to implement .NET's "IJW"[1].

Only about a hundred years too late. :(

- -chris

[1] https://www.codeproject.com/Articles/2234/Using-IJW-in-Managed-C
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvnOvAACgkQHPApP6U8
pFiX0hAAhsenry6/s5hBfKjlAGuxckCwQy567wULgPSGtq287t8VKxmWidA5/SX0
kiyo4Nla3wFJhiKPEBpo/t2V8LIOaWuQf56whAGaetWgDkINtpNBQRzOFZN4TnFC
7xO4RztZJCKTbtsoWzMePnJB3GZ//SlOAkqbjZHevv1rsBTsyk6iuqykK8YNZTPg
Cv0VOeFUL5XHAt8r9VpOIwNdYl1JCu/pdX/LuFUI5/9cFQN3qD98g5ueS/7T6Ep6
dsh5v1D9yknHZ7RqzEpnbko5x/nqkW+uH4pQ6yiGrn8V02eZ/p4fCZ7VkU/IF2C0
e5TcvYvVHHqcv3VbHTwoGRWyp1hM7YYmA0iUyYKuHaGdt6GAK8XPbMgA2BqXpZlF
2xQ2fSmtCJd1d9gPiRFxKxdyLguU9uHExLA7HL0YJSa71z7my6Ju+nGsYNUCDmOO
luPv5EXrf4bA1MN6dyhVvdQrf8BPtvnPySTPQ48tqPQAfEXMLZ++YCpmB7v5LGm2
Z/z0YfL89Dgi9dlpL/UWFc9QAGcDugYcu6lGQZ6jaD+4buyXrruUtYxMvHSPBoMo
GoUfpFk4il00BS/J1JeH/djPiIkdqqtnmEnVkLMrk94PbmNZgB+moBtSdVNqVao7
qHrPRHj1oyocZOBCQx+nob6GWiuB7MRq1fzIQenuw0Aty7kqKfg=
=GVki
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-10 Thread Mark Thomas
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:
>>
>> 
>>
>>> *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: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-09 Thread Mark Thomas
On 09/11/2018 12:38, Mark Thomas wrote:
> On 09/11/2018 10:57, Rory O'Donnell wrote:
> 
> 
> 
>> *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'


Mark

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-09 Thread Rory O'Donnell

Thanks for the update Mark!

On 09/11/2018 14:05, Mark Thomas wrote:

On 09/11/2018 10:57, Rory O'Donnell wrote:

Hi Mark,

*JDK 12 Early Access build 19 is available at : - jdk.java.net/12/*

Built Tomcat 9.0.x and an all the unit tests. All passed.

Mark

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-09 Thread Mark Thomas
On 09/11/2018 10:57, Rory O'Donnell wrote:
> Hi Mark,
> 
> *JDK 12 Early Access build 19 is available at : - jdk.java.net/12/*

Built Tomcat 9.0.x and an all the unit tests. All passed.

Mark

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: JDK 12 , JDK 8u202 & Project Panama Early-Access builds available

2018-11-09 Thread Mark Thomas
On 09/11/2018 10:57, Rory O'Donnell wrote:



> *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.

Mark

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]