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

From: Alexander Viro (
Date: Thu May 02 2002 - 21:31:41 EST

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...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:18 EST