[CRIU] Compile error

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 23 08:14:33 PST 2016


On Mon, Feb 22, 2016 at 06:37:14PM +0300, Kirill Luchikhin wrote:
> 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

Thank you! Known issue, working on it.


More information about the CRIU mailing list