Skip to content

readdir_r is deprecated in glibc 2.24, causes haka to no longer compile #41

@rigelk

Description

@rigelk

Greetings everyone. Trying to compile Haka, I faced this:

capture d ecran de 2016-11-27 15-27-17

glibc-2.24 (released Aug 5, 2016) has deprecated readdir_r and readdir64_r in favor of plain readdir and readdir64. The reasons are discussed on the updated manpage(3) and can be found on lwn as well.

From libc manual:

In POSIX.1-2008, readdir is not thread-safe. In the GNU C Library implementation, it is safe to call readdir concurrently on different dirstreams, but multiple threads accessing the same dirstream result in undefined behavior. readdir_r is a fully thread-safe alternative, but suffers from poor portability (see below). It is recommended that you use readdir, with external locking if multiple threads access the same dirstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions