jdk14 build failed cause "The <sys/sysctl.h> header is deprecated and will be removed."

David Holmes david.holmes at oracle.com
Tue Sep 8 00:32:12 UTC 2020


Hi,

On 5/08/2020 5:46 pm, 451541695 wrote:
> Hello,  Thanks for providing java for developers.
>   I am trying to build jdk-14 to use, but failed to build.
>   The error is following:
> 
>    My environment:
>       Linux: Ubuntu 20.04.1 LTS
>       autoconfig:
> 
>  I don't know what happened to <sys/sysctl.h>, my Ubuntu version is too high?
> Long for your replying.

sysctl.h is only included on BSD and macOS builds, not Linux. There is 
something strange with your build if you are seeing this error and you 
need to supply more details from the configure log and build log when 
the error occurs.

Cheers,
David




More information about the build-dev mailing list