On Thu, 2008-04-10 at 20:45 -0700, Darren Hart wrote:
> On Thu, 2008-04-10 at 19:49 -0700, Andrew Morton wrote:
> > On Thu, 10 Apr 2008 19:46:00 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote:
> > 
> > > librttest.c: In function `init_pi_mutex':
> > > librttest.c:463: warning: implicit declaration of function 
> > > `pthread_mutexattr_setprotocol'
> > > librttest.c:463: error: `PTHREAD_PRIO_INHERIT' undeclared (first use in 
> > > this function)
> > > librttest.c:463: error: (Each undeclared identifier is reported only once
> > > librttest.c:463: error: for each function it appears in.)
> > > librttest.c:466: warning: implicit declaration of function 
> > > `pthread_mutexattr_ge
> > 
> 
> OK, so older glibc's (like that in FC3) won't have the necessary bits
> for PI mutexes.  Subrata, from an LTP point of view, how should this be
> detected?  I presume the "right thing" in this case is to detect the
> fact that PTHREAD_PRIO_INHERIT doesn't exist (or perhaps just check the
> glibc version) and not attempt to build the 'realtime' testsuite.  The
> other question is if realtime should be enabled by default - I don't
> recall if it is or not.

No. I do not think that it should be enabled by default, not only for
realtime test cases, but also for other test cases. Just like, we had
some problem on RT test cases compilation on some architectures and
Chirag“s patch fixed it by avoiding compilation/run on those
architectures. We have similar set up for features, where they check the
kernel version on which they are built to re-assure that they are
supported there.
So, for old gcc version(s) also, when you feel that the tests cannot run
below that, do a check and abort build as well as run.

So, from now onwards we have the checking for gcc version as well, apart
from the Architecture checking, Kernel Version Checking and FS type
checking.

I can ask people to do the new checking as well. But the problem is how
all those 3000+ odd test cases can be patched for this ;-)

Regards--
Subrata

> 
> Andrew, were you just trying a standard build of LTP, or did you
> specifically attempt to build the realtime tests?
> 
> 
> > And quite a few failures after that one.  I ended up deleting 20-odd
> > lines from 4-odd files.  Just chopped away until it worked.
> > 
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> > Don't miss this year's exciting event. There's still time to save $100. 
> > Use priority code J8TL2D2. 
> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > _______________________________________________
> > Ltp-list mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to