giuliomoro ncidentally, you can probably workaround that by adding
int __wrap_pthread_setname_np ( pthread_t thread, const char * name );
at the top of xenomai_wraps.h, but I am more curious about the underlying issue.
Actually, in hindsight, both the changes suggested above should not make any difference, because the declaration is there already, though conditional to #if XENOMAI_MAJOR == 3
. So the problem seems to be that -DXENOMAI_MAJOR=3
is - for some reason - not reaching the file?
Can you try adding these lines at the top of include/xenomai_wraps.h
?
#if XENOMAI_MAJOR == 3
#error XENOMAI_MAJOR is in fact equal 3
#endif
#ifdef XENOMAI_MAJOR
#error XENOMAI_MAJOR is defined but not equal 3
#endif