Re: FC3rc5 : how to regen 2.6.9-1.649 kernel tree from kernel-2.6.9-1.649.src.rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]