|
From: Andrew C. <and...@ya...> - 2004-04-19 11:05:27
|
Hi, On my system I experience a compile-time error when compiling a stock valgrind (either from the CVS or with 2.0.0) - when <asm/ipc.h> is included (from 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 kernel 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 before the #include <asm/ipc.h> line, although I'm sure there must be a better way to do it. In case it's relavent (it may well be in this case) - I am using gcc 3.3.3 on Debian testing/unstable, kernel 2.4.25. Andrew |