Boost C++ Libraries: Ticket #10263: [container] AIX 6.1 bug with sched_yield() function out of scope https://svn.boost.org/trac10/ticket/10263 <p> The error that pops up in some of the container tests is the following: </p> <p> gcc.compile.c++ ../bin.v2/libs/container/test/flat_map_test.test/gcc-4.8.1/debug/flat_map_test.o In file included from ../boost/container/detail/node_pool.hpp:21:0, </p> <blockquote> <p> from ../boost/container/node_allocator.hpp:22, from ../libs/container/test/flat_map_test.cpp:14: </p> </blockquote> <p> ../boost/container/detail/mutex.hpp: In function 'int boost_interprocess_spin_acquire_lock(int*)': ../boost/container/detail/mutex.hpp:139:45: error: 'sched_yield' was not declared in this scope </p> <blockquote> <p> #define SPIN_LOCK_YIELD sched_yield(); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ../boost/container/detail/mutex.hpp:150:13: note: in expansion of macro 'SPIN_LOCK_YIELD' </p> <blockquote> <p> SPIN_LOCK_YIELD; </p> </blockquote> <p> In mutex.hpp there was a compilation failure because, "'sched_yield' was not declared in this scope." If I add the missing file (sched.h) in AIX in order to allow it to see the missing function, the issue is resolved. </p> <p> Please look at the Pull Request created for further details: <a class="ext-link" href="https://github.com/boostorg/container/pull/2"><span class="icon">​</span>https://github.com/boostorg/container/pull/2</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10263 Trac 1.4.3 Ion Gaztañaga Wed, 30 Jul 2014 14:48:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10263#comment:1 https://svn.boost.org/trac10/ticket/10263#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Merged and then modified in commit d849f80ea549efbac2142cfdfe7973bd65d0fda0, adding missing &lt;sched.h&gt; for all systems, not only AIX. </p> Ticket