Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.7.0
-
None
-
Ubuntu 14.04, probably others
Description
Trying to build Impala according to the instructions on the Apache wiki:
https://cwiki.apache.org/confluence/display/IMPALA/Building+Impala
fails because building shared libs seems to be broken.
$ ${IMPALA_HOME}/buildall.sh -noclean -skiptests -build_shared_libs -format [...] Scanning dependencies of target impalad [100%] Building CXX object be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o Linking CXX executable ../../build/debug/service/impalad ../../../toolchain/openldap-2.4.25/lib/libldap.a(os-ip.o): In function `ldap_int_poll': os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead ../../build/debug/util/libUtil.so: undefined reference to `google_breakpad::ExceptionHandler::WriteMinidump(std::string const&, bool (*)(google_breakpad::MinidumpDescriptor const&, void*, bool), void*)' ../../build/debug/util/libUtil.so: undefined reference to `snappy::MaxCompressedLength(unsigned long)' ../../build/debug/util/libUtil.so: undefined reference to `my_strlen' ../../build/debug/util/libUtil.so: undefined reference to `LZ4_compress' ../../build/debug/util/libUtil.so: undefined reference to `BZ2_bzDecompress' ../../build/debug/util/libUtil.so: undefined reference to `snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)' ../../build/debug/util/libUtil.so: undefined reference to `LZ4_uncompress' ../../build/debug/util/libUtil.so: undefined reference to `ProfilerStop' ../../build/debug/util/libUtil.so: undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)' ../../build/debug/util/libUtil.so: undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find()' ../../build/debug/util/libUtil.so: undefined reference to `snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)' ../../build/debug/util/libUtil.so: undefined reference to `BZ2_bzDecompressInit' ../../build/debug/util/libUtil.so: undefined reference to `BZ2_bzDecompressEnd' ../../build/debug/util/libUtil.so: undefined reference to `BZ2_bzBuffToBuffCompress' ../../build/debug/util/libUtil.so: undefined reference to `google_breakpad::ExceptionHandler::ExceptionHandler(google_breakpad::MinidumpDescriptor const&, bool (*)(void*), bool (*)(google_breakpad::MinidumpDescriptor const&, void*, bool), void*, bool, int)' ../../build/debug/util/libUtil.so: undefined reference to `ProfilerStart' ../../build/debug/util/libUtil.so: undefined reference to `BZ2_bzBuffToBuffDecompress' ../../build/debug/util/libUtil.so: undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../../build/debug/util/libUtil.so: undefined reference to `snappy::RawUncompress(char const*, unsigned long, char*)' collect2: error: ld returned 1 exit status make[3]: *** [be/build/debug/service/impalad] Error 1 make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2 make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2 make: *** [impalad] Error 2 Error in /home/impala-user/Impala/bin/make_impala.sh at line 144: ${MAKE_CMD} -j${IMPALA_BUILD_THREADS:-4} impalad Error in Impala/buildall.sh at line 319: $IMPALA_HOME/bin/make_impala.sh ${MAKE_IMPALA_ARGS}