|
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 |
|
From: <ar...@de...> - 2004-04-19 13:46:05
|
Andrew Coles <and...@ya...> writes: > 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. 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. > > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users -- Andrés Roldán <ar...@de...> GPG Key-ID: 0xB29396EB http://people.fluidsignal.com/~aroldan |