Do you see -lz in the link line?

Sarge

> On 17 Jan, 2017, at 16:24, Dan Smith <dsm...@pivotal.io> wrote:
> 
> I tried building the next-gen-native-client-software-grant branch on an
> ubuntu 16.04 box. It gets about halfway through and then fails with these
> errors. Any ideas?
> 
> [ 49%] Building CXX object
> cppcache/src/CMakeFiles/gfcppcache.dir/PdxLocalWriter.cpp.o
> [ 49%] Building CXX object
> cppcache/src/CMakeFiles/gfcppcache.dir/CacheStatistics.cpp.o
> [ 49%] Linking CXX shared library libgfcppcache.so
> ../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a(xmlIO.o): In
> function `xmlGzfileOpen_real':
> xmlIO.c:(.text+0xf9d): undefined reference to `gzdopen'
> xmlIO.c:(.text+0x1055): undefined reference to `gzopen64'
> ../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a(xmlIO.o): In
> function `xmlGzfileOpenW':
> xmlIO.c:(.text+0x1158): undefined reference to `gzdopen'
> xmlIO.c:(.text+0x11f9): undefined reference to `gzopen64'
> ../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a(xmlIO.o): In
> function `xmlGzfileRead':
> xmlIO.c:(.text+0x1240): undefined reference to `gzread'
> ../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a(xmlIO.o): In
> function `xmlGzfileWrite':
> 
> ...
> 
> collect2: error: ld returned 1 exit status
> cppcache/src/CMakeFiles/gfcppcache.dir/build.make:6212: recipe for target
> 'cppcache/src/libgfcppcache.so' failed
> make[2]: *** [cppcache/src/libgfcppcache.so] Error 1
> CMakeFiles/Makefile2:936: recipe for target
> 'cppcache/src/CMakeFiles/gfcppcache.dir/all' failed
> make[1]: *** [cppcache/src/CMakeFiles/gfcppcache.dir/all] Error 2
> Makefile:149: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> -Dan

Reply via email to