{"action":"closed","issue":{"url":"https://api.github.com/repos/MysticTreeGames/Boost-for-Android/issues/48","labels_url":"https://api.github.com/repos/MysticTreeGames/Boost-for-Android/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/MysticTreeGames/Boost-for-Android/issues/48/comments","events_url":"https://api.github.com/repos/MysticTreeGames/Boost-for-Android/issues/48/events","html_url":"https://github.com/MysticTreeGames/Boost-for-Android/issues/48","id":21907630,"number":48,"title":"Boost 1.54.0 build fix","user":{"login":"Shailesh-Venugopal","id":5817541,"avatar_url":"https://avatars.githubusercontent.com/u/5817541?v=3","gravatar_id":"","url":"https://api.github.com/users/Shailesh-Venugopal","html_url":"https://github.com/Shailesh-Venugopal","followers_url":"https://api.github.com/users/Shailesh-Venugopal/followers","following_url":"https://api.github.com/users/Shailesh-Venugopal/following{/other_user}","gists_url":"https://api.github.com/users/Shailesh-Venugopal/gists{/gist_id}","starred_url":"https://api.github.com/users/Shailesh-Venugopal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shailesh-Venugopal/subscriptions","organizations_url":"https://api.github.com/users/Shailesh-Venugopal/orgs","repos_url":"https://api.github.com/users/Shailesh-Venugopal/repos","events_url":"https://api.github.com/users/Shailesh-Venugopal/events{/privacy}","received_events_url":"https://api.github.com/users/Shailesh-Venugopal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2013-10-31T16:22:08Z","updated_at":"2016-01-14T21:43:09Z","closed_at":"2016-01-14T21:43:09Z","body":"In compiling boost 1.54.0 the log library needed the following patch to compile.\r\n(My build command was \"./build-android.sh --boost=1.54.0 --with-libraries=all --without-libraries=python --toolchain=arm-linux-androideabi-4.8 /opt/android-ndk-r9\")\r\n\r\nAttached is a patch file:\r\n\r\ndiff -ruN boost_1_54_0-boot/libs/log/src/threadsafe_queue.cpp boost_1_54_0-patched/libs/log/src/threadsafe_queue.cpp\r\n--- boost_1_54_0-boot/libs/log/src/threadsafe_queue.cpp\t2013-06-17 14:20:22.000000000 -0700\r\n+++ boost_1_54_0-patched/libs/log/src/threadsafe_queue.cpp\t2013-10-30 13:30:34.880317515 -0700\r\n@@ -54,7 +54,7 @@\r\n #endif\r\n #elif (defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200112L)) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))\r\n // Solaris 10 does not have posix_memalign. Solaris 11 and later seem to have it.\r\n-#if !(defined(sun) || defined(__sun)) || defined(__SunOS_5_11) || defined(__SunOS_5_12)\r\n+#if !(defined(__ANDROID__) || defined(ANDROID)) && (!(defined(sun) || defined(__sun)) || defined(__SunOS_5_11) || defined(__SunOS_5_12))\r\n #define BOOST_LOG_HAS_POSIX_MEMALIGN 1\r\n #endif\r\n #endif"}}