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

Bug#234272: linux-kernel-headers: missing include in /usr/include/asm/ipc.h



Am Dienstag, 24. Februar 2004 16:47 schrieb GOTO Masanori:
> At Sun, 22 Feb 2004 23:12:33 +0100,
> Hendrik Sattler wrote:
> > In file included from vg_intercept.c:63:
> > /usr/include/asm/ipc.h:10: error: field `__user' has incomplete type
> > /usr/include/asm/ipc.h:10: error: parse error before '*' token
> > /usr/include/asm/ipc.h:12: error: parse error before '}' token
> > However, asm/ipc.h uses a struct msgbuf but does not declare it. This
> > cannot work. gcc-2.95 and gcc-3.3 fail.
> > /usr/include/sys/msg.h looks like a good candidate although it's in
> > package libc6-dev.
>
> You included kernel header asm/ipc.h, so I think linux/msg.h is
> appropriate, but it's ok to use sys/msg.h because linux/msg.h and
> sys/msg.h have same definition.

Probably, I just used grep in /usr/include to find at least one header.

> But I think this is not libc6 bug, and it should be reassigned to
> valgrind.  OK?

Well, if asm/ipc.h uses a struct, it must be defined first. If asm/ipc.h does 
this, valgrind will compile a bit more :)

If you say that asm/ipc.h is not wrong at all (e.g. because it should not be 
used directly), then assign the bug to valgrind (maybe stating what should be 
used instead of asm/ipc.h).
Just saying that valgrind must include another header before asm/ipc.h is not 
a good idea.

HS

-- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
        oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.org

Attachment: pgpdnnjxNrqRB.pgp
Description: signature


Reply to: