[Bug 942] New: Fails to compail under Xenomai 2.6

http://bugs.orocos.org/show_bug.cgi?id=942

Summary: Fails to compail under Xenomai 2.6
Product: Toolchain
Version: 2.5.0
Platform: Intel 64bit
OS/Version: Xenomai 2.x
Status: NEW
Severity: minor
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: kimmat [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

When compiling under Xenomai 2.6 I get the following error:

/home/kimmat/Downloads/rtos-install/orocos-toolchain-2.5.0/rtt/rtt/os/xenomai/fosi_internal.cpp:
In function ‘int RTT::os::rtos_task_set_scheduler(RTOS_TASK*, int)’:
/home/kimmat/Downloads/rtos-install/orocos-toolchain-2.5.0/rtt/rtt/os/xenomai/fosi_internal.cpp:331:
error: ‘T_PRIMARY’ was not declared in this scope
/home/kimmat/Downloads/rtos-install/orocos-toolchain-2.5.0/rtt/rtt/os/xenomai/fosi_internal.cpp:340:
error: ‘T_PRIMARY’ was not declared in this scope
/home/kimmat/Downloads/rtos-install/orocos-toolchain-2.5.0/rtt/rtt/os/xenomai/fosi_internal.cpp:
In function ‘int RTT::os::rtos_task_wait_period(RTOS_TASK*)’:
/home/kimmat/Downloads/rtos-install/orocos-toolchain-2.5.0/rtt/rtt/os/xenomai/fosi_internal.cpp:402:
error: ‘T_PRIMARY’ was not declared in this scope
make[2]: ***
[rtt/CMakeFiles/orocos-rtt-xenomai_dynamic.dir/os/xenomai/fosi_internal.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [rtt/CMakeFiles/orocos-rtt-xenomai_dynamic.dir/all] Error 2
make: *** [all] Error 2

This is because T_PRIMARY has changed name to T_CONFORMING. Adding the
following line in /xenomai/include/native/task.h fixes the problem:

#define T_PRIMARY T_CONFORMING

[Bug 942] Fails to compile under Xenomai 2.6

http://bugs.orocos.org/show_bug.cgi?id=942

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |peter [..] ...
Resolution| |DUPLICATE