attr/xattr.h conflicts with new glibc sys/xattr.h
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
attr (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Latest eglibc changed its <sys/xattr.h> file to define XATTR_CREATE as a enum:
{
XATTR_CREATE = 1,……………/* set value, fail if attr already exists. */
#define XATTR_CREATE…
XATTR_REPLACE = 2……………/* set value, fail if attr does not exist. */
#define XATTR_REPLACE…
};
But our <attr/xattr.h> conflicts to that as it defines it as a macro:
#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
This leads to build failures like in systemd, which explicitly inclue <attr/xattr.h>, but <sys/xattr.h> gets pulled in through some other include:
In file included from src/core/
/usr/include/
XATTR_CREATE = 1, /* set value, fail if attr already exists. */
See https:/
Status changed to 'Confirmed' because the bug affects multiple users.