[CRIU] build error on old distros

Cyrill Gorcunov gorcunov at openvz.org
Sat Feb 16 04:47:27 EST 2013


On Sat, Feb 16, 2013 at 05:25:51PM +0800, Qiang Huang wrote:
> 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
> ...

"make headers_install" from linux-cr kernel source code, and then
copy headers generated from kernel-source-root/usr into proper place.

> 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?
>

I've been proposing

http://lists.openvz.org/pipermail/criu/2013-January/006733.html

but i think at moment we're targeted to newish glibc versions.


More information about the CRIU mailing list