Re: [BUG] compile error in 2.4.19-pre5-ac1

Keith Owens (kaos@ocs.com.au)
Fri, 05 Apr 2002 10:15:54 +1000


On Thu, 4 Apr 2002 18:45:24 -0500 (EST),
Bill Davidsen <davidsen@tmr.com> wrote:
> Note of warning to new Redhat users, for some reason /usr/include/linux
>is a directory instead of a symbolic link to /usr/src/linux/include/linux,
>so changes in includes aren't used. Possibly an artifact of the install on
>that system, but something to note.

That is the way it is meant to be. /usr/include/{linux,asm} do not
point to some random kernel source, they are _copies_ of the kernel
headers at the time that glibc was built and must not change until you
install a new glibc.

User space applications must not rely on including "current" kernel
headers, you do not know which headers would be available when the app
is installed. If a user space app requires kernel information then it
must have its own headers that contain that data. The app must also
cope with being run on newer or older kernels than it was compiled for,
that is, it must handle version skew between user space and kernel
interfaces. If your design requires a user space application including
"current" kernel headers then your design is broken and you are own
your own.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/