Red Hat Bugzilla – Bug 143812
#include <linux/uinput.h> doesn't work - need 2.6 headers.
Last modified: 2007-11-30 17:10:57 EST
Description of problem:
Even though Fedora Linux Core 3 is based on the 2.6 kernel, the 2.6 kernel
headers aren't available under "/usr/include/linux/". Those headers are for the
#define UTS_RELEASE "2.4.20"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
Version-Release number of selected component (if applicable):
I'm using glibc-kernheaders-2.4-9.1.87.
Steps to Reproduce:
1. Create a C source file which contains: #include <linux/uinput.h>
cat >test.c <<EOF
2. Compile the test program.
cc -c test.c
test.c:1:26: linux/uinput.h: No such file or directory
There should be no output from the C compiler (if, of course, as shown above,
<linux/input.h> is included first).
My personal workaround is to extract the headers from the .src.rpm for the
kernel which I'm currently running. This, however, isn't a good solution for
autoconf-based packages which expect to find needed headers in standard places.
The numbers in version.h are irrelevant. The lack of uinput.h is now fixed though.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.