All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stefan Schaal <sschaal@domain.hid>
Cc: xenomai@xenomai.org, Peter Pastor Sampedro <pastorsa@domain.hid>
Subject: Re: [Xenomai-help] analog output device with comedi/analogy -- suddenly threads don't work anymore
Date: Thu, 29 Oct 2009 15:08:27 +0100	[thread overview]
Message-ID: <4AE9A1DB.1060506@domain.hid> (raw)
In-Reply-To: <1B242B31-29DB-4363-8B08-8E77B2928C34@domain.hid>

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



  parent reply	other threads:[~2009-10-29 14:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-29  0:19 [Xenomai-help] analog output device with comedi/analogy -- suddenly threads don't work anymore Stefan Schaal
2009-10-29  8:30 ` Gilles Chanteperdrix
2009-10-29  8:52 ` Gilles Chanteperdrix
2009-10-29 14:08 ` Gilles Chanteperdrix [this message]
2009-10-29 15:25   ` Stefan Schaal
     [not found]     ` <FF6D4747-95BE-4B18-8B77-864B7DA5EAEF@usc.edu>
     [not found]       ` <4AE9E5AC.7050401@domain.hid>
2009-12-18 21:10         ` [Xenomai-core] digital I/O with analgoy using ni_pcmcia Stefan Schaal
2009-12-21 23:23           ` Alexis Berlemont
2009-12-22  7:02             ` Stefan Schaal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AE9A1DB.1060506@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=pastorsa@domain.hid \
    --cc=sschaal@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.