At Sun, 22 Feb 2004 23:12:33 +0100, Hendrik Sattler wrote: > on compiling valgrind-2.10 I get: > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include > -DVG_LIBDIR="\"/usr/local/lib"\" > -Winline -Wall -Wshadow -O -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g > -fpic > -fno-omit-frame-pointer -MT vg_intercept.o -MD -MP -MF ".deps/vg_intercept.Tpo" \ > -c -o vg_intercept.o `test -f 'vg_intercept.c' || echo './'`vg_intercept.c; \ > then mv -f ".deps/vg_intercept.Tpo" ".deps/vg_intercept.Po"; \ > else rm -f ".deps/vg_intercept.Tpo"; exit 1; \ > fi > 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 > make[3]: *** [vg_intercept.o] Error 1 > make[3]: Leaving directory `/home/hendrik/BUILD/test/valgrind-2.1.0/coregrind' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/hendrik/BUILD/test/valgrind-2.1.0/coregrind' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/hendrik/BUILD/test/valgrind-2.1.0' > make: *** [all] Error 2 > > This is cause by a line: > #include <asm/ipc.h> > > 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. But I think this is not libc6 bug, and it should be reassigned to valgrind. OK? Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

