Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g-voelker opened this issue Mar 2, 2021 · 2 comments
Open

Comments

@g-voelker
Copy link

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.

@fulminemizzega
Copy link

Take a look here https://www.hdfgroup.org/downloads/hdf5/
I've managed to build the package pynio on conda-forge by adding -DH5_USE_110_API

@g-voelker
Copy link
Author

Great find @fulminemizzega ! Thanks for pointing this out. That actually means that this is an out-of-date issue for a dependency of pynio as one is required to use the legacy extension of HDF 5, version 1.10 (as opposed to the now up-to-date version 1.12).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants