Hi,<br> <br>    I try to define a new system call in the kernel for experimental purpose. After hack the kernel code, I remade the kernel code. But the new system call number is declacred in kernel header &#39;asm/unistd.h&#39;. For the sake of reference by applications, it is necessary to install the kernel headers into /usr/include.<br>
<br><div>    I used the following commands to do that:</div><div><br>                        make headers_install INSTALL_HDR_PATH=/usr</div><div><br></div><div>Some messages appeared like this:</div><div><br></div><div><div>
<div style="font-family:Tahoma;text-align:-webkit-auto"><font face="Courier New">CHK     include/linux/version.h<br>
make[1]: `scripts/unifdef&#39; is up to date.<br>
  REMOVE  include/FlexLexer.h<br>
  REMOVE  include/Imlib.h<br>
  REMOVE  include/Imlib2.h<br>
  REMOVE  include/Imlib_private.h<br>
  REMOVE  include/Imlib_types.h<br>
  REMOVE  include/_G_config.h<br>
  REMOVE  include/a.out.h<br>
  REMOVE  include/aio.h<br></font></div><div style="font-family:Tahoma;text-align:-webkit-auto"><font face="Courier New">     ...  ...   ...</font></div></div></div><div style="font-family:Tahoma;text-align:-webkit-auto">
<font face="Courier New"><br></font></div><div style="font-family:Tahoma;text-align:-webkit-auto"><font face="Courier New">It seems that some original headers in /usr/include was removed. My next &#39;make&#39; in kernel code failed. I think the standard headers was destoried at all. </font></div>
<div style="font-family:Tahoma;text-align:-webkit-auto"><font face="Courier New"><br></font></div><div style="text-align:-webkit-auto"><font face="Courier New">I tried to install kernel headers in another Linux in another way:</font></div>
<div style="text-align:-webkit-auto"><br></div><div style="text-align:-webkit-auto">                             make headers_install</div><div style="text-align:-webkit-auto">                             cp -r usr/include/* /usr/include</div>
<div style="text-align:-webkit-auto">Then, it&#39;s ok.</div><div style="text-align:-webkit-auto"><br></div><div style="text-align:-webkit-auto">I wonder why the first way can cause some headers in /usr/include was removed. Mybe the kernel headers can not install directly like the first way.</div>
<div style="text-align:-webkit-auto"><br></div><div style="text-align:-webkit-auto"><br></div><div style="text-align:-webkit-auto"><br></div><div style="text-align:-webkit-auto"><br></div>