[CRIU] Compile error

Kirill Luchikhin kluchikhin at gmail.com
Mon Feb 22 07:37:14 PST 2016


Hi!

Making of last stable release 1.8 is ok, but when I try to make CRIU 
from repository after git clone I get the following error:

In file included from 
/home/kluchikhin/criu/criu/arch/x86/include/asm/types.h:10:0,
                  from arch/x86/cpu.c:10:
/home/kluchikhin/criu/criu/arch/x86/include/asm/prlimit.h:11:12: error: 
conflicting types for ‘prlimit’
  extern int prlimit(pid_t pid, int resource, const struct rlimit 
*new_rlimit, struct rlimit *old_rlimit);
             ^
In file included from /usr/include/features.h:374:0,
                  from /usr/include/stdio.h:27,
                  from arch/x86/cpu.c:1:
/usr/include/x86_64-linux-gnu/bits/resource.h:313:12: note: previous 
declaration of ‘prlimit’ was here
  extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
             ^
make[2]: *** [arch/x86/cpu.o] Error 1
make[1]: *** [arch/x86/crtools.built-in.o] Error 2
make: *** [criu/criu] Error 2

-- 
Best regards,
Kirill Luchikhin



More information about the CRIU mailing list