RFR: Backport of 8187667: Disable deprecation warning for readdir_r
Andrew John Hughes
gnu.andrew at redhat.com
Wed May 29 15:43:36 UTC 2019
On 29/05/2019 14:38, guoge (A) wrote:
> I wanted to build jdk8 with gcc 7.3.0, but I got a problem:
>
> error: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated [-Werror=deprecated-declarations]
> if((status = ::readdir_r(dirp, dbuf, &p)) != 0) {
> ^~~~~~~~~
> note: declared here
> extern int readdir_r (DIR *__restrict __dirp,
> ^~~~~~~~~
>
> It seems that the function readdir_r has been deprecated in glibc since version 2.24, and I find the fix had been merged into openjdk7u.
> So, Could we add a baskport to jdk8u?
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8187667
> Patch: http://hg.openjdk.java.net/jdk10/master/rev/f5f2a2d13775
> Openjdk7u Backport: https://bugs.openjdk.java.net/browse/JDK-8199962
>
> Thanks
> Guo Ge
>
I'm currently working on a backport of JDK-8202353 to fix this.
Stay tuned.
Thanks,
--
Andrew :)
Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
https://keybase.io/gnu_andrew
More information about the jdk8u-dev
mailing list