If you have BUILD_SHARED_LIBS set in your cmake environment when building Impala, you will need to manually clear your local toolchain version of gflags when you have this commit:
https://github.com/apache/incubator-impala/commit/d79e01ef9fec559d4ebe57d41539f4e4164ae78f in your local branch. This is because the following toolchain commit: https://github.com/cloudera/native-toolchain/commit/f32e122eaa9932f52b7c3f4c205045f3522e88dd enabled shared library building for gflags (needed by the above Impala commit), but did not change the gflags version or patch level since there were no code changes. To do this, simply remove the toolchain gflags dir: rm -rf ${IMPALA_TOOLCHAIN}/gflags-${IMPALA_GFLAGS_VERSION} ${IMPALA_HOME}/bin/bootstrap_toolchain.py Then re-run cmake however you usually do (whether by buildall.sh or make or otherwise), and you should be good to go. Let me know if you have questions! Henry
