Closed
Bug 780551
Opened 12 years ago
Closed 12 years ago
error: undefined reference to 'inflateEnd' when building CPP_UNIT_TESTS on NDK r8b with gold linker
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 777892
People
(Reporter: m_kato, Unassigned)
References
Details
When I use --with-system-zlib and gcc-4.6 on ndk r8b (w/ gold linker) for testing, the following error occurs. js modules uses zlib, so should we link $(MOZ_ZLIB_LIBS) when building CPP_UNIT_TESTS?
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -o TestLineBreak.o -c -fvisibility=hidden -I/home/makoto/Development/hg.mozilla.org/mobile/intl/lwbrk/tests/../public -I/home/makoto/Development/hg.mozilla.org/mobile/intl/lwbrk/tests -I. -I../../../dist/include -I/home/makoto/Development/hg.mozilla.org/objdir-android/dist/include/nspr -I/home/makoto/Development/hg.mozilla.org/objdir-android/dist/include/nss -I../../../dist/include/testing -fPIC -isystem /home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/include -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -mandroid -fno-short-enums -fno-exceptions -Wno-psabi -march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=softfp -I/home/makoto/Development/hg.mozilla.org/objdir-android/build/stlport -I/home/makoto/bin/android-ndk-r8b/sources/cxx-stl/stlport/stlport -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -isystem /home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MF .deps/TestLineBreak.o.pp /home/makoto/Development/hg.mozilla.org/mobile/intl/lwbrk/tests/TestLineBreak.cpp
/home/makoto/Development/hg.mozilla.org/objdir-android/_virtualenv/bin/python /home/makoto/Development/hg.mozilla.org/mobile/config/pythonpath.py -I../../../config /home/makoto/Development/hg.mozilla.org/mobile/config/expandlibs_exec.py --depend .deps/TestLineBreak.pp --target TestLineBreak --uselist -- /home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -isystem /home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/include -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -mandroid -fno-short-enums -fno-exceptions -Wno-psabi -march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=softfp -I/home/makoto/Development/hg.mozilla.org/objdir-android/build/stlport -I/home/makoto/bin/android-ndk-r8b/sources/cxx-stl/stlport/stlport -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -o TestLineBreak TestLineBreak.o -mandroid -L/home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/lib -Wl,-rpath-link=/home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/lib --sysroot=/home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm -llog -Wl,--allow-shlib-undefined -fuse-ld=gold -mthumb -L/home/makoto/Development/hg.mozilla.org/objdir-android/build/stlport -L/home/makoto/bin/android-ndk-r8b/sources/cxx-stl/stlport/libs/armeabi-v7a/ -Wl,-z,noexecstack -Wl,--icf=safe -Wl,-rpath-link,/home/makoto/Development/hg.mozilla.org/objdir-android/dist/bin -Wl,-rpath-link,/usr/local/lib -L/home/makoto/Development/hg.mozilla.org/objdir-android/dist/lib -lmozglue -Wl,--wrap=getaddrinfo,--wrap=freeaddrinfo,--wrap=gai_strerror -Wl,--wrap=fork,--wrap=pthread_atfork,--wrap=raise,--wrap=PR_GetEnv,--wrap=PR_SetEnv -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete -Wl,--wrap=strdup,--wrap=strndup -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size -Wl,--wrap=_Znwj,--wrap=_Znaj,--wrap=_ZdlPv,--wrap=_ZdaPv -L../../../dist/bin -L../../../dist/lib /home/makoto/Development/hg.mozilla.org/objdir-android/dist/lib/libxpcomglue_s.a -L/home/makoto/Development/hg.mozilla.org/objdir-android/dist/bin -lxpcom -lmozalloc -L/home/makoto/Development/hg.mozilla.org/objdir-android/dist/lib -lnspr4 -lplc4 -lplds4 /home/makoto/Development/hg.mozilla.org/objdir-android/dist/lib/libjs_static.a -lstlport_static
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'atexit' in /home/makoto/bin/android-ndk-r8b/platforms/android-5/arch-arm/usr/lib/crtbegin_dynamic.o is referenced by DSO /home/makoto/Development/hg.mozilla.org/objdir-android/dist/lib/libmozglue.so
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::Compressor::init():/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:52: error: undefined reference to 'deflateInit_'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::Compressor::compressMore():/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:69: error: undefined reference to 'deflate'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::Compressor::compressMore():/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:69: error: undefined reference to 'deflate'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::Compressor::finish():/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:87: error: undefined reference to 'deflateEnd'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int):/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:109: error: undefined reference to 'inflateInit_'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int):/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:114: error: undefined reference to 'inflate'
/home/makoto/bin/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../../dist/lib/libjs_static.a(jsutil.o): in function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int):/home/makoto/Development/hg.mozilla.org/mobile/js/src/jsutil.cpp:116: error: undefined reference to 'inflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [TestLineBreak] Error 1
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•