{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4171","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4171/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4171/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4171/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/4171","id":97881073,"number":4171,"title":"Linking error on master for Android devices running < 5.0 (Lollipop)","user":{"login":"mhashmi","id":1129805,"avatar_url":"https://avatars.githubusercontent.com/u/1129805?v=3","gravatar_id":"","url":"https://api.github.com/users/mhashmi","html_url":"https://github.com/mhashmi","followers_url":"https://api.github.com/users/mhashmi/followers","following_url":"https://api.github.com/users/mhashmi/following{/other_user}","gists_url":"https://api.github.com/users/mhashmi/gists{/gist_id}","starred_url":"https://api.github.com/users/mhashmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhashmi/subscriptions","organizations_url":"https://api.github.com/users/mhashmi/orgs","repos_url":"https://api.github.com/users/mhashmi/repos","events_url":"https://api.github.com/users/mhashmi/events{/privacy}","received_events_url":"https://api.github.com/users/mhashmi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/addon","name":"addon","color":"d68e22"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/android","name":"android","color":"2bc4ad"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/bug","name":"bug","color":"b31d1d"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-07-29T07:51:58Z","updated_at":"2015-08-09T20:03:59Z","closed_at":"2015-08-08T21:02:50Z","body":"For devices running anything under Lollipop (5.0), we get linking errors when launching any of the android example apps. \r\n\r\nWe tried NDK r10e, r10b, r9b and r9d to confirm against the androidEmptyExample. \r\n\r\nPlease find below the linker error: \r\n\r\n```\r\nCompiling androidEmptyExample for Debug\r\nHOST_OS=Darwin\r\nHOST_ARCH=x86_64\r\nmake[1]: Entering directory `/Users/mustafa/Development/ofHead/examples/android/androidEmptyExample'\r\nLinking libs/armeabi-v7a/libOFAndroidApp.so for android/armeabi-v7a\r\n/Users/mustafa/Development/Android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -o libs/armeabi-v7a/libOFAndroidApp.so  obj/android/armv7/Debug/src/main.o obj/android/armv7/Debug/src/ofApp.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofAppAndroidWindow.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidAccelerometer.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidGPS.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidLogChannel.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidSoundPlayer.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidSoundStream.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidUtils.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidVibrator.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidVideoGrabber.o ../../../addons/obj/android/armv7/Debug/ofxAndroid/src/ofxAndroidVideoPlayer.o ../../../addons/obj/android/armv7/Debug/ofxAccelerometer/src/ofxAccelerometer.o ../../../libs/openFrameworksCompiled/lib/android/armv7/libopenFrameworksDebug.a   --sysroot=/Users/mustafa/Development/Android/ndk/platforms/android-19/arch-arm/ -nostdlib -L\"/Users/mustafa/Development/Android/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a\" -Wl,--fix-cortex-a8 -shared -Wl,--no-undefined -Wl,--as-needed -Wl,--gc-sections -Wl,--exclude-libs,ALL ../../../libs/FreeImage/lib/android/armeabi-v7a/libfreeimage.a ../../../libs/boost/lib/android/armeabi-v7a/libboost_filesystem.a ../../../libs/boost/lib/android/armeabi-v7a/libboost_system.a ../../../libs/freetype/lib/android/armeabi-v7a/libfreetype.a ../../../libs/glu/lib/android/armeabi-v7a/libGLU.a ../../../libs/tess2/lib/android/armeabi-v7a/libtess2.a  ../../../libs/poco/lib/android/armeabi-v7a/libPocoNetSSL.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoNet.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoCrypto.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoJSON.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoMongoDB.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoDataSQLite.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoData.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoUtil.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoXML.a ../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a ../../../libs/openssl/lib/android/armeabi-v7a/libssl.a ../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a   -lOpenSLES -lsupc++ -lz -lGLESv1_CM -lGLESv2 -llog -ldl -lm -lc -lgnustl_static -lgcc\r\nmake[1]: Leaving directory `/Users/mustafa/Development/ofHead/examples/android/androidEmptyExample'\r\nmake: Leaving directory `/Users/mustafa/Development/ofHead/examples/android/androidEmptyExample'\r\n\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function Poco::ThreadImpl::runnableEntry(void*): error: undefined reference to 'sigemptyset'\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function Poco::ThreadImpl::runnableEntry(void*): error: undefined reference to 'sigaddset'\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function Poco::ThreadImpl::runnableEntry(void*): error: undefined reference to 'sigaddset'\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function Poco::ThreadImpl::runnableEntry(void*): error: undefined reference to 'sigaddset'\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function _GLOBAL__sub_I_Thread.cpp: error: undefined reference to 'sigemptyset'\r\n../../../libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a(Thread.o):Thread.cpp:function _GLOBAL__sub_I_Thread.cpp: error: undefined reference to 'sigaddset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigfillset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(armcap.o):armcap.c:function OPENSSL_cpuid_setup: error: undefined reference to 'sigdelset'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'signal'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'\r\n../../../libs/openssl/lib/android/armeabi-v7a/libcrypto.a(ui_openssl.o):ui_openssl.c:function open_console: error: undefined reference to 'tcgetattr'\r\ncollect2: error: ld returned 1 exit status\r\nmake[1]: *** [libs/armeabi-v7a/libOFAndroidApp.so] Error 1\r\nmake: *** [Debug] Error 2\r\n```\r\nPlease also see this [forum thread](http://forum.openframeworks.cc/t/android-master-branch/20106/4) for additional details. \r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/129233162","html_url":"https://github.com/openframeworks/openFrameworks/issues/4171#issuecomment-129233162","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4171","id":129233162,"user":{"login":"bilderbuchi","id":327442,"avatar_url":"https://avatars.githubusercontent.com/u/327442?v=3","gravatar_id":"","url":"https://api.github.com/users/bilderbuchi","html_url":"https://github.com/bilderbuchi","followers_url":"https://api.github.com/users/bilderbuchi/followers","following_url":"https://api.github.com/users/bilderbuchi/following{/other_user}","gists_url":"https://api.github.com/users/bilderbuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/bilderbuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilderbuchi/subscriptions","organizations_url":"https://api.github.com/users/bilderbuchi/orgs","repos_url":"https://api.github.com/users/bilderbuchi/repos","events_url":"https://api.github.com/users/bilderbuchi/events{/privacy}","received_events_url":"https://api.github.com/users/bilderbuchi/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T20:03:59Z","updated_at":"2015-08-09T20:03:59Z","body":"hm, we're on 10e right now (but a slimmed-down one because of travis memory problems). my suspicion is that toolchain 19 needs some file that it was ok to rip out in 21 (although I think we're not [_that_ aggressive](https://github.com/openframeworks/openFrameworks/blob/master/scripts/ci/android/NDK_excludes.txt))"}}