|
From: Maarten L. <m.b...@gm...> - 2008-02-27 19:39:43
|
Hi all, I wanted to try the subversion version of valgrind, but it gives me a compile error (glibc v2.3.6, gcc v4.0.3) drd_intercepts.c: In function 'mutex_type': drd_intercepts.c:119: error: 'struct <anonymous>' has no member named '__data' Does anyone know how to fix this? Cheers, Maarten. |
|
From: Dan K. <da...@ke...> - 2008-02-27 21:26:34
|
On Wed, Feb 27, 2008 at 11:38 AM, Maarten Lankhorst <m.b...@gm...> wrote: > drd_intercepts.c: In function 'mutex_type': > drd_intercepts.c:119: error: 'struct <anonymous>' has no member named '__data' I get that when running on a linuxthreads-based distribution (Dapper) but not on a NPTL-based distribution (Gutsy). Hmm, I thought Valgrind supported Linuxthreads...? |
|
From: Nicholas N. <nj...@cs...> - 2008-02-27 22:26:19
|
On Wed, 27 Feb 2008, Dan Kegel wrote: > On Wed, Feb 27, 2008 at 11:38 AM, Maarten Lankhorst > <m.b...@gm...> wrote: >> drd_intercepts.c: In function 'mutex_type': >> drd_intercepts.c:119: error: 'struct <anonymous>' has no member named '__data' > > I get that when running on a linuxthreads-based distribution (Dapper) > but not on a NPTL-based distribution (Gutsy). > > Hmm, I thought Valgrind supported Linuxthreads...? Valgrind does in general, but it looks like DRD imports pthread.h and expects it to have a particular definition for 'pthread_mutex_t'. I guess Linuxthreads doesn't have that structure. Bart, I can't remember if you want to support Linuxthreads with DRD or not? Nick |
|
From: Maarten L. <m.b...@gm...> - 2008-02-28 01:25:49
|
2008/2/27, Nicholas Nethercote <nj...@cs...>:
> On Wed, 27 Feb 2008, Dan Kegel wrote:
>
> > On Wed, Feb 27, 2008 at 11:38 AM, Maarten Lankhorst
> > <m.b...@gm...> wrote:
> >> drd_intercepts.c: In function 'mutex_type':
> >> drd_intercepts.c:119: error: 'struct <anonymous>' has no member named '__data'
> >
> > I get that when running on a linuxthreads-based distribution (Dapper)
> > but not on a NPTL-based distribution (Gutsy).
> >
> > Hmm, I thought Valgrind supported Linuxthreads...?
>
>
> Valgrind does in general, but it looks like DRD imports pthread.h and
> expects it to have a particular definition for 'pthread_mutex_t'. I guess
> Linuxthreads doesn't have that structure. Bart, I can't remember if you
> want to support Linuxthreads with DRD or not?
I found a workaround to make it compile again. I'm not 100% sure
wether it does the same but it does the trick for me:
--- exp-drd/drd_intercepts.c (revision 7494)
+++ exp-drd/drd_intercepts.c (working copy)
@@ -116,7 +116,7 @@
static MutexT mutex_type(pthread_mutex_t* mutex)
{
- return pthread_to_drd_mutex_type(mutex->__data.__kind);
+ return pthread_to_drd_mutex_type(mutex->__m_kind);
}
|
|
From: Ashley P. <api...@co...> - 2008-02-28 09:36:55
|
Bart has just committed a fix to this, you need to upgrade to r7496 Ashley, On Thu, 2008-02-28 at 09:25 +1100, Nicholas Nethercote wrote: > On Wed, 27 Feb 2008, Dan Kegel wrote: > > > On Wed, Feb 27, 2008 at 11:38 AM, Maarten Lankhorst > > <m.b...@gm...> wrote: > >> drd_intercepts.c: In function 'mutex_type': > >> drd_intercepts.c:119: error: 'struct <anonymous>' has no member named '__data' > > > > I get that when running on a linuxthreads-based distribution (Dapper) > > but not on a NPTL-based distribution (Gutsy). > > > > Hmm, I thought Valgrind supported Linuxthreads...? > > Valgrind does in general, but it looks like DRD imports pthread.h and > expects it to have a particular definition for 'pthread_mutex_t'. I guess > Linuxthreads doesn't have that structure. Bart, I can't remember if you > want to support Linuxthreads with DRD or not? > > Nick > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |