All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Daniel Schnell <daniel.schnell@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rtcansend.c problem if using together	with-lpthread_rt
Date: Wed, 14 Mar 2007 13:55:26 +0100	[thread overview]
Message-ID: <45F7F0BE.50402@domain.hid> (raw)
In-Reply-To: <DD39B5C3F4963040ADC9768BE7E430CB01C21D24@domain.hid>

Daniel Schnell wrote:
> Hi,
> 
> Sorry to repost this issue, which I posted some days ago, but there was
> no reaction so far.
> It should be easy to reproduce. I need just a short answer from somebody
> with a RT-CAN driver.

Hm, Gilles already answered 
https://mail.gna.org/public/xenomai-help/2007-03/msg00198.html.

> 
> Thanks in advance,
> 
> Best regards,
> 
> Daniel Schnell.
> 
> 
> Daniel Schnell wrote:
>> Hi,
>>
>> Hunting down a RTCAN related bug in my application I ended up
>> compiling the rtcansend.c function with our make environment. 
>>
>> Basicly the compilation is done like this:
>>
>> ppc_6xx-gcc -W -Wall -O2 -D_GNU_SOURCE -D_REENTRANT -D__XENO__
>> -I/usr/xenomai/include -c -o rtcansend.o rtcansend.c 
>>
>> Linking:
>>
>> ppc_6xx-gcc  -o rtcansend rtcansend.o -L/usr/xenomai/lib -lpthread_rt
>> -lnative -lrtdm -lpthread -lrt 
>>
>> If run, the following happens:
>> bash-2.05b# ./rtcansend rtcan0 -v -i0 01 interface rtcan0 s=0,
>> ifr_name=rtcan0 
>> rt_task_shadow: Device or resource busy
>> Cleaning up...
>>
>> If I leave away -lpthread_rt in the linking step, output is normal:
>>
>> bash-2.05b# test/rtcansend rtcan0 -v -i0 01 interface rtcan0 s=0,
>> ifr_name=rtcan0 <0x000> [1] 01 Cleaning up... 
>>
>> I am using svn version 2256.
>> Am I doing here something fundamentally wrong in providing
>> -lpthread_rt as an additional library ? Shouldn't the native skin and
>> the POSIX skin just work together ?  
>>
>>
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 
> 



  reply	other threads:[~2007-03-14 12:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 13:46 [Xenomai-help] rtcansend.c problem if using together with -lpthread_rt Daniel Schnell
2007-03-12 13:54 ` Gilles Chanteperdrix
2007-03-14 11:58 ` [Xenomai-help] rtcansend.c problem if using together with-lpthread_rt Daniel Schnell
2007-03-14 12:55   ` Wolfgang Grandegger [this message]
2007-03-14 13:29     ` Daniel Schnell
2007-03-14 20:00       ` Gilles Chanteperdrix

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=45F7F0BE.50402@domain.hid \
    --to=wg@domain.hid \
    --cc=daniel.schnell@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.