{"action":"closed","issue":{"url":"https://api.github.com/repos/android-ndk/ndk/issues/23","repository_url":"https://api.github.com/repos/android-ndk/ndk","labels_url":"https://api.github.com/repos/android-ndk/ndk/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/android-ndk/ndk/issues/23/comments","events_url":"https://api.github.com/repos/android-ndk/ndk/issues/23/events","html_url":"https://github.com/android-ndk/ndk/issues/23","id":141295105,"number":23,"title":"NDK r11 undefined reference","user":{"login":"SimonMarquis","id":1921278,"avatar_url":"https://avatars.githubusercontent.com/u/1921278?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonMarquis","html_url":"https://github.com/SimonMarquis","followers_url":"https://api.github.com/users/SimonMarquis/followers","following_url":"https://api.github.com/users/SimonMarquis/following{/other_user}","gists_url":"https://api.github.com/users/SimonMarquis/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonMarquis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonMarquis/subscriptions","organizations_url":"https://api.github.com/users/SimonMarquis/orgs","repos_url":"https://api.github.com/users/SimonMarquis/repos","events_url":"https://api.github.com/users/SimonMarquis/events{/privacy}","received_events_url":"https://api.github.com/users/SimonMarquis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-16T14:41:54Z","updated_at":"2016-03-17T17:54:54Z","closed_at":"2016-03-17T17:54:54Z","body":"Since NDK r11, `bcopy` is no longer defined in libc and triggers an error during linkage of libusrsctp for instance:  \r\n`error: undefined reference to 'bcopy'`\r\n\r\nApplication.mk:\r\n```\r\nAPP_STL := c++_static\r\nAPP_OPTIM := release\r\nAPP_ABI := armeabi-v7a x86\r\nAPP_PLATFORM := android-14\r\nNDK_TOOLCHAIN_VERSION := clang\r\n```\r\n\r\nAndroid.mk\r\n```\r\nLOCAL_CFLAGS            +=  -g\r\nLOCAL_STATIC_LIBRARIES := libusrsctp\r\nLOCAL_LDLIBS            := -lm -llog -landroid -lz\r\nLOCAL_ARM_MODE          := arm\r\nLOCAL_CPPFLAGS          += -std=c++11\r\ninclude $(BUILD_SHARED_LIBRARY)\r\n$(call import-module,android/cpufeatures)\r\n```\r\n\r\nIs this issue related to #1 ?"}}