Bug 143812

Summary: #include <linux/uinput.h> doesn't work - need 2.6 headers.
Product: [Fedora] Fedora Reporter: Dave Mielke <dave>
Component: glibc-kernheadersAssignee: David Woodhouse <dwmw2>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 3CC: mlists
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-716 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 12:21:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 156322    

Description Dave Mielke 2004-12-28 16:54:45 UTC
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
2.4.20 kernel.

   cat /usr/include/linux/version.h
   #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.

How reproducible:

Every time.

Steps to Reproduce:

1. Create a C source file which contains: #include <linux/uinput.h>

   cat >test.c <<EOF
   #include <linux/input.h>
   #include <linux/uinput.h>
   EOF

2. Compile the test program.

   cc -c test.c

Actual results:

test.c:1:26: linux/uinput.h: No such file or directory

Expected results:

There should be no output from the C compiler (if, of course, as shown above,
<linux/input.h> is included first).

Additional info:

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.

Comment 1 David Woodhouse 2005-04-15 16:38:46 UTC
The numbers in version.h are irrelevant. The lack of uinput.h is now fixed though.

Comment 6 Red Hat Bugzilla 2005-10-05 12:05:57 UTC
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.

http://rhn.redhat.com/errata/RHBA-2005-716.html


Comment 7 Red Hat Bugzilla 2005-10-05 12:21:03 UTC
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.

http://rhn.redhat.com/errata/RHBA-2005-716.html