FC3rc5 : how to regen 2.6.9-1.649 kernel tree from kernel-2.6.9-1.649.src.rpm
Andrew
cmkrnl at speakeasy.net
Fri Nov 5 16:18:30 UTC 2004
> /usr/src isn't the correct/standard location for programs to be
> compiling against, and hasn't been for years. The correct location
> is:
>
> /lib/modules/`uname-r`/build/include
>
> Note that user space programs should NEVER use kernel headers, either
> in /usr/src or in /lib/modules. Only kernel modules should ever need
> to use /lib/modules.
Although this is implied in your remark, I think it might be helpful to
state it explicitly:
Because kernel headers define interfaces, etc that are *private* to the
kernel and kernel modules. To get the interfaces that are safe and
published and *public* for user space programs the headers in
/lib/modules/`uname -r`/build/include
are the ones to be used for user space programs.
Even open source programs need some privacy :-)
Andrew
More information about the fedora-test-list
mailing list