Skip to contentSkip to conversation

Commit 6346c046b1

Xenomai-core Jan Kiszka 2 participants 3 messages Jul 3, 2009 – Jul 6, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Philippe,

what problem did you had to address with commit 6346c046b1? I'm asking as it most probably breaks what e7d889f56c tried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 5 lines · Jan Kiszka

Hi Philippe,

what problem did you had to address with commit 6346c046b1? I'm asking as it most probably breaks what e7d889f56c tried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).

The problem was that with uclibc, pthread_mutexattr_set_prio_inherit existed, but PTHREAD_PRIO_INHERIT did not exit, so the posix mutex-torture test was not compiling. Which is why, we replaced with:
#ifndef PTHREAD_PRIO_INHERIT
#define PTHREAD_PRIO_INHERIT
#endif

which should work as long as this piece of code is put after the #include_next<pthread.h>
But maybe we forgot that...

Besides, I use recent libc (and I believe with -Wall -W) and do not see any warning . Would you be compiling with g++ or with special flags?

Signature · 1 line
                                          Gilles
#2 lore raw
Quoted 8 lines · Gilles Chanteperdrix
Quoted 5 lines · Jan Kiszka

Hi Philippe,

what problem did you had to address with commit 6346c046b1? I'm asking as it most probably breaks what e7d889f56c tried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).

The problem was that with uclibc, pthread_mutexattr_set_prio_inherit

pthread_mutexatt_setprotocol

Quoted 12 lines

existed, but PTHREAD_PRIO_INHERIT did not exit, so the posix mutex-torture test was not compiling. Which is why, we replaced with:
#ifndef PTHREAD_PRIO_INHERIT
#define PTHREAD_PRIO_INHERIT
#endif

which should work as long as this piece of code is put after the #include_next<pthread.h>
But maybe we forgot that...

Besides, I use recent libc (and I believe with -Wall -W) and do not see any warning . Would you be compiling with g++ or with special flags?

Signature · 1 line
                                          Gilles