|
From: Nicholas N. <nj...@ca...> - 2004-04-23 13:16:19
|
On Fri, 23 Apr 2004, Daniel Luginger wrote: > I've some problem to compile the sources. > The versions i've tried are 2.0.0 and 2.1.1 and the compilers i used are > gcc-2.95 and gcc-3.3.3 > > ./configure without arguments. > make produces these lines: > > Version 2.0.0: > gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include > -DVG_LIBDIR=3D"\"/usr/local/lib"\" -Winline -Wall -Wshadow -O > -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g > -mpreferred-stack-boundary=3D2 -fno-omit-frame-pointer -c `test -f > 'vg_intercept.c' || echo './'`vg_intercept.c > In file included from vg_intercept.c:65: > /usr/include/asm/ipc.h:10: field `__user' has incomplete type > /usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or unio= n > /usr/include/asm/ipc.h:10: parse error before `*' > /usr/include/asm/ipc.h:12: parse error before `}' Some others had this problem recently. See below for two workarounds. Andre, is this a Valgrind problem or a Debian problem? N On Mon, 19 Apr 2004, Andr=E9s Rold=E1n wrote: > Andrew Coles <and...@ya...> writes: > > > On my system I experience a compile-time error when compiling a stock v= algrind > > (either from the CVS or with 2.0.0) - when <asm/ipc.h> is included (fro= m > > coregrind/vg_unsafe.h) the symbol __user is not defined. Looking at > > vg_unsafe.h it does mention including linux/compiler.h when running on = a 2.6 > > kernel in order to define the __user symbol, but I am using a 2.4 kerne= l > > machine and still experiencing this problem as __user still appears in= the > > asm/ipc.h header. The quick-and-dirty fix is to do a #define __user b= efore > > the #include <asm/ipc.h> line, although I'm sure there must be a better= way > > to do it. > > If you get the Debian's valgrind_2.1.1-3 source, you can get a patch for = that. > It's called 01_ipc_stuff.dpatch. You may want to use the patches from the > Debian package because they solve some Debian-specific build problems. > |