[klibc] getting dmraid to use klibc
H. Peter Anvin
hpa at zytor.com
Mon Oct 17 15:48:34 PDT 2005
Filippo Giunchedi wrote:
> Hi Peter,
> On Mon, Oct 17, 2005 at 11:15:38AM -0700, H. Peter Anvin wrote:
>>Filippo Giunchedi wrote:
>>>after investigating a little I found out that <features.h> is being
>>>included (is this
>>>right?) and defines __GLIBC__ and thus S_IFMT is not being defined from
>>Looks like you're using a broken set of Linux headers. The claim that
>>you're including /usr/include/linux/stat.h is a good indication of that.
>>How is your klibc installation set up?
> I'm using klibc 1.1.1 on debian with linux headers from 2.6.13, I would like to
> understand what the error can be. klibc's sys/stat.h includes linux/stat.h,
> should I use another set of linux headers?
klibc needs the real kernel headers, not the glibc-modified ones. In
particular, it shouldn't be including /usr/include/linux/stat.h, it
should be including /usr/lib/klibc/include/linux/stat.h.
More information about the klibc