[CRIU] build error on old distros

Qiang Huang h.huangqiang at huawei.com
Sat Feb 16 04:25:51 EST 2013


hi all,

I got the latest linux-cr kernel and crtools, and met some build
errors, such like:

fsnotify.c:22:28: error: linux/fanotify.h: No such file or directory
...
and
...
cr-dump.c: In function ‘dump_task_rlims’:
cr-dump.c:271: error: implicit declaration of function ‘prlimit’
...

It seems like they all caused by the old distros, I use RHEL6 and my
gcc and glibc versions are:

[root at hbtest1 include]# gcc --version
gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)

[root at hbtest1 include]# rpm -qa | grep glibc
glibc-devel-2.12-1.7.el6.x86_64
glibc-2.12-1.7.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64


I don't want to change my environment nor do any gcc update, :(
any advice?
Or can we do something to make crtools be more compatible?



More information about the CRIU mailing list