Skip to content

build of h5reader.c fails when compiling against hdf5-openmpi 1.12.0 #44

@g-voelker

Description

@g-voelker

I have been trying to set up a package of pynio on archlinux with the following package versions:

pynio 1.5.5
python 3.9.1-2
ncl 6.6.2-1
hdf-eos2 2.20-1
hdf-eos5 1.16-2
hdf4 4.2.15-1
hdf5-openmpi 1.12.0-2

Trying to build pynio I encountered the following errors:

libsrc/h5reader.c:42:14: error: too few arguments to function ‘H5Oget_info_by_name3’
   42 |     status = H5Oget_info_by_name(fid, root_name, &oi, H5P_DEFAULT);

libsrc/h5reader.c:2491:83: error: ‘H5O_info2_t’ has no member named ‘addr’
 2491 |             if(NULL == (already_visited = _NclHDF5_addr_visited(udata->seen, oinfo.addr)))

libsrc/h5reader.c:2693:12: error: too few arguments to function ‘H5Oget_info3’
 2693 |         if(H5Oget_info(type, &oi) >= 0)

libsrc/h5reader.c:4486:8: error: too few arguments to function ‘H5Oget_info_by_name3’
 4486 |     if(H5Oget_info_by_name(fid, grp_name, &oinfo, H5P_DEFAULT) < 0)

and similar repetitions. This looks to me like a version incompatibility or a bug in pynio's h5reader.c. All of the errors point to a discrepancy to the header files associated to my hdf5 installation (with openmpi support). Has anyone else encountered this problem?

Any information on a fix would be very much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions