Quantcast

ax_lib_hdf5 bug with library ordering, static libraries

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ax_lib_hdf5 bug with library ordering, static libraries

Harald Anlauf
Hello,

I have a system where HDF5 installation seems to differ from what the
autoconf package ax_lib_hdf5 expects:

% h5fc -show
gfortran -I/usr/include -L/usr/lib /usr/lib/libhdf5hl_fortran.a
/usr/lib/libhdf5_hl.a /usr/lib/libhdf5_fortran.a /usr/lib/libhdf5.a
-lpthread -lz -lrt -ldl -lm -Wl,-rpath -Wl,/usr/lib

Using the latest snapshot of ax_lib_hdf5, I get:

configure.in:

AX_LIB_HDF5([serial])
echo "HDF5_LDFLAGS=$HDF5_LDFLAGS"
echo "HDF5_FLIBS=$HDF5_FLIBS"
echo "HDF5_FFLAGS=$HDF5_FFLAGS"

Running configure:

checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for h5cc... /usr/bin/h5cc
checking for HDF5 type... serial
checking for HDF5 libraries... yes (version 1.8.12)
checking hdf5.h usability... yes
checking hdf5.h presence... yes
checking for hdf5.h... yes
checking for H5Fcreate in -lhdf5... yes
checking for main in -lhdf5_hl... yes
checking for matching HDF5 Fortran wrapper... /usr/bin/h5fc
HDF5_LDFLAGS=-L/usr/lib
HDF5_FLIBS= -lm -ldl -lrt -lz -lpthread -lhdf5_fortran -lhdf5
-lhdf5hl_fortran -lhdf5_hl
HDF5_FFLAGS=-I/usr/lib -L/usr/lib -I/usr/include

The ordering of the libraries in HDF5_FLIB seems to get screwed up.
I think the logic in rewriting the FLIB part in lines 270-308 is not
prepared to handle my environment.

Is somebody working on the HDF5 support?

Thanks,
Harald

_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ax_lib_hdf5 bug with library ordering, static libraries

Thomas Jahns-2
Hello,

On 08/30/2016 10:38 PM, Harald Anlauf wrote:
> I have a system where HDF5 installation seems to differ from what the
> autoconf package ax_lib_hdf5 expects:
[...]
> AX_LIB_HDF5([serial])

as exhibited by the AX_ prefix, AX_LIB_HDF5 is not part of autoconf but of the
autoconf macro archive[1]. As such, the primary method to contact the
maintainers is to file a patch at Savannah[2] or contact the maintainers as
spelled out at[3].

Regards, Thomas

[1] https://www.gnu.org/software/autoconf-archive/
[2] https://savannah.gnu.org/projects/autoconf-archive/
[3] https://www.gnu.org/software/autoconf-archive/Introduction.html



_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf

smime.p7s (6K) Download Attachment
Loading...