Annoying warning and compile error when compiling rtt-2.0.2 for lxrt

Hi,

I'm trying to compile rtt-2.0.2 for lxrt and get the following annoying
warning, which basically pops up with every object-file:

-----
[ 0%] Building CXX object build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-
rtt-lxrt_dynamic.dir/ServiceRequester.cpp.o
In file included from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/../os/fosi.h:46,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/../os/Mutex.hpp:42,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/ConnectionManager.hpp:53,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/InputPortInterface.hpp:46,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/DataFlowInterface.hpp:45,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/Service.hpp:44,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.hpp:45,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.cpp:39:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
rtt/rtt/base/../internal/../os/lxrt/fosi.h:33:1: warning: "_XOPEN_SOURCE"
redefined
In file included from /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
from /usr/include/c++/4.4/cstddef:43,
from /usr/include/boost/config/select_stdlib_config.hpp:17,
from /usr/include/boost/config.hpp:40,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
from /usr/include/boost/shared_ptr.hpp:17,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/rtt-fwd.hpp:48,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.hpp:43,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.cpp:39:
/usr/include/features.h:160:1: warning: this is the location of the previous
definition
-------

Secondly and more importantly I get the following compilation error:

In file included from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/../os/fosi.h:46,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/../os/Mutex.hpp:42,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/../internal/ConnectionManager.hpp:53,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/base/InputPortInterface.hpp:46,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/DataFlowInterface.hpp:45,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/Service.hpp:44,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.hpp:45,
from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
toolchain-rtt/rtt/ServiceRequester.cpp:39:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
rtt/rtt/base/../internal/../os/lxrt/fosi.h:92: error: redefinition of ‘struct
oro_rtai_sem_t’
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
rtt/rtt/base/../internal/../os/lxrt/fosi.h:86: error: previous definition of
‘struct oro_rtai_sem_t’
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
rtt/rtt/base/../internal/../os/lxrt/fosi.h:94: error: invalid type in
declaration before ‘;’ token

I'm using gcc 4.4.3 and rtai 3.8

Ruben
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> Hi,
>
> I'm trying to compile rtt-2.0.2 for lxrt and get the following annoying
> warning, which basically pops up with every object-file:

...

I have pushed a bunch of fixes to toolchain-2.0. If you see any warning
(whatsoever), please report it as well.

LXRT is untested but compiles. Could you run the unit tests several times to
check if nothing is broken ?

Peter

Ruben Smits's picture

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 12:26:26 Peter Soetens wrote:
> On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> > Hi,
> >
> > I'm trying to compile rtt-2.0.2 for lxrt and get the following annoying
>
> > warning, which basically pops up with every object-file:
> ...
>
> I have pushed a bunch of fixes to toolchain-2.0. If you see any warning
> (whatsoever), please report it as well.

I still get a few warnings:

[ 7%] Building C object build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/os/tlsf/tlsf.c.o
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c: In function ‘init_memory_pool’:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c:479: warning: incompatible implicit declaration of built-in functi\
on ‘memset’
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c: In function ‘add_new_area’:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c:507: warning: incompatible implicit declaration of built-in functi\
on ‘memset’
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c: In function ‘realloc_ex’:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c:870: warning: incompatible implicit declaration of built-in functi\
on ‘memcpy’
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c: In function ‘calloc_ex’:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os/tlsf/tlsf.c:888: warning: incompatible implicit declaration of built-in functi\
on ‘memset’

and one expected warning:

[ 47%] Building CXX object build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/extras/SequentialActivity.cpp.o
Building CXX object build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/extras/SimulationThread.cpp.o
In file included from /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/extras/IRQActivity.cpp:39:
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/extras/IRQActivity.hpp:54:2: warning: #warning "IRQActivity is available only on \
Xenomai. It will fail on startup"

> LXRT is untested but compiles. Could you run the unit tests several times
> to check if nothing is broken ?

All but the task-test succeed:

The following tests FAILED:
4 - task-test (Failed)

sudo ./task-test
Running 19 test cases...
/home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/tests/taskthread_test.cpp(514): error in "testThreadConfig": check tt->getScheduler() == 1 failed

*** 1 failure detected in test suite "Master Test Suite"

Ruben
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 13:10:24 Ruben Smits wrote:
> On Thursday 07 October 2010 12:26:26 Peter Soetens wrote:
> > On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> > > Hi,
> > >
> > > I'm trying to compile rtt-2.0.2 for lxrt and get the following annoying
> >
> > > warning, which basically pops up with every object-file:
> > ...
> >
> > I have pushed a bunch of fixes to toolchain-2.0. If you see any warning
> > (whatsoever), please report it as well.
>
> I still get a few warnings:
>
> [ 7%] Building C object
> build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/os/t
> lsf/tlsf.c.o
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/o
> s/tlsf/tlsf.c: In function ‘init_memory_pool’:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/o
> s/tlsf/tlsf.c:479: warning: incompatible implicit declaration of built-in
> functi\ on ‘memset’
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os
> /tlsf/tlsf.c: In function ‘add_new_area’:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/o
> s/tlsf/tlsf.c:507: warning: incompatible implicit declaration of built-in
> functi\ on ‘memset’
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os
> /tlsf/tlsf.c: In function ‘realloc_ex’:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/o
> s/tlsf/tlsf.c:870: warning: incompatible implicit declaration of built-in
> functi\ on ‘memcpy’
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/os
> /tlsf/tlsf.c: In function ‘calloc_ex’:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/o
> s/tlsf/tlsf.c:888: warning: incompatible implicit declaration of built-in
> functi\ on ‘memset’

Fixed this by including <string.h> in tlsf.c

>
> and one expected warning:
>
> [ 47%] Building CXX object
> build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/extr
> as/SequentialActivity.cpp.o Building CXX object
> build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/extr
> as/SimulationThread.cpp.o In file included from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/e
> xtras/IRQActivity.cpp:39:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/e
> xtras/IRQActivity.hpp:54:2: warning: #warning "IRQActivity is available
> only on \ Xenomai. It will fail on startup"
>
> > LXRT is untested but compiles. Could you run the unit tests several times
> > to check if nothing is broken ?
>
> All but the task-test succeed:
>
> The following tests FAILED:
> 4 - task-test (Failed)
>
> sudo ./task-test
> Running 19 test cases...
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/tests/
> taskthread_test.cpp(514): error in "testThreadConfig": check
> tt->getScheduler() == 1 failed
>
> *** 1 failure detected in test suite "Master Test Suite"

Was a bug in Thread.cpp. Could you retest with latest toolchain-2.0 ?

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Ruben Smits's picture

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 14:22:15 Peter Soetens wrote:
> On Thursday 07 October 2010 13:10:24 Ruben Smits wrote:
> > On Thursday 07 October 2010 12:26:26 Peter Soetens wrote:
> > > On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> > > > Hi,
> > > >
> > > > I'm trying to compile rtt-2.0.2 for lxrt and get the following
> > > > annoying
> > >
> > > > warning, which basically pops up with every object-file:
> > > ...
> > >
> > > I have pushed a bunch of fixes to toolchain-2.0. If you see any warning
> > > (whatsoever), please report it as well.
> >
> > I still get a few warnings:
> >
> > [ 7%] Building C object
> > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/os/
> > t lsf/tlsf.c.o
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > o s/tlsf/tlsf.c: In function ‘init_memory_pool’:
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > o s/tlsf/tlsf.c:479: warning: incompatible implicit declaration of
> > built-in functi\ on ‘memset’
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > os /tlsf/tlsf.c: In function ‘add_new_area’:
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > o s/tlsf/tlsf.c:507: warning: incompatible implicit declaration of
> > built-in functi\ on ‘memset’
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > os /tlsf/tlsf.c: In function ‘realloc_ex’:
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > o s/tlsf/tlsf.c:870: warning: incompatible implicit declaration of
> > built-in functi\ on ‘memcpy’
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > os /tlsf/tlsf.c: In function ‘calloc_ex’:
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > o s/tlsf/tlsf.c:888: warning: incompatible implicit declaration of
> > built-in functi\ on ‘memset’
>
> Fixed this by including <string.h> in tlsf.c
>
> > and one expected warning:
> >
> > [ 47%] Building CXX object
> > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/ext
> > r as/SequentialActivity.cpp.o Building CXX object
> > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/ext
> > r as/SimulationThread.cpp.o In file included from
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > e xtras/IRQActivity.cpp:39:
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rtt/
> > e xtras/IRQActivity.hpp:54:2: warning: #warning "IRQActivity is available
> > only on \ Xenomai. It will fail on startup"
> >
> > > LXRT is untested but compiles. Could you run the unit tests several
> > > times to check if nothing is broken ?
> >
> > All but the task-test succeed:
> >
> > The following tests FAILED:
> > 4 - task-test (Failed)
> >
> > sudo ./task-test
> > Running 19 test cases...
> > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/test
> > s/ taskthread_test.cpp(514): error in "testThreadConfig": check
> > tt->getScheduler() == 1 failed
> >
> > *** 1 failure detected in test suite "Master Test Suite"
>
> Was a bug in Thread.cpp. Could you retest with latest toolchain-2.0 ?

The task-test succeeds, but I also enable corba now and now:

Start 7: corba-ipc-test
7/38 Test #7: corba-ipc-test ...................***Exception: SegFault 4.78
sec

And the corba-mqueue-ipc-test just hangs.

If I try to start the corba-ipc-test by hand again it also hangs, I had to
reboot the pc after a third try do to entire lockup.

I haven't tested the remaining tests again.

Ruben
> Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 15:05:01 Ruben Smits wrote:
> On Thursday 07 October 2010 14:22:15 Peter Soetens wrote:
> > On Thursday 07 October 2010 13:10:24 Ruben Smits wrote:
> > > On Thursday 07 October 2010 12:26:26 Peter Soetens wrote:
> > > > On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> > > > > Hi,
> > > > >
> > > > > I'm trying to compile rtt-2.0.2 for lxrt and get the following
> > > > > annoying
> > > >
> > > > > warning, which basically pops up with every object-file:
> > > > ...
> > > >
> > > > I have pushed a bunch of fixes to toolchain-2.0. If you see any
> > > > warning (whatsoever), please report it as well.
> > >
> > > I still get a few warnings:
> > >
> > > [ 7%] Building C object
> > > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/o
> > > s/ t lsf/tlsf.c.o
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ o s/tlsf/tlsf.c: In function ‘init_memory_pool’:
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ o s/tlsf/tlsf.c:479: warning: incompatible implicit declaration of
> > > built-in functi\ on ‘memset’
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ os /tlsf/tlsf.c: In function ‘add_new_area’:
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ o s/tlsf/tlsf.c:507: warning: incompatible implicit declaration of
> > > built-in functi\ on ‘memset’
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ os /tlsf/tlsf.c: In function ‘realloc_ex’:
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ o s/tlsf/tlsf.c:870: warning: incompatible implicit declaration of
> > > built-in functi\ on ‘memcpy’
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ os /tlsf/tlsf.c: In function ‘calloc_ex’:
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ o s/tlsf/tlsf.c:888: warning: incompatible implicit declaration of
> > > built-in functi\ on ‘memset’
> >
> > Fixed this by including <string.h> in tlsf.c
> >
> > > and one expected warning:
> > >
> > > [ 47%] Building CXX object
> > > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/e
> > > xt r as/SequentialActivity.cpp.o Building CXX object
> > > build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-rtt-lxrt_dynamic.dir/e
> > > xt r as/SimulationThread.cpp.o In file included from
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ e xtras/IRQActivity.cpp:39:
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/rt
> > > t/ e xtras/IRQActivity.hpp:54:2: warning: #warning "IRQActivity is
> > > available only on \ Xenomai. It will fail on startup"
> > >
> > > > LXRT is untested but compiles. Could you run the unit tests several
> > > > times to check if nothing is broken ?
> > >
> > > All but the task-test succeed:
> > >
> > > The following tests FAILED:
> > > 4 - task-test (Failed)
> > >
> > > sudo ./task-test
> > > Running 19 test cases...
> > > /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-rtt/te
> > > st s/ taskthread_test.cpp(514): error in "testThreadConfig": check
> > > tt->getScheduler() == 1 failed
> > >
> > > *** 1 failure detected in test suite "Master Test Suite"
> >
> > Was a bug in Thread.cpp. Could you retest with latest toolchain-2.0 ?
>
> The task-test succeeds, but I also enable corba now and now:
>
> Start 7: corba-ipc-test
> 7/38 Test #7: corba-ipc-test ...................***Exception: SegFault
> 4.78 sec

This is bad news :-( Any chance for a back-trace ? It's possible that the
system() call is causing this, and that we need to disable the 'ipc-test'
versions when testing for LXRT.

Does corba-test work under LXRT ?

>
>
> And the corba-mqueue-ipc-test just hangs.
>
> If I try to start the corba-ipc-test by hand again it also hangs, I had to
> reboot the pc after a third try do to entire lockup.

Could you run the corba-ipc-test with the option: --run_test=*/setupServer ?
Can you start the server application 'corba-ipc-server' manually (kill it with
ctrl-c )?

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Ruben Smits's picture

Annoying warning and compile error when compiling rtt-2.0.2 for

On Thursday 07 October 2010 11:14:54 Ruben Smits wrote:
> Hi,
>
> I'm trying to compile rtt-2.0.2 for lxrt and get the following annoying
> warning, which basically pops up with every object-file:
>
> -----
> [ 0%] Building CXX object
> build/orocos-toolchain-rtt/rtt/CMakeFiles/orocos-
> rtt-lxrt_dynamic.dir/ServiceRequester.cpp.o
> In file included from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/../os/fosi.h:46,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/../os/Mutex.hpp:42,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/ConnectionManager.hpp:53,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/InputPortInterface.hpp:46,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/DataFlowInterface.hpp:45,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/Service.hpp:44,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.hpp:45,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.cpp:39:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
> rtt/rtt/base/../internal/../os/lxrt/fosi.h:33:1: warning: "_XOPEN_SOURCE"
> redefined
> In file included from
> /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39, from
> /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243, from
> /usr/include/c++/4.4/cstddef:43,
> from
> /usr/include/boost/config/select_stdlib_config.hpp:17, from
> /usr/include/boost/config.hpp:40,
> from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
> from /usr/include/boost/shared_ptr.hpp:17,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/rtt-fwd.hpp:48,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.hpp:43,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.cpp:39:
> /usr/include/features.h:160:1: warning: this is the location of the
> previous definition
> -------
>
> Secondly and more importantly I get the following compilation error:
>
> In file included from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/../os/fosi.h:46,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/../os/Mutex.hpp:42,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/../internal/ConnectionManager.hpp:53,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/base/InputPortInterface.hpp:46,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/DataFlowInterface.hpp:45,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/Service.hpp:44,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.hpp:45,
> from
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-
> toolchain-rtt/rtt/ServiceRequester.cpp:39:
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
> rtt/rtt/base/../internal/../os/lxrt/fosi.h:92: error: redefinition of
> ‘struct oro_rtai_sem_t’
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
> rtt/rtt/base/../internal/../os/lxrt/fosi.h:86: error: previous definition
> of ‘struct oro_rtai_sem_t’
> /home/rsmits/ros/orocos_toolchain_ros/rtt/build/orocos-toolchain-
> rtt/rtt/base/../internal/../os/lxrt/fosi.h:94: error: invalid type in
> declaration before ‘;’ token

Just to clarify, the compilation issue was introduced by Commit
302d8ae5e183cc7c5332d54aabad23d36c8ce5cc about 8 months ago:

<http://www.gitorious.org/orocos-
toolchain/rtt/commit/302d8ae5e183cc7c5332d54aabad23d36c8ce5cc?diffmode=inline>

Ruben
> I'm using gcc 4.4.3 and rtai 3.8
>
> Ruben
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users