Skip to contentSkip to conversation

linux 3.6 compile error in samples/seccomp/bpf-helper.c

DISCUSSION Christoph Hellwig 1 participant 1 message Oct 1, 2012

lore
Share & tools
lore
#0 lore raw

Seems like the seccomp example somehow expect linux/seccomp.h to be installed instead of grabbing it from the kernel tree:

/home/hch/work/linux-2.6/samples/seccomp/bpf-direct.c:21:27: fatal error: linux/seccomp.h: No such file or directory compilation terminated.
/home/hch/work/linux-2.6/samples/seccomp/bpf-fancy.c:13:27: fatal error: linux/seccomp.h: No such file or directory compilation terminated. make[4]: *** [samples/seccomp/bpf-direct.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from
/home/hch/work/linux-2.6/samples/seccomp/bpf-helper.c:15:0:
/home/hch/work/linux-2.6/samples/seccomp/bpf-helper.h:20:50: fatal error: linux/seccomp.h: No such file or directory compilation terminated.