Re: [Boost-bugs] [Boost C++ Libraries] #12617: clock_gettime not available on OS X 10.11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12617: clock_gettime not available on OS X 10.11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-17 13:04:45


#12617: clock_gettime not available on OS X 10.11
-------------------------------+--------------------------
  Reporter: djh | Owner: igaztanaga
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: interprocess
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------

Comment (by cnewbold):

 It appears that the macOS 10.12 SDK, which is what is used with XCode 8,
 defines both CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW which then causes
 Boost.Interprocess to follow the Linux branch and reach for clock_gettime.
 That works fine when actually running on a 10.12 machine, but 10.11 does
 not have clock_gettime so you get a busted executable that dies at runtime
 with an unresolved external.

 Unfortunately Apple does not condition the definition of these macros on
 the deployment target, so even telling XCode 8 that you're targeting 10.11
 results in references to clock_gettime.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12617#comment:2>
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:20 UTC