Boost C++ Libraries: Ticket #8815: Android - error: 'posix_memalign' was not declared in this scope https://svn.boost.org/trac10/ticket/8815 <pre class="wiki">gcc.compile.c++ bin.v2/libs/log/build/gcc-arm/release/build-no/link-static/log-api-unix/threading-multi/threadsafe_queue.o libs/log/src/threadsafe_queue.cpp: In static member function 'static void* boost::log::v2s_mt_posix::aux::threadsafe_queue_impl::operator new(std::size_t)': libs/log/src/threadsafe_queue.cpp:175:36: error: 'posix_memalign' was not declared in this scope </pre><p> It looks like posix_memalign ist not available for Android (using arm-linux-androideabi-gcc 4.6). </p> <p> Possible fix (libs/log/src/threadsafe_queue.cpp): </p> <pre class="wiki">// Solaris 10 does not have posix_memalign. Solaris 11 and later seem to have it. // The same goes for Android. #if !(defined(sun) || defined(__sun)) || defined(__SunOS_5_11) || defined(__SunOS_5_12) #ifndef __ANDROID__ #define BOOST_LOG_HAS_POSIX_MEMALIGN 1 #endif #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8815 Trac 1.4.3 Andrey Semashev Fri, 12 Jul 2013 20:24:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8815#comment:1 https://svn.boost.org/trac10/ticket/8815#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85020" title="Refactored aligned memory allocation. Added support for Android. Fixes ...">[85020]</a>) Refactored aligned memory allocation. Added support for Android. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8815" title="#8815: Bugs: Android - error: 'posix_memalign' was not declared in this scope (closed: fixed)">#8815</a>. </p> Ticket