Skip to content

crypt_data namespace collision #175

@jhgit

Description

@jhgit

For some operating systems, such as FreeBSD, struct crypt_data is defined in the unistd.h system header.

In the error output below, libxcrypt's crypt.h is in /usr/local/include...

In file included from ../src/libaccountsservice/act-user.c:30:
/usr/local/include/crypt.h:73:8: error: redefinition of 'crypt_data'
struct crypt_data
^
/usr/include/unistd.h:489:8: note: previous definition is here
struct crypt_data {
^

I don't have a good solution yet. One possibility might be to rename crypt_data in libxcrypt to something else (xcrypt_data, for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed to be a bug in libxcrypt.need more informationWe cannot do anything about this issue until we have more information.os-freebsdIssues specific to FreeBSD.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions