<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/24/2014 03:16 AM,
<a class="moz-txt-link-abbreviated" href="mailto:linuxchyu@sina.com">linuxchyu@sina.com</a> wrote:<br>
</div>
<blockquote cite="mid:201403241816275856523@sina.com" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20140324181232621250 { }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span><br>
</div>
<div>I was in centos 6.3, and when i used ubuntu, there was no
such error. <br>
</div>
</blockquote>
<br>
You need very recent 3.x kernel in order to compile CRIU. In CentOS<br>
there is 2.6.32 which is way too old to support CRIU, and there's no<br>
fanotify.h in kernel-headers<br>
<br>
<blockquote cite="mid:201403241816275856523@sina.com" type="cite">
<hr style="width: 210px; height: 1px;" color="#b5c4df"
align="left" size="1">
<div><span>
<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE:
10pt">
<div><a class="moz-txt-link-abbreviated" href="mailto:linuxchyu@sina.com">linuxchyu@sina.com</a></div>
</div>
</span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div> </div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE:
12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef;
PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<div><b>From:</b> <a moz-do-not-send="true"
href="mailto:kir@openvz.org">Kir Kolyshkin</a></div>
<div><b>Date:</b> 2014-03-24 11:34</div>
<div><b>To:</b> <a moz-do-not-send="true"
href="mailto:linuxchyu@sina.com">linuxchyu@sina.com</a>;
<a moz-do-not-send="true" href="mailto:criu@openvz.org">criu@openvz.org</a></div>
<div><b>Subject:</b> Re: [CRIU] linux/fanotify.h: No such
file or directory</div>
</div>
</div>
<div>
<div class="FoxDiv20140324181232621250">
<div class="moz-cite-prefix">On 03/23/2014 01:34 AM, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:linuxchyu@sina.com">linuxchyu@sina.com</a>
wrote:<br>
</div>
<blockquote cite="mid:201403231634482850556@sina.com"
type="cite" style="margin-top: 0px;">
<div>Hello everyone ,when i was compiling criu-1.2, some
errors happened:</div>
<div><span></span><span style="font-family: ""
microsoftyaheiui??;font-size:14px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:normal;text-decoration:none;?=""><b><font
color="#ff0000">fsnotify.c:22:28: fatal error:
linux/fanotify.h: No such file or directory </font></b><br>
I want to know where i can find the </span><b
style="font-size: 10.5pt; line-height: 1.5;
background-color: window;"><font color="#ff0000">linux/fanotify.h
</font>,</b><span style="font-size: 10.5pt;
line-height: 1.5; background-color: window;">and i
just cannot find it in /usr/include ,
/usr/local/include and kernel headers.</span></div>
<div><span style="font-size: 10.5pt; line-height: 1.5;
background-color: window;">Thanks very much !</span></div>
<br>
</blockquote>
Most probably you need to install kernel-headers package. If
it's Fedora or Suse, try<br>
<br>
yum install kernel-headers<br>
</div>
</div>
</blockquote>
</blockquote>
<br>
</body>
</html>