see if this link helps 
"http://stackoverflow.com/questions/32036372/ubuntu-14-04-rails-missing-file";


      From: Dan Smith <dsm...@pivotal.io>
 To: dev@geode.apache.org 
 Sent: Tuesday, January 17, 2017 5:04 PM
 Subject: Re: Native client build fails linking shared library?
   
Here's the results of the VERBOSE make. I do see a -lz in the linker line. 

[ 28%] Linking CXX executable gfcppcache_unittests
cd /home/dan/MyStuff/Code/gemfire/native/cppcache/test && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/gfcppcache_unittests.dir/link.txt --verbose=1
/usr/bin/c++   -g   -m64 
CMakeFiles/gfcppcache_unittests.dir/ByteArrayFixture.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/ExpirationActionTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/PdxLocalReaderTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/DataInputTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/DataOutputTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/ByteArrayTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/NanoTimerTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/AutoDeleteTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/SharedPtrTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/DiskPolicyTypeTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/CacheXmlParserTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/SharedBaseTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/gfcppBannerTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/CacheableKeysTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/TcrMessage_unittest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/InterestResultPolicyTest.cpp.o 
CMakeFiles/gfcppcache_unittests.dir/ByteArray.cpp.o  -o gfcppcache_unittests 
-rdynamic ../src/libgfcppcache-static.a -lz 
../../dependencies/ACE/ACE-extern-prefix/lib/libACE.a -lpthread -ldl -lrt 
../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a 
../../dependencies/gtest/gtest-extern-prefix/src/gtest-extern-build//libgtest.a 
../../dependencies/gtest/gtest-extern-prefix/src/gtest-extern-build//libgtest_main.a
 
../../dependencies/libxml2/libxml2-extern-prefix/lib/libxml2.a(xmlIO.o): In 
function `xmlGzfileOpen_real':
xmlIO.c:(.text+0xf9d): undefined reference to `gzdopen'

-Dan

On Tue, Jan 17, 2017 at 4:43 PM, Jacob Barrett <jbarr...@pivotal.io> wrote:

Dan,

Add VERBOSE=1 to your make command.

make -j8 VERBOSE=1

To see details of the compile commands. Some of the third party
dependencies won't show them but give it a try.

-Jake


On Tue, Jan 17, 2017 at 4:34 PM Michael William Dodge <mdo...@pivotal.io>
wrote:

> 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