Found while cross-compiling with the older kernel cap_file.c: In function 'cap_get_fd': cap_file.c:207:33: error: 'XATTR_NAME_CAPS' undeclared (first use in this function) sizeofcaps = fgetxattr(fildes, XATTR_NAME_CAPS, ^ cap_file.c:207:33: note: each undeclared identifier is reported only once for each function it appears in cap_file.c: In function 'cap_get_file': cap_file.c:237:34: error: 'XATTR_NAME_CAPS' undeclared (first use in this function) sizeofcaps = getxattr(filename, XATTR_NAME_CAPS, ^ cap_file.c: In function 'cap_set_fd': cap_file.c:283:30: error: 'XATTR_NAME_CAPS' undeclared (first use in this function) return fremovexattr(fildes, XATTR_NAME_CAPS); ^ cap_file.c: In function 'cap_set_file': cap_file.c:315:31: error: 'XATTR_NAME_CAPS' undeclared (first use in this function) return removexattr(filename, XATTR_NAME_CAPS); ^ Makefile:78: recipe for target 'cap_file.o' failed make[2]: *** [cap_file.o] Error 1
Created attachment 289941 [details] For old kernels we can manually define the values Copied the patch in the mail
Thanks. Applied: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=f1c3ac995d02d4f17b9d15656ab6d58f4c87435a