> From: Mark Thomas [mailto:ma...@apache.org] 
> 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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to