Bug ID 1179521
Summary netcdf-cxx4 packages built against out-of-date version of HDF5
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter zed.three@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Building and running the following short test program results in a crash:

    #include <netcdf>

    int main() {
      netCDF::NcFile file("test.nc", netCDF::NcFile::replace);
    }

compiled like

    g++ test_hello.cxx $(ncxx4-config --libs) $(ncxx4-config --cflags)


Error text:

    Warning! ***HDF5 library version mismatched error***
    The HDF5 header files used to compile this application do not match
    the version used by the HDF5 library to which this application is linked.
    Data corruption or segmentation faults may occur if the application
continues.
    This can happen when an application was compiled by one version of HDF5 but
    linked with a different version of static or shared HDF5 library.
    You should recompile the application or check your shared library related
    settings such as 'LD_LIBRARY_PATH'.
    You can, at your own risk, disable this warning by setting the environment
    variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
    Setting it to 2 or higher will suppress the warning messages totally.
    Headers are 1.10.5, library is 1.10.7

    (HDF5 build configuration details omitted)


Workaround is as suggested in the error message, setting
HDF5_DISABLE_VERSION_CHECK=1.

This doesn't seem to affect the netCDF C library, I've not checked the Fortran
version though. It *does* affect the HPC variant.


You are receiving this mail because: