[Boost-bugs] [Boost C++ Libraries] #6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7

Subject: [Boost-bugs] [Boost C++ Libraries] #6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-23 08:38:38


#6165: BOOST_ENABLE_THREADS/BOOST_DISABLE_THREADS wrongly configured on GCC 4.7
-------------------------------------------+--------------------------------
 Reporter: Ai Azuma <ai.azuma@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
-------------------------------------------+--------------------------------
 I find that Boost.Thread and other components in Boost that depend on
 thread support does not work on recent weekly snapshots of GCC trunk (GCC
 4.7.0 experimental) on Ubuntu 10.04.3 LTS 64 bit because
 BOOST_ENABLE_THREADS is not defined on my environment and
 BOOST_DISABLE_THREADS is.

 The origin of this failure could be due to the change of macro definitions
 in GCC trunk. Now, GCC 4.7 (with -pthread option, of course) defines not
 the macro _GLIBCXX_HAVE_GTHR_DEFAULT but another macro
 _GLIBCXX_HAS_GTHREADS. Thus, BOOST_ENABLE_THREADS and
 BOOST_DISABLE_THREADS are wrongly configured in
 boost/config/stdlib/libstdcpp3.hpp.

 The attached patch seems to work for me, but I'm not sure how to detect
 thread support on GCC/libstdc++ correctly...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6165>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC