[Paraview-developers] [EXTERNAL] Re: Compile errors

Scott, W Alan wascott at sandia.gov
Wed Sep 7 22:12:05 EDT 2016


Ben - correct.  I am using a system (i.e, I built it) HDF5, but an operating system supplied ZLIB.

From CMakeCache.txt,

VTK_USE_SYSTEM_ZLIB:BOOL=OFF
VTK_USE_SYSTEM_HDF5:BOOL=ON


Is that bad?  Should I build my own ZLIB?

Alan


-----Original Message-----
From: Ben Boeckel [mailto:ben.boeckel at kitware.com] 
Sent: Wednesday, September 07, 2016 7:37 AM
To: Scott, W Alan <wascott at sandia.gov>
Cc: paraview-developers at paraview.org
Subject: [EXTERNAL] Re: [Paraview-developers] Compile errors

On Wed, Sep 07, 2016 at 01:47:45 +0000, Scott, W Alan wrote:
> I am having compiler errors on redsky with a master pull from this afternoon.  Here is what I see:
> 
> [ 99%] Linking CXX shared library 
> ../../../lib/libvtkPVCatalystPython27D-pv5.1.so
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateEnd'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `compress2'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateEnd'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateEnd'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflate'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `compress2'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `compress2'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateInit_'
> make[2]: *** [bin/pvdataserver] Error 1
> make[1]: *** [CommandLineExecutables/CMakeFiles/pvdataserver.dir/all] 
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflate'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflate'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateEnd'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateInit_'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateEnd'
> make[2]: *** [bin/pvrenderserver] Error 1
> make[1]: *** 
> [CommandLineExecutables/CMakeFiles/pvrenderserver.dir/all] Error 2
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateInit_'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `compress2'
> make[2]: *** [bin/pvpython] Error 1
> make[1]: *** [CommandLineExecutables/CMakeFiles/pvpython.dir/all] 
> Error 2
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `compress2'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflate'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateInit_'
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflate'
> [ 99%] Built target GeodesicMeasurement
> make[2]: *** [bin/pvbatch] Error 1
> make[1]: *** [CommandLineExecutables/CMakeFiles/pvbatch.dir/all] Error 
> 2
> /projects/viz/paraview/support/Linux-redsky-x86_64/install/hdf5-1.8.13/lib/libhdf5.so.8.0.2: undefined reference to `inflateInit_'
> make[2]: *** [bin/pvserver] Error 1
> make[1]: *** [CommandLineExecutables/CMakeFiles/pvserver.dir/all] 
> Error 2

It looks like you're using a system HDF5, but not a system zlib (or HDF5 isn't specifying that it also needs zlib linked too). Also, what version of CMake are you using? If it is 3.6, does using 3.5 work?

--Ben


More information about the Paraview-developers mailing list