Hi Gilles,

   this works -- thanks a lot! I will also look out for the  
configure.in fix and try this one afterwards.

Best wishes,

-Stefan


On Oct 29, 2009, at 7:08, Gilles Chanteperdrix wrote:

> Stefan Schaal wrote:
>> Hi,
>>
>>   this is following up on an installation of Alex's Xenomai tree on
>> Ubuntu 9.04 running the 2.6.29.5 kernel. While we managed to talk to
>> the  NI data acquisition board we have with this tree, we suddenly
>> discovered that some of our other software doesn't work anymore, in
>> particular threads. Below is a tiny program to run a thread, and the
>> compile statement we use. The thread never starts running. Does
>> anybody know what is going wrong here?
>>
>> Thanks  a lot for any hint!
>
> Ok, you have been hit by a combo of two bugs:
> - you are compiling with static libraries because dynamic libraries  
> are
> temporarily disabled (due to a bug in configure.in for which Jan has
> provided the fix just today);
> - the --wrap mechanism used by the Xenomai posix skin has a known  
> issue
> with static libraries.
>
> Fortunately, we recently implemented a fix for this second bug: use  
> the
> wrap-link.sh script on the compilation command line.
>
> As in:
>
> /usr/xenomai/bin/wrap-link.sh gcc -o xtest xeno_thread_test.c
> -I/Network/Servers/duerer/clmc/prog/
> include -I/usr/xenomai/include -I/usr/xenomai/include/posix -
> D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__ -Wl,@/usr/xenomai/ 
> lib/
> posix.wrappers -L/usr/xenomai/lib -lpthread_rt -lpthread -lrt
>
> Please tell us if it still does not work.
>
> -- 
>                                          Gilles
>
>


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to