mkfs.ubifs: <sys/xattr.h>, not <attr/xattr.h>
PATCH 1/1 mkfs.ubifs: <sys/xattr.h>, not <attr/xattr.h>
To be consistent with mkfs.jffs2, and to get this to build on my machine, it looks like we should use <sys/xattr.h>, not <attr/xattr.h>.
Fixes this error, seen on an Ubuntu 14.04 build system:
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:30:24: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>
^--- ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +1 -1
@@ -27,7 +27,7 @@#include "common.h" #include <sys/types.h> #ifndef WITHOUT_XATTR -#include <attr/xattr.h> +#include <sys/xattr.h> #endif /* Size (prime number) of hash table for link counting */
Signature · 1 line
2.7.0.rc3.207.g0ac5344
Am 23.01.2016 um 22:31 schrieb Brian Norris:
Quoted 7 lines
To be consistent with mkfs.jffs2, and to get this to build on my machine, it looks like we should use <
sys/xattr.h>, not <attr/xattr.h>.Fixes this error, seen on an Ubuntu 14.04 build system:
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:30:24: fatal error:attr/xattr.h: No such file or directory
#include <attr/xattr.h>
The build fails because you don't have libattr-devel (or however your distro names that package). Switching to sys/xattr.h from glibc-devel seems fine to me as mkfs.ubifs.c is using only basic xattr stuff.
Thanks,
//richard
Brian Norris
AppliedQuoted 11 lines · Richard Weinberger
Am 23.01.2016 um 22:31 schrieb Brian Norris:
Quoted 7 lines
To be consistent with mkfs.jffs2, and to get this to build on my machine, it looks like we should use <
sys/xattr.h>, not <attr/xattr.h>.Fixes this error, seen on an Ubuntu 14.04 build system:
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:30:24: fatal error:attr/xattr.h: No such file or directory
#include <attr/xattr.h>The build fails because you don't have libattr-devel (or however your distro names that package). Switching to
sys/xattr.hfrom glibc-devel seems fine to me asmkfs.ubifs.cis using only basic xattr stuff.
Ah, thanks for the clarification.
Quoted 1 line
Reviewed-by Richard Weinberger <[email protected]>
Pushed to mtd-utils.git.
Brian