title: Linux user-space application compilation error
body: <p>I am a newbie to linux kernel/system development. </p>
  
  <p>Below is the Makefile i am using to compile my application</p>
  
  <pre><code>CROSS_COMPILE   ?=
  KERNEL_DIR  ?= /usr/src/linux
  
  CC      := $(CROSS_COMPILE)gcc
  KERNEL_INCLUDE  := -I/usr/include
  CFLAGS      := -W -Wall -g $(KERNEL_INCLUDE)
  LDFLAGS     := -g
  
  all: finder-drv
  
  finder-drv: finder.o
      $(CC) $(LDFLAGS) -o $@ $^
  
  clean:
      rm -f *.o
      rm -f finder
  </code></pre>
  
  <p>I am getting the following the error:</p>
  
  <pre><code>/usr/include/arm-linux-gnueabi/sys/ioctl.h:22:22: fatal error: features.h: No such file or directory
  </code></pre>
  
  <p>I don't know why the features.h is missing. </p>
  
  <p>This problem came after i run the following command:</p>
  
  <pre><code>make headers_install INSTALL_HDR_PATH=/usr
  </code></pre>
  
  <p>Can anyone tell me how to fix the issue and correctly link/use kernel header files in a user-space appliation?</p>