|
From: John R. <joh...@cr...> - 2003-10-09 16:13:59
|
Hi, I'm new to Valgrind-land and I downloaded the 20030725 snapshot and tried to build it, but got compile errors. (See end of message.) I'm running Redhat Linux 7.1 (2.4.2-2) and was using the GNUpro 03r1 compiler (a "commerical" version of gcc 3.2 -- since I'm under Redhat 7.1, it uses gnulibc2.2). Any suggestions? thanks, John Roberts joh...@cr... ---------------------------------------------------------- if gcc -DHAVE_CONFIG_H -I. -I../../valgrind-20030725/coregrind -I.. -I../../valgrind-20030725/coregrind/demangle -I../../valgrind-20030725/include -DVG_LIBDIR="\"/export/home/valgrind/lib"\" -Winline -Wall -Wshadow -O -fomit-frame-pointer -mpreferred-stack-boundary=2 -g -mpreferred-stack-boundary=2 -fno-omit-frame-pointer -MT vg_intercept.o -MD -MP -MF ".deps/vg_intercept.Tpo" \ -c -o vg_intercept.o `test -f '../../valgrind-20030725/coregrind/vg_intercept.c' || echo '../../valgrind-20030725/coregrind/'`../../valgrind-20030725/coregrind/vg_interc ept.c; \ then mv ".deps/vg_intercept.Tpo" ".deps/vg_intercept.Po"; \ else rm -f ".deps/vg_intercept.Tpo"; exit 1; \ fi ../../valgrind-20030725/coregrind/vg_intercept.c: In function `vgAllRoadsLeadToRome_poll': ../../valgrind-20030725/coregrind/vg_intercept.c:284: sizeof applied to an incomplete type ../../valgrind-20030725/coregrind/vg_intercept.c: In function `vgAllRoadsLeadToRome_select': ../../valgrind-20030725/coregrind/vg_intercept.c:562: sizeof applied to an incomplete type ../../valgrind-20030725/coregrind/vg_intercept.c:573: dereferencing pointer to incomplete type ../../valgrind-20030725/coregrind/vg_intercept.c:573: dereferencing pointer to incomplete type ../../valgrind-20030725/coregrind/vg_intercept.c:593: dereferencing pointer to incomplete type ../../valgrind-20030725/coregrind/vg_intercept.c:594: dereferencing pointer to incomplete type make[3]: *** [vg_intercept.o] Error 1 make[3]: Leaving directory `/export/home/valgrind-build/coregrind' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/home/valgrind-build/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/valgrind-build' make: *** [all] Error 2 |
|
From: Nicholas N. <nj...@ca...> - 2003-10-09 16:44:31
|
On Thu, 9 Oct 2003, John Roberts wrote: > I'm new to Valgrind-land and I downloaded the 20030725 > snapshot and tried to build it, but got compile errors. > (See end of message.) > > I'm running Redhat Linux 7.1 (2.4.2-2) and was using the > GNUpro 03r1 compiler (a "commerical" version of gcc 3.2 > -- since I'm under Redhat 7.1, it uses gnulibc2.2). Can you try a more normal version of GCC? AFAIK, nobody else has had problems... N |
|
From: Dan K. <da...@ke...> - 2003-10-09 16:58:58
|
John Roberts wrote: > I'm running Redhat Linux 7.1 (2.4.2-2) and was using the > GNUpro 03r1 compiler (a "commerical" version of gcc 3.2 > -- since I'm under Redhat 7.1, it uses gnulibc2.2). > ... > ../../valgrind-20030725/coregrind/vg_intercept.c:284: sizeof applied to an > incomplete type I bet the problem is vg_intercept.c should include <sys/time.h>, but doesn't always. Try this patch and let us know if it helps. --- valgrind-20030725/coregrind/vg_intercept.c.old Thu Oct 9 09:09:38 2003 +++ valgrind-20030725/coregrind/vg_intercept.c Thu Oct 9 09:10:24 2003 @@ -65,7 +65,7 @@ #include <sys/poll.h> #include <sys/socket.h> #include <sys/uio.h> -#ifdef GLIBC_2_1 +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045 |
|
From: Geoff A. <gal...@nc...> - 2003-10-10 20:41:18
|
> I'm running Redhat Linux 7.1 (2.4.2-2) and was using the > GNUpro 03r1 compiler (a "commerical" version of gcc 3.2 > -- since I'm under Redhat 7.1, it uses gnulibc2.2). It looks like the #ifdef problem in vg_intercept.c that I originally = reported on 07/16/03 . You need to replace #ifdef GLIBC_2_1 #include <sys/time.h> #endif with #include <sys/time.h> Geoff Alexander |