Building openjdk with glibc >= 2.24
david.holmes at oracle.com
Mon Apr 9 06:11:55 UTC 2018
Already being discussed on the build-dev list. See:
On 9/04/2018 7:53 AM, Jan Schlößin wrote:
> Hello List,
> I tried to compile openjdk (from hg.openjdk.java.net/jdk/jdk) on my
> linux box (current changeset 8bdf2b5f472d). I succeeded after using
> --disable-warnings-as-errors with the configure script. The reason is
> that some files are referencing readdir_r and readdir64_r despite been
> deprecated with glibc 2.24 in mid 2016!!!
> Deprecated functions are not going away necessarily. But since you are
> treating deprecation warnings as errors by default it might be a good
> idea to use readdir and readdir64 in favor to the deprecated ones or
> don't treat deprecation warnings as errors in the first place.
> It would be nice to have openjdk build on a decent linux system like it
> is described in doc/build.html.
> I think the functions have been deprecated because the plain readdir
> version (without *_r) became reentrant, too. But I'm not sure about it.
More information about the jdk-dev