Skip to contentSkip to conversation

error while compiling trivial-periodic.c

Xenomai Parthasarathy S 2 participants 2 messages Jun 3, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

Recently I installed xenomai on a board with Intel Atom D525 processor. After completing the installation, as suggested by the Quick Install Guide, I ran 'make' from the xenomai-2.6.0/examples/native folder. I see the following error message. Can any one help.

--xeno-cflags is deprecated, use --skin=name --cflags instead --xeno-ldflags is deprecated, use --skin=name --ldflags instead gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall
-Werror-implicit-function-declaration -pipe -D__XENO__ -L/usr/xenomai/lib
-lxenomai -lpthread -lrt -lnative -Xlinker -rpath -Xlinker
/usr/xenomai/lib trivial-periodic.c -o trivial-periodic
trivial-periodic.c: In function ‘main’:
trivial-periodic.c:72:1: warning: control reaches end of non-void function [-Wreturn-type]
/tmp/ccvb7ii0.o: In function `demo':
trivial-periodic.c:(.text+0x2f): undefined reference to `rt_task_set_periodic'
trivial-periodic.c:(.text+0x34): undefined reference to rt_timer_read' trivial-periodic.c:(.text+0x46): undefined reference to rt_task_wait_period'
trivial-periodic.c:(.text+0x4b): undefined reference to rt_timer_read' /tmp/ccvb7ii0.o: In function main':
trivial-periodic.c:(.text+0x133): undefined reference to rt_task_create' trivial-periodic.c:(.text+0x14f): undefined reference to rt_task_start' trivial-periodic.c:(.text+0x160): undefined reference to `rt_task_delete'
collect2: ld returned 1 exit status
make: *** [trivial-periodic] Error 1

Signature · 4 lines
Parthasarathy S
C612 Sena Vihar
Kammanahalli Main Road
Bangalore 560043 India
#1 lore raw
Quoted 6 lines · Parthasarathy S

Hello,

Recently I installed xenomai on a board with Intel Atom D525 processor. After completing the installation, as suggested by the Quick Install Guide, I ran 'make' from the xenomai-2.6.0/examples/native folder. I see the following error message. Can any one help.

Yes, Xenomai 2.6.0 examples do not compile. This has been fixed with the following patch:
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=689e0433ab907958f162181d9b8c3b49012dd67a

Signature · 1 line
                                                                Gilles.