12

I am trying to perform a little testing of XATTRs. I recompiled my kernel with ALL the XATTRs enabled.

Now, when I include the header of xattrs :

#include <attr/xattr.h>

I receive an error no such file or directory. I am using UBUNTU 11.10 64 bit system, and I cannot understand why XATTRs are not supported ?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Karen Tsirunyan
  • 1,938
  • 6
  • 19
  • 30

2 Answers2

18

Adding support in the kernel doesn't make the header files magically appear on their own! Install libattr1-dev.

0

"attr/xattr.h" was replaced by "sys/xattr.h" so try this instead #include <sys/xattr.h>

jps
  • 1