XATTR_CREATE and XATTR_REPLACE are missing. "mkerror.sh" doesn't care about "sys/xattr.h". http://man7.org/linux/man-pages/man2/setxattr.2.html