Re: kbuild 2.5 is ready for inclusion in the 2.5 kernel

Alexander Viro
2002-05-03T02:31:43Z

On Thu, 2 May 2002, John Covici wrote:

> So what should it point to? I have had more trouble when some Debian
> package made it not a symlink and if I tried to compile something

"some package" being libc6-dev. I.e. the first thing that puts something
in /usr/include...

> which needed correct headers for the version I am using I get very
> strange errors which are hard to diagnose.

Fix your application. The rules are very simple - /usr/include/linux contains
versions of headers used to build libc. If you are linking against libc,
you don't want to have different parts of resulting executable to be
compiled with different versions of these headers. If you want several
definitions from headers of your current kernel - extract them (and make
damn sure that you don't pull a conflict with libc headers).

IOW, create a private header with definitions you need. And you'd better
make sure that stuff you are pulling is stable, obviously - if it changes
from version to version you are going to run into serious trouble at
runtime. "Rebuild whenever you boot into new kernel" is not a good idea...