<div>
                    Hi,
                </div><div><span class="Apple-tab-span" style="white-space:pre">  </span>My environment is following:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SDK: 4.1.2 (API 16)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>NDK: android-ndk-r8e</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>My application is built on glib, and i use gstreamer or gstreamer-sdk to link/compile some glib code.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>I directly reference some static libraries of glib like following instructions(some include path is not listed):</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>GSTREAMER_SDK_ROOT_ANDROID := /opt/gstreamer-sdk-android-arm-release-2013.6</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>or</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>GSTREAMER_SDK_ROOT_ANDROID := /opt/gstreamer-1.0-android-arm-1.0.7-release</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>app_objs := $(GSTREAMER_SDK_ROOT_ANDROID)/lib/libintl.a \</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgio-2.0.a \</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgobject-2.0.a  \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgthread-2.0.a  \ </div><div>        $(GSTREAMER_SDK_ROOT_ANDROID)/lib/libgmodule-2.0.a \</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libglib-2.0.a  \</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>$(GSTREAMER_SDK_ROOT_ANDROID)/lib/libiconv.a  \</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>the error is report by following (should be pthread issue):</div><div><br></div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function set_binding_values.part.0:./bindtextdom.c:313: error: undefined reference to 'pthread_rwlock_unlock'</div><div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function libintl_bindtextdomain:./bindtextdom.c:92: error: undefined reference to 'pthread_rwlock_wrlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(bindtextdom.o): in function libintl_bind_textdomain_codeset:./bindtextdom.c:92: error: undefined reference to 'pthread_rwlock_wrlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(loadmsgcat.o): in function _nl_load_domain:./loadmsgcat.c:1277: error: undefined reference to 'pthread_rwlock_init'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(textdomain.o): in function libintl_textdomain:./textdomain.c:73: error: undefined reference to 'pthread_rwlock_wrlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(textdomain.o): in function libintl_textdomain:./textdomain.c:117: error: undefined reference to 'pthread_rwlock_unlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1011: error: undefined reference to 'pthread_rwlock_rdlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1028: error: undefined reference to 'pthread_rwlock_unlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1033: error: undefined reference to 'pthread_rwlock_wrlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function _nl_find_msg:./dcigettext.c:1063: error: undefined reference to 'pthread_rwlock_unlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(dcigettext.o): in function libintl_dcigettext:./dcigettext.c:530: error: undefined reference to 'pthread_rwlock_rdlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libintl.a(finddomain.o): in function _nl_find_domain:./finddomain.c:87: error: undefined reference to 'pthread_rwlock_rdlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-ggettext.o): in function g_dgettext:ggettext.c:402: error: undefined reference to 'libintl_dgettext'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-ggettext.o): in function g_dngettext:ggettext.c:460: error: undefined reference to 'libintl_dngettext'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gwakeup.o): in function g_wakeup_new:gwakeup.c:148: error: undefined reference to 'eventfd'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-glib-unix.o): in function g_unix_open_pipe:glib-unix.c:102: error: undefined reference to 'pipe2'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_impl_new:gthread-posix.c:434: error: undefined reference to 'pthread_rwlock_init'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_get_impl:gthread-posix.c:443: error: undefined reference to 'pthread_rwlock_destroy'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_clear:gthread-posix.c:443: error: undefined reference to 'pthread_rwlock_destroy'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_writer_trylock:gthread-posix.c:551: error: undefined reference to 'pthread_rwlock_trywrlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_reader_lock:gthread-posix.c:590: error: undefined reference to 'pthread_rwlock_rdlock'</div><div>/Users/rjiejie/soft/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/rjiejie/soft/gstreamer-sdk-android-arm-release-2013.6/lib/libglib-2.0.a(libglib_2_0_la-gthread-posix.o): in function g_rw_lock_reader_trylock:gthread-posix.c:608: error: undefined reference to 'pthread_rwlock_tryrdlock'</div></div>
                <div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>- Jojo</div><div><br></div></div>