Andrew J Glover flexifoil@btinternet.com writes:
/usr/include/linux is supposed to be a symlink to /usr/src/linux/include/linux, isnt it?
No. Never.
If you do that, if you replace your kernel source (eg to start moving to another kernel version or patchset, but not immediately), you could find yourself linking against the wrong kernel headers. Especially if (like me), you have more than one kernel lying around in similar locations. Or what if you decide to delete the kernel source because you broke it badly while hacking it?
On debian, you'll also confuse the kernel-headers package that was installed when you installed your system. I think other distributions have similar packages.
Use the kernel-headers package made by your make-kpkg. You know it makes sense. (Make sure that it's the right one for the kernel, though.)