Problem compiling libselinux 1.26
# make make -C src make[1]: Entering directory `/tmp/libselinux-1.26/src' gcc -s -O3 -march=i686 -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o fgetfilecon.o fgetfilecon.c fgetfilecon.c:6:23: sys/xattr.h: No such file or directory make[1]: *** [fgetfilecon.o] Error 1 make[1]: Leaving directory `/tmp/libselinux-1.26/src' make: *** [all] Error 2
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Pierre
# make make -C src make[1]: Entering directory `/tmp/libselinux-1.26/src' gcc -s -O3 -march=i686 -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o fgetfilecon.o fgetfilecon.c fgetfilecon.c:6:23: sys/xattr.h: No such file or directory make[1]: *** [fgetfilecon.o] Error 1 make[1]: Leaving directory `/tmp/libselinux-1.26/src' make: *** [all] Error 2
You need the file-system extended attributes related header files, but you lack of them for some reason.
You can try to get them from http://sosdg.org/~coywolf/lxr/source/ or re-install your kernel headers packages, or just get updated ones.
I hope it helps ;)
Cheers,
Signature · 2 lines
Lorenzo Hernández García-Hierro <[email protected]> [1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]
Quoted 13 lines · Lorenzo Hernández García-Hierro
Quoted 9 lines · Pierre
# make make -C src make[1]: Entering directory `/tmp/libselinux-1.26/src' gcc -s -O3 -march=i686 -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o fgetfilecon.o fgetfilecon.c fgetfilecon.c:6:23: sys/xattr.h: No such file or directory make[1]: *** [fgetfilecon.o] Error 1 make[1]: Leaving directory `/tmp/libselinux-1.26/src' make: *** [all] Error 2
Quoted 5 lines
You need the file-system extended attributes related header files, but you lack of them for some reason.
You can try to get them from http://sosdg.org/~coywolf/lxr/source/ or re-install your kernel headers packages, or just get updated ones.
Which software is providing these headers ? glibc ?
Signature · 7 lines
Pierre. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Pierre
# make make -C src make[1]: Entering directory `/tmp/libselinux-1.26/src' gcc -s -O3 -march=i686 -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o fgetfilecon.o fgetfilecon.c fgetfilecon.c:6:23: sys/xattr.h: No such file or directory make[1]: *** [fgetfilecon.o] Error 1 make[1]: Leaving directory `/tmp/libselinux-1.26/src' make: *** [all] Error 2
If you have a modern glibc (>= 2.3) built against modern kernel headers (>= 2.4.20, or any 2.6 kernel), then getxattr/setxattr and sys/xattr.h should be provided by glibc. Previously, they were provided by libattr, with its header in attr/xattr.h, but since the xattr system calls were mainstreamed, glibc has been supporting them directly.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.