[android-developers] error: undefined reference to '__stderrp'
When building an application with the NDK I get the following error:
/bin/sh ../../../libtool --tag=CC --mode=link /path/to/ndk/bin/i686-linux-android-gcc -g -Wall -Werror -D_BSD_SOURCE -DXP_UNIX -I/path/to/js-1.8.5/js/src/dist/include -I/usr/local/Cellar/android-ndk/r8d/sources/cxx-stl/stlport/stlport -mandroid -fno-short-enums -fno-exceptions -O2 -I/path/to/otp_src_R16B/erts/emulator/beam/ -I/path/to/otp_src_R16B/erts/include/i686-pc-linux-android -I/usr/local/Cellar/android-ndk/r8d/sources/cxx-stl/stlport/stlport -mandroid -L/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86/usr/lib -Wl,-rpath-link=/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86/usr/lib --sysroot=/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86 -llog -Wl,--allow-shlib-undefined -L/opt/local/lib -L/usr/local/lib -o app app-http.o app-main.o app-utf8.o app-util.o -lmozjs185 -lm -lc -L/path/to/js-1.8.5/js/src /path/to/js-1.8.5/js/src/libjs_static.a -L/opt/local/lib -L/usr/local/lib
libtool: link: /path/to/ndk/bin/i686-linux-android-gcc -g -Wall -Werror -D_BSD_SOURCE -DXP_UNIX -I/path/to/js-1.8.5/js/src/dist/include -I/usr/local/Cellar/android-ndk/r8d/sources/cxx-stl/stlport/stlport -mandroid -fno-short-enums -fno-exceptions -O2 -I/path/to/otp_src_R16B/erts/emulator/beam/ -I/path/to/otp_src_R16B/erts/include/i686-pc-linux-android -I/usr/local/Cellar/android-ndk/r8d/sources/cxx-stl/stlport/stlport -mandroid -Wl,-rpath-link=/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86/usr/lib --sysroot=/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86 -Wl,--allow-shlib-undefined -o app app-http.o app-main.o app-utf8.o app-util.o -L/usr/local/Cellar/android-ndk/r8d/platforms/android-14/arch-x86/usr/lib -llog -L/opt/local/lib -L/usr/local/lib -lmozjs185 -lm -lc -L/path/to/js-1.8.5/js/src /path/to/js-1.8.5/js/src/libjs_static.a
src/http.c:31: error: undefined reference to '__stderrp'
src/http.c:31: error: undefined reference to '_fwrite$UNIX2003'
src/sm185.c:246: error: undefined reference to '__stdinp'
src/sm185.c:384: error: undefined reference to '__stderrp'
src/sm185.c:384: error: undefined reference to '_fwrite$UNIX2003'
src/sm185.c:400: error: undefined reference to '__stderrp'
src/sm185.c:400: error: undefined reference to '_fwrite$UNIX2003'
src/sm185.c:408: error: undefined reference to '__stderrp'
src/sm185.c:408: error: undefined reference to '_fwrite$UNIX2003'
src/util.c:34: error: undefined reference to '__stdinp'
src/util.c:109: error: undefined reference to '__stdoutp'
src/util.c:87: error: undefined reference to '__stdoutp'
src/util.c:84: error: undefined reference to '__stdoutp'
src/util.c:213: error: undefined reference to '__stdoutp'
src/util.c:221: error: undefined reference to '_fputs$UNIX2003'
collect2: error: ld returned 1 exit status
Any idea what could be the cause of this error? Did I miss a link to a library? Could it be a badly linked dependancy?
- benoît
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home