This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: capability headers question
- To: Christoph Hellwig <hch at caldera dot de>
- Subject: Re: capability headers question
- From: Andreas Jaeger <aj at suse dot de>
- Date: 22 Apr 2001 21:34:48 +0200
- Cc: misiek at pld dot org dot pl (Arkadiusz Miskiewicz), libc-alpha at sources dot redhat dot com
- References: <200104221929.VAA31897@ns.caldera.de>
Christoph Hellwig <hch@caldera.de> writes:
> In article <20010422212218.A27646@ikar.t17.ds.pwr.wroc.pl> you wrote:
> > Hi,
> >
> > Problem with glibc 2.2.2 vs kernel 2.4 (2.2 is ok) headers:
> >
> > #include <string.h>
> > #include <sys/capability.h>
> >
> > int main() { return 0; }
> >
> > [gcc barfs on kernel headers]
> >
> >
> > Compilation with -O0 is ok. My question is: glibc, kernel headers or my simple
> > program is bad (ie missing some include file) ?
>
> AFAICS neither. It seems to a problem of libcap to which <sys/capability.h>
> belongs to (why? this code should be in libc, IMHO).
I've contacted the authors of libcap several times but never got a
real answer. AFAIK the didn't consider the interface stable enough
for inclusion into glibc.
> It shouldn't include kernel headers at all but have a known good copy instead.
Exactly.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj