RFR: 8179887 - Build failure with glibc >= 2.24: error: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated

Kim Barrett kim.barrett at oracle.com
Tue May 8 18:02:02 UTC 2018

> On May 7, 2018, at 11:20 AM, B. Blaser <bsrbnd at gmail.com> wrote:
> On 7 May 2018 at 14:19, B. Blaser <bsrbnd at gmail.com> wrote:
>> On 6 May 2018 at 18:35, B. Blaser <bsrbnd at gmail.com> wrote:
>>> On 5 May 2018 at 22:26, Kim Barrett <kim.barrett at oracle.com> wrote:
>>>>> On May 5, 2018, at 8:03 AM, B. Blaser <bsrbnd at gmail.com> wrote:
>>>>> On 4 May 2018 at 17:42, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>>>>>> On 04/05/2018 16:31, B. Blaser wrote:
>>>>>>> :
>>>>>>> I'll create a new JBS issue (unless you want to) since the fix is
>>>>>>> mostly located in core-libs and only intended to make the build
>>>>>>> complete.
>>>>>>> But I'll still need someone to review and push the fix, would you be
>>>>>>> interested in doing this?
>>>>>> I think someone needs to explore the behavior on other platforms too as the
>>>>>> #ifndef __linux__ patches are ugly.
>>>>> Yes sure but I cannot test it elsewhere myself... and we can easily
>>>>> remove them once POSIX officially deprecates 'readdir_r' or if someone
>>>>> validates the fix on other systems.
>>>> I'm not sure anyone has the ability to test on all supported.  That
>>>> doesn't (and really can't) prevent making changes across platforms to
>>>> platform-specific code.  It just means one needs to get help with
>>>> testing.  Make the change across platforms, test on those platforms
>>>> one has access to, and ask here for help testing on others.
>>> OK, I'll provide a cross-platform fix to be evaluated on other systems too.
>> Here it is, tier1 is successful on Linux with glibc=2.26.
>> Any feedback on other systems would be very helpful.
> Some more cleanup…

I’ve created https://bugs.openjdk.java.net/browse/JDK-8202794 to cover this.
Suggest switching the subject line.

More information about the core-libs-dev mailing list