All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Error in adapter.cc during the "make" of xenosim
@ 2009-03-25  3:35 Vandana Sasidharan
  2009-03-26 15:11 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-25  3:35 UTC (permalink / raw)
  To: xenomai



Hi,

First of all sorry for mailing to Xenomai-core.

Can you please tell me whether I should switch to the older distribution of
xenosim, Linux or Tix, I am a bit confused regarding the same and it would
be be really great if you you could clarify it. In case if
it is Tix where can I get the download? Thanks in advance.

For those who dont know what error I am getting:-

an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
-2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
version Linux 2.6.25.11.
after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
"make" the xenosim I'm getting an error :

xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
arguments
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
arguments

Thanks
Vandana

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Xenomai-help]  Error in adapter.cc during the "make" of xenosim
@ 2009-03-25 14:18 Vandana Sasidharan
  2009-03-25 15:16 ` Bruno Rouchouse
  0 siblings, 1 reply; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-25 14:18 UTC (permalink / raw)
  To: xenomai


HI,

Following the below query posted yesterday,
I tried using previous versions of xenosim(as per the reply), but still
could not resolve the below errors in adapter.cc.
Just to go forward I commented the lines in adapter.cc where I found
errors.

Further when I started recompiling, I got errors in queue.h and heap.h in
under native skin,
This is what I am getting:

2.4.7/../include/nucleus/pod.h:34,

from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:31:
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
defines no instances
In file included
from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:44:
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:136: syntax
error before `*'
In file included
from /usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/module.c:45:
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:122: syntax
error before `*'
make[2]: *** [module.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1


Please can you help and let me know where I am going wrong?

Thanks & regards,
Vandana

---------------------------------------------------------------------------

Hi,

First of all sorry for mailing to Xenomai-core.

Can you please tell me whether I should switch to the older distribution of
xenosim, Linux or Tix, I am a bit confused regarding the same and it would
be be really great if you you could clarify it. In case if
it is Tix where can I get the download? Thanks in advance.

For those who dont know what error I am getting:-

an error occurs when I am trying to "MAKE" Xenosim- 2.4.7.
I have already installed Xenomai- 2.4.7 along with libelf -0.8.10 , Tcl
8.3.5, Tk 8.3.5 , Tix 4.1.0.007 and an adeos patch that is adeos-ipipe
-2.6.25-x86-2.0-08.patch on a linux kernel which we built which has a
version Linux 2.6.25.11.
after configuring Xenosim along with the gcc -2.95.3 tar .gz when I try to
"make" the xenosim I'm getting an error :

xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 65: error :too few
arguments
xenomai-2.4.7/xenosim-2.4.7/adapter/adapter.cc: 67: error :too few
arguments

Kind Regards,
Vandana.

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Xenomai-help] Error in adapter.cc during the "make" of xenosim
@ 2009-03-26  7:27 Vandana Sasidharan
  0 siblings, 0 replies; 6+ messages in thread
From: Vandana Sasidharan @ 2009-03-26  7:27 UTC (permalink / raw)
  To: xenomai

Hi,

Thank you Bruno for your suggestion. After making changes in the Adapter.cc
as you had told and while re-compiling I got the following errors in
"queue.c and heap.c".

queue.c


/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/queue.h:135:
prototype declaration
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360: `q'
undeclared (first use in this function)
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360:
(Each undeclared identifier is reported only once
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/queue.c:360: for
each function it appears in.)
make[2]: *** [queue.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins'
make: *** [all-recursive] Error 1

 int rt_queue_delete_inner(RT_QUEUE *q, void __user *mapaddr)
    351 {
    352         int err = 0;
    353         spl_t s;
    354
    355         if (xnpod_asynch_p())
    356                 return -EPERM;
    357
    358         xnlock_get_irqsave(&nklock, s);
    359
    360         q = xeno_h2obj_validate(q, XENO_QUEUE_MAGIC, RT_QUEUE);
    361
    362         if (!q) {
    363                 err = xeno_handle_error(q, XENO_QUEUE_MAGIC,
RT_QUEUE);
    364                 xnlock_put_irqrestore(&nklock, s);
    365                 return err;
    366         }
    367

heap.c :

/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:388:
syntax error before `*'
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c: In
function `rt_heap_delete_inner':
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:389:
number of arguments doesn't match prototype
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../include/native/heap.h:121:
prototype declaration
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398:
`heap' undeclared (first use in this function)
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398: (Each
undeclared identifier is reported only once
/usr/src/xenomai-2.4.7/xenosim-2.4.7/../ksrc/skins/native/heap.c:398: for
each function it appears in.)
make[2]: *** [heap.o] Error 1
make[2]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/xenomai-2.4.7/xenosim-2.4.7/sim_bld/skins'
make: *** [all-recursive] Error 1


int rt_heap_delete_inner(RT_HEAP *heap, void __user *mapaddr)
{
        int err = 0;
        spl_t s;

        if (!xnpod_root_p())
                return -EPERM;

        xnlock_get_irqsave(&nklock, s);

        heap = xeno_h2obj_validate(heap, XENO_HEAP_MAGIC, RT_HEAP);

        if (!heap) {
                err = xeno_handle_error(heap, XENO_HEAP_MAGIC, RT_HEAP);
                xnlock_put_irqrestore(&nklock, s);
                return err;
        }

Please can you help and let me know what wrong I am doing.
Thank you in advance,
With regards,
Vandana

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-26 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-25  3:35 [Xenomai-help] Error in adapter.cc during the "make" of xenosim Vandana Sasidharan
2009-03-26 15:11 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2009-03-25 14:18 Vandana Sasidharan
2009-03-25 15:16 ` Bruno Rouchouse
2009-03-25 21:41   ` Bruno Rouchouse
2009-03-26  7:27 Vandana Sasidharan

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.