Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-04-30 Thread Florian Weimer
On 04/05/2018 03:14 PM, David Holmes wrote: Sure, but "generally unnecessary in multithreaded programs" doesn't quite cut it when it comes to correctness. So we have a couple of obscure cases where readdir_r may do the wrong thing and we have a subset of cases where readdir may be thread-safe

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-04-05 Thread David Holmes
On 5/04/2018 11:05 PM, Magnus Ihse Bursie wrote: I ran into this myself just now... While we could, of course, disable the warning, I wonder if this is the right way to go. It seems to be deprecated for good reasons. See the readdir_r man page:

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-04-05 Thread Magnus Ihse Bursie
I ran into this myself just now... While we could, of course, disable the warning, I wonder if this is the right way to go. It seems to be deprecated for good reasons. See the readdir_r man page: http://man7.org/linux/man-pages/man3/readdir_r.3.html I quote: It is recommended that

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-03-12 Thread Magnus Ihse Bursie
On 2018-03-12 08:02, Thomas Stüfe wrote: Hi all, maybe someone has an idea: I build on a freshly installed Linux instance (MX17), using gcc 6.3.0. I get this error: Creating support/modules_cmds/jdk.pack/unpack200 from 7 file(s)

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-03-12 Thread David Holmes
We already dealt with this in the VM: http://hg.openjdk.java.net/jdk10/master/rev/f5f2a2d13775 by disabling the warning. That suggests to me that this warning must have been disabled in the JDK build too. So perhaps recent flag reworking has modified that. ?? David On 12/03/2018 5:15 PM,

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-03-12 Thread Thomas Stüfe
Thank you for the infos, David, I will keep looking. (This is basically a modern Debian breed, I am surprised this gives me trouble...) ..Thomas On Mon, Mar 12, 2018 at 8:15 AM, David Holmes wrote: > Hi Thomas, > > On 12/03/2018 5:02 PM, Thomas Stüfe wrote: > >> Hi

Re: jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-03-12 Thread David Holmes
Hi Thomas, On 12/03/2018 5:02 PM, Thomas Stüfe wrote: Hi all, maybe someone has an idea: I build on a freshly installed Linux instance (MX17), using gcc 6.3.0. I get this error: Creating support/modules_cmds/jdk.pack/unpack200 from 7 file(s)

jdk build fails due to "warning: ‘readdir_r’ is deprecated"

2018-03-12 Thread Thomas Stüfe
Hi all, maybe someone has an idea: I build on a freshly installed Linux instance (MX17), using gcc 6.3.0. I get this error: Creating support/modules_cmds/jdk.pack/unpack200 from 7 file(s)