Project

General

Profile

Actions

Bug #2751

closed

Boost linkage check error: undefined reference to symbol 'pthread_cancel'

Added by Anche Kuo about 9 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Build
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I have been working on porting NDN onto Intel Galileo (I am the author of this gitbook: http://schwannden.gitbooks.io/ndn-on-galileo)
And I have set up the cross compilation toolchain with Yocto, and was able to cross compile both ndn-cxx and NFD.

After pulling the newest ndn-cxx and NFD today, the configuration of NFD failed at checking boost linkage. The two error messages are related to undefined pthread_cancel and std::to_string. I am pretty sure my environment have pthread_cancel, and is wondering why the test fail? As for to_string, my cross compilation environment does not have this function (it does support c++11, but does not have this specific function). How do I use boost::chrono::to_string to work around?

It seems like the test code is generated during waf configuration? Since the error log says the error happens when compiling file in /opt/ndn/N FD/build/.conf_check_a0e36c424bb9d872e887a8aabee0c828/, which is a folder no where to be found. Can someone point me to the right direction?

In the previous build, I simply delete the test on boost completely in wscript. And the resulting binary is usable! I had to modify a few source code (std::to_string to boost::chrono::to_string). But this time, deleting the whole test does not make compilation successful. There is a linkage error about "undefined reference to boost::detail::set_tss_data".

Can someone point me toward the right direction?


Files

config.log (23.1 KB) config.log Anche Kuo, 04/16/2015 09:40 AM
Actions

Also available in: Atom PDF