Skip to contentSkip to conversation

mkfs.ubifs: <sys/xattr.h>, not <attr/xattr.h>

PATCH In review Brian Norris 2 participants 3 messages Jan 23, 2016 – Jan 25, 2016 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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>
                          ^
Cc Sascha Hauer <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Richard Weinberger <[email protected]>
---
 ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +1 -1
index 27f8d0a160c3..a60052d12c46 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw

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

author Applied
#2 lore raw
Quoted 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.h from glibc-devel seems fine to me as mkfs.ubifs.c is using only basic xattr stuff.

Ah, thanks for the clarification.

Quoted 1 line

Pushed to mtd-utils.git.

Brian