Description of problem: The compiler wrappers attempt to link with the static libraries even if they are not installed. Version-Release number of selected component (if applicable): hdf5-1.8.14-3.fc22.x86_64 How reproducible: Always Steps to Reproduce: 1. Install hdf5, hdf5-devel, and maybe hdf5-openmpi(-devel). 2. Do _not_ install hdf5-static or hdf5-openmpi-static. 3. Run h5cc or h5pcc on a file (e.g., one of the examples from /usr/share/hdf5_examples). Actual results: With h5cc: gcc: error: /usr/lib64/libhdf5_hl.a: No such file or directory gcc: error: /usr/lib64/libhdf5.a: No such file or directory With h5pcc: gcc: error: /usr/lib64/openmpi/lib/libhdf5_hl.a: No such file or directory gcc: error: /usr/lib64/openmpi/lib/libhdf5.a: No such file or directory Expected results: Compile should complete without issue using shared library. Additional info: I am aware that there's an environment variable HDF5_USE_SHLIB, but this really should just be automatic; especially since Fedora's default stance is shared-not-static, it should definitely work with static libraries installed.
> it should definitely work with static libraries installed Oops, that should say *without*.
Thanks for the report. I've got a fix, but I'm currently only planning on releasing for F23+ unless some other fixes need to be backported to F22.
hdf5-1.8.15-8.patch1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1d66035553
hdf5-1.8.15-8.patch1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update hdf5' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-1d66035553
hdf5-1.8.15-8.patch1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.