|
From: John R. <joh...@cr...> - 2003-10-09 17:57:48
|
Thanks! The patch works, the thing builds now. John Roberts joh...@cr... > X-pair-Authenticated: 24.126.73.164 > Date: Thu, 09 Oct 2003 10:35:12 -0700 > From: Dan Kegel <da...@ke...> > User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 > X-Accept-Language: de-de, en > MIME-Version: 1.0 > To: John Roberts <joh...@cr...> > Cc: val...@li... > Subject: [patch] autoconfisticate vg_intercept.c a bit more (was: problems building Valgrind 20030725 snapshot) > Content-Transfer-Encoding: 7bit > X-BigFish: pcs-20(z335R60ei533jba6iz98dW122eH166cizzzzz)v > > 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 > |