Bug#216921: Can't compile programs, using kernel headers from experimental libc6-dev
On Tue, Nov 04, 2003 at 05:00:18PM +0100, Jerome De Greef wrote:
> On Tue, Oct 21, 2003 at 02:40:36PM -0400, Daniel Jacobowitz wrote:
> > > /usr/include/linux/list.h:563:2: warning: #warning "don't include kernel
> > > headers in userspace"
> >
> > Have you considered reading that warning again? :) Please do not
> > include kernel headers in user applications. A very small number of
> > them are sanitized for userspace use but most are not.
>
> Hum...
>
> From /usr/share/doc/linux-kernel-headers/README.Debian:
>
> - These headers can not be used to build kernel modules. They're only
> for userspace use.
> [..]
> - These headers should generally not be included directly. It's not a bug
> if you include one directly and something breaks.
>
> They are for userspace use but should not be used :-/
> That's a bit misleading...
"Should not be used _directly_". OK, the language needs some
clarifying.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
Reply to: