{"action":"created","issue":{"url":"https://api.github.com/repos/chzhong/serial-android/issues/1","repository_url":"https://api.github.com/repos/chzhong/serial-android","labels_url":"https://api.github.com/repos/chzhong/serial-android/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/chzhong/serial-android/issues/1/comments","events_url":"https://api.github.com/repos/chzhong/serial-android/issues/1/events","html_url":"https://github.com/chzhong/serial-android/issues/1","id":182086986,"number":1,"title":"Unable to build libs.","user":{"login":"abishekh","id":489699,"avatar_url":"https://avatars.githubusercontent.com/u/489699?v=3","gravatar_id":"","url":"https://api.github.com/users/abishekh","html_url":"https://github.com/abishekh","followers_url":"https://api.github.com/users/abishekh/followers","following_url":"https://api.github.com/users/abishekh/following{/other_user}","gists_url":"https://api.github.com/users/abishekh/gists{/gist_id}","starred_url":"https://api.github.com/users/abishekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abishekh/subscriptions","organizations_url":"https://api.github.com/users/abishekh/orgs","repos_url":"https://api.github.com/users/abishekh/repos","events_url":"https://api.github.com/users/abishekh/events{/privacy}","received_events_url":"https://api.github.com/users/abishekh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-10T18:50:32Z","updated_at":"2016-10-11T06:29:37Z","closed_at":null,"body":"I tried building the libs using the script 'build-libs.sh' and using ndk-build as well. \r\nI get the following error : \r\n\r\n\r\n```\r\nabishek@abishek-ubuntu:~/Downloads/serial-android$ ./build-libs.sh \r\n[armeabi-v7a] SharedLibrary  : libserial.so\r\n/home/abishek/Downloads/serial-android/libserial/src/main/jni/libs/serialport/glob.c:394: error: undefined reference to 'issetugid'\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [obj/local/armeabi-v7a/libserial.so] Error 1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chzhong/serial-android/issues/comments/252825096","html_url":"https://github.com/chzhong/serial-android/issues/1#issuecomment-252825096","issue_url":"https://api.github.com/repos/chzhong/serial-android/issues/1","id":252825096,"user":{"login":"chzhong","id":1304461,"avatar_url":"https://avatars.githubusercontent.com/u/1304461?v=3","gravatar_id":"","url":"https://api.github.com/users/chzhong","html_url":"https://github.com/chzhong","followers_url":"https://api.github.com/users/chzhong/followers","following_url":"https://api.github.com/users/chzhong/following{/other_user}","gists_url":"https://api.github.com/users/chzhong/gists{/gist_id}","starred_url":"https://api.github.com/users/chzhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chzhong/subscriptions","organizations_url":"https://api.github.com/users/chzhong/orgs","repos_url":"https://api.github.com/users/chzhong/repos","events_url":"https://api.github.com/users/chzhong/events{/privacy}","received_events_url":"https://api.github.com/users/chzhong/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T06:29:37Z","updated_at":"2016-10-11T06:29:37Z","body":"Hi @abishekh , what is `APP_PLATFORM` in your Application.mk? `issetugid` is not defined in `unistd.h` since android-21. You can try to change `APP_PLATFORM` to `android-16` to see whether this problem still exists, or your can define it by:\r\n`extern int issetugid(void);`\r\nThis symbol exists in libc.so (or libc.a) in all platforms of my NDK.\r\n\r\nYou can check whether android-16 is in your NDK's platforms folder."}}
{"actor":{"display_login":"chzhong"}}