Subject: [Boost-bugs] [Boost C++ Libraries] #3639: Boost.Thread doesn't build with Sun-5.9 on Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-18 16:40:23
#3639: Boost.Thread doesn't build with Sun-5.9 on Linux
-------------------------------------+--------------------------------------
Reporter: johnmaddock | Owner: anthonyw
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: thread
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
I don't really know what the correct fix is here, but sun's Linux compiler
fails with Boost.Thread (in trunk) on Ubuntu Linux with:
"../../../boost/thread/pthread/mutex.hpp", line 142: Error: The function
"pthread_mutex_timedlock" must have a prototype.
"../../../boost/thread/pthread/mutex.hpp", line 142: Error: The function
"pthread_mutex_timedlock" must have a prototype.
Which is pretty annoying when you're trying to test code that depends on
Boost.Thread!
It seems that _POSIX_TIMEOUTS is defined, but pthread.h still isn't
defining pthread_mutex_timedlock, which is guarded by __USE_XOPEN2K which
is *not* set :-(
John.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3639> 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:01 UTC