Bug 1021009
| Summary: | boost thread c++98 vs c++11 issues | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | MM <finjulhich> |
| Component: | boost | Assignee: | Petr Machata <pmachata> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | dakingun, denis.arnaud_fedora, mnewsome, pertusus, pmachata |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-21 17:46:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
MM
2013-10-18 18:43:35 UTC
Please provide a reproducer. The following works for me:
#include <boost/thread.hpp>
void fun () {
std::cout << "boo!" << std::endl;
}
int main () {
boost::thread t (fun);
t.join ();
}
$ ~/opt/gcc48/bin/g++ -std=c++0x bleble.cc -lboost_thread
$ ./a.out
boo!
I couldn't reproduce with your example either. I did move the -lboost_thread-mt flag in the compile line for g++ --std=c++11 before and after my library containing the reference to boost::thread::start_thread() with no luck. However, I have just switched the linker from ld.bdf to ld.gold as a default, and it linked properly. Is the gold linker the one used to build F19? If so, is this error due to using different linkers? I use BFD-based ld as well. Please provide a reproducer. I couldn't reproduce with a smaller example and so I did A clean rebuild from scratch, and that worked, with BFD too. It was not an issue with gold vs BFD nor c++11 vs c++98. The remark you've made is probably still valid though I guess. I do apologize for the confusion and time. I suppose the ticket can be closed, apologies again OK. If you ever figure out the how you ended up with start_thread exposed and undefined, please don't hesitate to reopen. For now, I'm closing this. |