CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h HOSTCC samples/hidraw/hid-example In file included from /usr/include/sys/time.h:31, from /usr/include/linux/input.h:12, from samples/hidraw/hid-example.c:14: /usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’ /usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here In file included from /usr/include/linux/input.h:14, from samples/hidraw/hid-example.c:14: /usr/include/sys/types.h:46: error: conflicting types for ‘loff_t’ /usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’ /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here In file included from /usr/include/sys/types.h:133, from /usr/include/linux/input.h:14, from samples/hidraw/hid-example.c:14: /usr/include/time.h:105: error: conflicting types for ‘timer_t’ /usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here In file included from /usr/include/linux/input.h:14, from samples/hidraw/hid-example.c:14: /usr/include/sys/types.h:198: error: conflicting types for ‘int64_t’ /usr/include/linux/types.h:98: error: previous declaration of ‘int64_t’ was here /usr/include/sys/types.h:204: error: conflicting types for ‘u_int64_t’ /usr/include/linux/types.h:97: error: previous declaration of ‘u_int64_t’ was here In file included from /usr/include/linux/input.h:14, from samples/hidraw/hid-example.c:14: /usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’ /usr/include/linux/types.h:114: error: previous declaration of ‘blkcnt_t’ was here samples/hidraw/hid-example.c:15:26: error: linux/hidraw.h: No such file or directory samples/hidraw/hid-example.c: In function ‘main’: samples/hidraw/hid-example.c:48: error: storage size of ‘rpt_desc’ isn’t known samples/hidraw/hid-example.c:49: error: storage size of ‘info’ isn’t known samples/hidraw/hid-example.c:65: error: ‘HIDIOCGRDESCSIZE’ undeclared (first use in this function) samples/hidraw/hid-example.c:65: error: (Each undeclared identifier is reported only once samples/hidraw/hid-example.c:65: error: for each function it appears in.) samples/hidraw/hid-example.c:73: error: ‘HIDIOCGRDESC’ undeclared (first use in this function) samples/hidraw/hid-example.c:84: warning: implicit declaration of function ‘HIDIOCGRAWNAME’ samples/hidraw/hid-example.c:91: warning: implicit declaration of function ‘HIDIOCGRAWPHYS’ samples/hidraw/hid-example.c:98: error: ‘HIDIOCGRAWINFO’ undeclared (first use in this function) samples/hidraw/hid-example.c:49: warning: unused variable ‘info’ samples/hidraw/hid-example.c:48: warning: unused variable ‘rpt_desc’ samples/hidraw/hid-example.c: In function ‘bus_str’: samples/hidraw/hid-example.c:171: error: ‘BUS_VIRTUAL’ undeclared (first use in this function) make[2]: *** [samples/hidraw/hid-example] Error 1 make[1]: *** [samples/hidraw] Error 2 make: *** [vmlinux] Error 2 [root@xen-host00 linux-3.2.9]# rpm -qa | grep kernel kernel-headers-2.6.18-274.18.1.el5 kernel-xen-2.6.18-274.18.1.el5 kernel-2.6.18-274.el5 [root@xen-host00 linux-3.2.9]# rpm -qf /usr/include/linux/types.h kernel-headers-2.6.18-274.18.1.el5 [root@xen-host00 linux-3.2.9]# rpm -e kernel-headers-2.6.18 error: Failed dependencies: kernel-headers is needed by (installed) glibc-headers-2.5-65.el5_7.3.x86_64 kernel-headers >= 2.2.1 is needed by (installed) glibc-headers-2.5-65.el5_7.3.x86_64 [root@xen-host00 linux-3.2.9]# rpm -e glibc-headers error: Failed dependencies: glibc-headers is needed by (installed) glibc-devel-2.5-65.el5_7.3.x86_64 glibc-headers = 2.5-65.el5_7.3 is needed by (installed) glibc-devel-2.5-65.el5_7.3.x86_64