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

Subject: [Boost-bugs] [Boost C++ Libraries] #12617: clock_gettime not available on OS X 10.11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-22 14:24:23


#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
 Keywords: |
------------------------------+--------------------------
 Looks like the Boost.Interprocess check for `clock_gettime` does not
 correctly handle OS X 10.11.

 (see os_thread_functions.hpp)

 Here is a small self-contained test case triggering on OS X 10.11 with
 xcode8:

 {{{
 $ xcodebuild -version
 Xcode 8.1
 Build version 8B62
 }}}


 {{{
 #include <iostream>
 #include <boost/interprocess/detail/os_thread_functions.hpp>

 int main() {
     boost::interprocess::ipcdetail::get_current_system_highres_count();
     std::clog << "hello" << "\n";
     return 0;
 }
 }}}

 {{{
 $ clang++ -o t t.cpp -Imason_packages/headers/boost/1.61.0/include/
 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
 -Wl,-bind_at_load

 $ ./t
 dyld: Symbol not found: _clock_gettime
   Referenced from: /Users/dane/projects/osrm-backend/./t (which was built
 for Mac OS X 10.12)
   Expected in: /usr/lib/libSystem.B.dylib
  in /Users/dane/projects/osrm-backend/./t
 Trace/BPT trap: 5
 }}}

 Downstream ticket is at: https://github.com/Project-OSRM/osrm-
 backend/issues/3297#issuecomment-262037848

 Seems like is does not trigger on OS X 10.12, though.

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