Red Hat Bugzilla – Bug 812728
boost_thread does not work with gcc 4.7
Last modified: 2015-05-04 21:36:50 EDT
Description of problem:
Attempting to compile a program using Boost.Thread with gcc 4.7 on Fedora 17 produces error messages like this:
In file included from /home/braden/include/boost/thread/detail/platform.hpp:17:0,
/home/braden/include/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
Version-Release number of selected component (if applicable):
This appears to have an upstream fix:
In the absence of an upgrade to 1.49.0, it would be nice to backport this.
We already carry that patch. Something else must be broken. I'll look inside.
Nevermind. I had a version of Boost installed in my home directory that I'd completely forgotten about. (Closer inspection of the output I pasted suggests as much.) I'm not seeing the problem with the current version of Fedora 17's boost package.
Weird. because I just ran into this on F17 with boost-1.48.0-13
Same on Fedora 18. I will reopen the bug.
You might be seeing the same error message; however, it is either for completely different reasons than led to this report, or you're doing something as silly as I was.
In the former case, you should file a new report.
Any update about that ?
The issue is still here on F18, boost 1.50.0.
That bug is closed. Could you re-create a bug giving more details, for instance with a minimalist program (C++ source code and Makefile) reproducing the error?
Thanks for your answer. I updated the program that was producing this error, and it now works well.
Thanks, and sorry for the noise.