[patch] Build failed: typelib: failed in build phase

Build failed: typelib: failed in build phase
'make -j1' returned status 2
see /home/kaltan/src/git/orocos-toolchain/install/log/typelib-build.log
for details
last 10 lines are:

/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in function
__static_initialization_and_destruction_0(int,
int):test_lang_c.cc(.text+0xe93a): error: undefined reference to
'boost::system::get_generic_category()'
/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in function
__static_initialization_and_destruction_0(int,
int):test_lang_c.cc(.text+0xe946): error: undefined reference to
'boost::system::get_generic_category()'
/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in function
__static_initialization_and_destruction_0(int,
int):test_lang_c.cc(.text+0xe952): error: undefined reference to
'boost::system::get_system_category()'
/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
function __static_initialization_and_destruction_0(int,
int):test_containers.cc(.text+0x4b45): error: undefined reference to
'boost::system::get_system_category()'
/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
function __static_initialization_and_destruction_0(int,
int):test_containers.cc(.text+0x4b51): error: undefined reference to
'boost::system::get_generic_category()'
/usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
function __static_initialization_and_destruction_0(int,
int):test_containers.cc(.text+0x4b75): error: undefined reference to
'boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[2]: *** [test/typelib_testsuite] Error 1
make[1]: *** [test/CMakeFiles/typelib_testsuite.dir/all] Error 2
make: *** [all] Error 2

It doesn't link with the boost_system library. Patch in attachment.

Peter

AttachmentSize
0001-tests-also-link-with-boost-system-library.patch1.52 KB

[patch] Build failed: typelib: failed in build phase

On Saturday 28 August 2010 22:19:59 Peter Soetens wrote:
> Build failed: typelib: failed in build phase
> 'make -j1' returned status 2
> see /home/kaltan/src/git/orocos-toolchain/install/log/typelib-build.log
> for details
> last 10 lines are:
>
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_lang_c.cc(.text+0xe93a): error: undefined reference to
> 'boost::system::get_generic_category()'
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_lang_c.cc(.text+0xe946): error: undefined reference to
> 'boost::system::get_generic_category()'
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_lang_c.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_lang_c.cc(.text+0xe952): error: undefined reference to
> 'boost::system::get_system_category()'
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_containers.cc(.text+0x4b45): error: undefined reference to
> 'boost::system::get_system_category()'
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_containers.cc(.text+0x4b51): error: undefined reference to
> 'boost::system::get_generic_category()'
> /usr/bin/ld: CMakeFiles/typelib_testsuite.dir/test_containers.o: in
> function __static_initialization_and_destruction_0(int,
> int):test_containers.cc(.text+0x4b75): error: undefined reference to
> 'boost::system::get_system_category()'
> collect2: ld returned 1 exit status
> make[2]: *** [test/typelib_testsuite] Error 1
> make[1]: *** [test/CMakeFiles/typelib_testsuite.dir/all] Error 2
> make: *** [all] Error 2
>
> It doesn't link with the boost_system library. Patch in attachment.

I have applied this one too on the orocos-toolchain master branch.

Peter