[Boost-bugs] [Boost C++ Libraries] #8815: Android - error: 'posix_memalign' was not declared in this scope

Subject: [Boost-bugs] [Boost C++ Libraries] #8815: Android - error: 'posix_memalign' was not declared in this scope
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-12 11:06:08


#8815: Android - error: 'posix_memalign' was not declared in this scope
------------------------------+---------------------
 Reporter: mik01@… | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 {{{
 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
 }}}


 It looks like posix_memalign ist not available for Android (using arm-
 linux-androideabi-gcc 4.6).

 Possible fix (libs/log/src/threadsafe_queue.cpp):

 {{{
 // 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
 }}}

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