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