[CRIU] seccomp zdtm tests compilation error

Pavel Emelyanov xemul at parallels.com
Mon Nov 30 01:46:27 PST 2015


On 11/27/2015 03:51 PM, Pavel Emelyanov wrote:
> Applied, thanks :)

Now another error :(

cc -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -iquote ../../lib/arch/x86/include -I../../lib   seccomp_filter_tsync.c ../../lib/libzdtmtst.a  -pthread -o seccomp_filter_tsync
seccomp_filter_tsync.c: In function ‘filter_syscall’:
seccomp_filter_tsync.c:65:14: error: ‘__NR_seccomp’ undeclared (first use in this function)
  if (syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, flags, &bpf_prog) < 0) {
              ^
seccomp_filter_tsync.c:65:14: note: each undeclared identifier is reported only once for each function it appears in
seccomp_filter_tsync.c:65:28: error: ‘SECCOMP_SET_MODE_FILTER’ undeclared (first use in this function)
  if (syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, flags, &bpf_prog) < 0) {
                            ^
seccomp_filter_tsync.c: In function ‘main’:
seccomp_filter_tsync.c:141:35: error: ‘SECCOMP_FILTER_FLAG_TSYNC’ undeclared (first use in this function)
   if (filter_syscall(__NR_ptrace, SECCOMP_FILTER_FLAG_TSYNC) < 0)



More information about the CRIU mailing list