Bug#216921: Can't compile programs, using kernel headers from experimental libc6-dev
On Tue, Oct 21, 2003 at 02:40:36PM -0400, Daniel Jacobowitz wrote:
> On Tue, Oct 21, 2003 at 10:03:56PM +0400, Dmitry Baryshkov wrote:
> > Package: libc6-dev
> > Version: 2.3.2.ds1-5
> > Severity: normal
> >
> >
> > If program, that I'm trying to compile is using kernel headers (such as
> > linux/fb.h, linux/videodev.h, etc.), compilation fails
> > (using gcc-3.3 version 1:3.3.2-1):
>
> Yes.
>
> > /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.
>
> This is not a bug.
It IS a bug. Some programs (i.e. MPlayer) used (and use) them to in compilation.
This worked with previous versions of libc, but doesn't work now. If this is
a 'feature', then what do you recommed? Duplicate info from this headers and
include it in program's sources? IIUC - that's why such headers exists in
libc6-dev package - to let programs to use them, isn't it?
--
With best wishes
Dmitry Baryshkov
Reply to: