[CRIU] Make failed on Ubuntu 14.04

陈晓 chenxiao_study at 126.com
Wed Feb 24 06:03:55 PST 2016


Hi,
   I get the latest source code of CRIU from github. When I make it on Ubuntu 14.04 server, it generates some error as follows:
  In file included from /workspace/c_c++/criu/criu/arch/x86/include/asm/types.h:10:0,
                 from arch/x86/cpu.c:10:
/workspace/c_c++/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


Thank you. I am looking forward to your reply!
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160224/8f3a4328/attachment-0001.html>


More information about the CRIU mailing list