Red Hat Bugzilla – Bug 12800
/usr/include/asm and /usr/include/linux not present in kernel-headers-2.2.16-3
Last modified: 2008-05-01 11:37:56 EDT
Just installed kernel-2.2.16 and suddenly couldn't compile some stuff.
Found out that /usr/include/asm and /usr/include/linux, which are usually
symlinks, are not present.
To fix this do
ln -sf /usr/src/linux/include/asm /usr/include/asm
ln -sf /usr/src/linux/include/linux /usr/include/linux
BTW thanx for agpgart, but I think a RPM of 2.2.16 should have been out
If you do a force install of the kernel-headers RPM after you've already
upgraded it then it works around this bug. As far as the bug itself is
concerned, this is an RPM packaging error that will be addressed in the next
kernel-headers rpm package.
There's another one: there's no /boot/kernel.h, only /boot/kernel-2.2.16. I
suppose this one should be symlinked too. BTW I think it's easier (and more
correct) to do a few ln -sf 's instead of forcing a reinstall.