Red Hat Bugzilla – Bug 69737
more missing kernel header files
Last modified: 2007-04-18 12:44:27 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.51 [en] (WinNT; U)
Description of problem:
Installed glibc-kernheaders-2.4-7.16.i386.rpm to fix problem with msr.h.
Now have a problem with asm/pgtable.h including asm/fixmap.h which doesn't exist in asm-i386
Also, linux/delay.h includes asm/delay.h which doesn't exist in asm-i386
Also, asm-i386 does not contain uaccess.h
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. ls /usr/include/asm/fixmap.h
2. ls /usr/include/asm/uaccess.h
linux/delay.h contains NO userspace usable code... why on earth does someone
same for asm/pgtable.h....
asm/pgtable.h is included by linux/vmalloc.h
but linux/vmalloc.h is also very much a kernel-internal header that contains
zero userspace usable parts...
The software being built is a driver that was delivered with a pci card. The driver builds fine on an older linux system. Even if the include for vmalloc.h is commented
out (which it needs for vfree), there is still the problem with uaccess.h which is needed for put_user().
Oh you're compiling a KERNEL file?
Why on earth are you using glibc headers then? That'll never work!
the kernel headers can be found in
assuming you have the kernel-source rpm instaled.
Changed the makefile to use the kernel headers. All is well, thanks.