make/configure fails on a static hdf5 library (version 1.8.11)
Closed this issue · 2 comments
There is a manual fix at the moment:
From: http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg11875.html
In 1.8.11, hdf5 added the capability to use plugins which are dynamically
loaded. If linking with shareable libraries, then the -ldl is already
present due to the mechanisms of shareable libraries; however, if using
static libraries, the -ldl needs to be added manually which is not
currently being done in configure.
after running ./autogen.sh and if you're linking against a static hdf5 library (1.8.11 or later)
you might have to add -ldl as a flag when linking. This can be done in the configure file
Just to add to this (fyi I also needed to make this change for Mouse-Imaging-Centre/RMINC@9c0f920) in configure file look for
the line:
LIBS="-lhdf5 $LIBS"
change it to
LIBS="-lhdf5 $LIBS -ldl"
This is what I needed to do