All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Paolo Minazzi <Paolo.Minazzi@mitrol.it>, Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Sporadic problem : rt_task_sleep locked after	debugging
Date: Fri, 08 Mar 2013 07:17:55 +0100	[thread overview]
Message-ID: <51398293.9030103@xenomai.org> (raw)
In-Reply-To: <51389940.1090100@mitrol.it>

On 03/07/2013 02:42 PM, Paolo Minazzi wrote:

> Il 07/03/2013 13.57, Gilles Chanteperdrix ha scritto:
>> #define ARM(x...)	x
>> #define	THUMB(x...)
> I have a problem of double definition of  __xn_tscinfo
> 
> #make
> 2ms.c: In function 'InitIrq':
> 2ms.c:182: warning: incompatible implicit declaration of built-in 
> function 'exit'
> /DVD/xenomai-2.6.2.1/src/skins/common/.libs/libxenomai.a(libxenomai_la-bind.o):(.data+0x0): 
> multiple definition of `__xn_tscinfo'
> /DVD/xenomai-2.6.2.1/src/skins/native/.libs/libnative.a(libnative_la-init.o):(.data+0x4): 
> first defined here
> collect2: ld returned 1 exit status
> make: *** [All] Error 1
> 
> 
> __xn_tscinfo is defined in src/include/asm/xenomai/bits/bind.h
> 
> ...
> ...
> #include <asm-generic/xenomai/bits/bind.h>
> #include <asm/xenomai/syscall.h>
> 
> struct __xn_full_tscinfo __xn_tscinfo = {
>          .kinfo = {
>                  .type = -1,
>          },
> };
> ...
> ...
> 
> It is strange define a struct in a .h file.


Right, normally this file should only be included in
src/skins/common/bind.c, but it happens to be included in all skins.
Will fix.

-- 
                                                                Gilles.


  parent reply	other threads:[~2013-03-08  6:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 11:40 [Xenomai] Sporadic problem : rt_task_sleep locked after debugging Paolo Minazzi
2013-03-06 12:06 ` Gilles Chanteperdrix
     [not found]   ` <5137370B.2050402@mitrol.it>
     [not found]     ` <51373841.70704@xenomai.org>
     [not found]       ` <51385910.80203@mitrol.it>
     [not found]         ` <51388A3A.2090004@xenomai.org>
2013-03-07 12:53           ` Paolo Minazzi
2013-03-07 12:57             ` Gilles Chanteperdrix
     [not found]               ` <51389940.1090100@mitrol.it>
2013-03-08  6:17                 ` Gilles Chanteperdrix [this message]
2013-03-08  6:24                   ` Gilles Chanteperdrix
2013-03-08 12:50               ` Paolo Minazzi
2013-03-08 20:03                 ` Gilles Chanteperdrix
2013-03-08 20:13                 ` Gilles Chanteperdrix
     [not found]                   ` <513D9A17.7020204@mitrol.it>
2013-03-11 13:07                     ` Gilles Chanteperdrix
2013-03-11 13:46                       ` Paolo Minazzi
2013-03-11 20:26                         ` Gilles Chanteperdrix
2013-03-12 10:19                           ` Paolo Minazzi
2013-03-12 12:19                             ` 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=51398293.9030103@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Paolo.Minazzi@mitrol.it \
    --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.