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.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai