All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Marc Le Douarain <marc.le-douarain@laposte.net>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Error "field ‘pse51_si’ has incomplete type" in syscall.h after upgrading Ubuntu Distrib to 13.04
Date: Mon, 02 Sep 2013 13:06:30 +0200	[thread overview]
Message-ID: <52247136.9010504@xenomai.org> (raw)
In-Reply-To: <52233B54.7060402@laposte.net>

On 09/01/2013 03:04 PM, Marc Le Douarain wrote:
> Le 01/09/2013 14:49, Gilles Chanteperdrix a écrit :
>> On 09/01/2013 01:58 PM, Marc Le Douarain wrote:
>>> Hello everybody,
>>>
>>> I have an application using Xenomai that do no more compile after I have
>>> recently upgraded from Ubuntu 12.10 to 13.04
>>>
>>> Here the error I have in one one file including "phread.h" :
>>> gcc -c tasks.c -o tasks.o -march=i486 ...(custom defines)...
>>> `xeno-config --skin posix --cflags`
>>> In file included from /usr/xenomai/include/asm/xenomai/syscall.h:23:0,
>>>                    from /usr/xenomai/include/nucleus/trace.h:52,
>>>                    from /usr/xenomai/include/nucleus/system.h:27,
>>>                    from /usr/xenomai/include/asm/xenomai/system_32.h:137,
>>>                    from /usr/xenomai/include/asm/xenomai/system.h:2,
>>>                    from /usr/xenomai/include/nucleus/types.h:41,
>>>                    from /usr/xenomai/include/nucleus/thread.h:25,
>>>                    from /usr/xenomai/include/posix/pthread.h:136,
>>>                    from tasks.c:34:
>>> /usr/xenomai/include/asm-generic/xenomai/syscall.h:78:17: erreur: field
>>> ‘pse51_si’ has incomplete type
>>> make: *** [tasks.o] Erreur 1
>>>
>>> gcc installed on this version is 4.7.3
>>> My project based on Linux kernel 2.6.38.8 and Xenomai 2.5.6
>>>
>>> any one have an idea, on something that could be done...?
>>> else I'm thinking to install an older version in virtual machine to no
>>> more encounter bad surprises with upgrades !
>> You are probably lacking a #include, add the missing include and it
>> should be fine. Also, Xenomai 2.5.6 and Linux 2.6.38 are really old,
>> updating is recommended.
>>
>>
> Thank for the tip, but I've exactly the same error, with an old little 
> "hello" example,
> I've included.
> Example using native tasks, and that was compiling correctly before 
> distrib upgrade...

Apparently, you misunderstood, so I am going to try and explain again.
The problematic line of code is "struct siginfo pse51_si", because of
the toolchain update, the header defining "struct siginfo" was included
in another header, so we made the mistake not to include this header at
the time of xenomai 2.5.6 (which was two and a half years ago). But this
code disappeared in latest versions of Xenomai. So, you have two solutions:
- add the missing #include directive in Xenomai 2.5.6 sources
- or upgrade to Xenomai 2.6.2.1 which is the latest version.

-- 
                                                                Gilles.


      parent reply	other threads:[~2013-09-02 11:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-01 11:58 [Xenomai] Error "field ‘pse51_si’ has incomplete type" in syscall.h after upgrading Ubuntu Distrib to 13.04 Marc Le Douarain
2013-09-01 12:49 ` Gilles Chanteperdrix
2013-09-01 13:06   ` Marc Le Douarain
2013-09-01 13:11   ` Marc Le Douarain
     [not found]   ` <52233B54.7060402@laposte.net>
2013-09-02 11:06     ` Gilles Chanteperdrix [this message]

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=52247136.9010504@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=marc.le-douarain@laposte.net \
    --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.