FORTRAN and Shared Libraries

Is it possible to build HDF5 1.8.x as shared libraries and also build the FORTRAN interface libraries? We are on OS X 10.10.5 and use gfortran 5.x and need to have HDF5 as shared libraries?

Thanks

···

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson@bluequartz.net

You cannot build shared libraries when enabling Fortran for 1.8 or 1.10 on the Mac using ifort or gfortran.

We reported the problem to Intel at

https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/543831?language=de

but I’m not sure if they’ve fixed the problem of COMMON+EQUIVALENCE in their current version of ifort.

We have not investigated the problem with gfortran in detail, but I would suspect that it also has similar problems since it fails the tests in a similar manner.

Scot

···

On Jan 11, 2016, at 12:40 PM, Michael Jackson <mike.jackson@bluequartz.net<mailto:mike.jackson@bluequartz.net>> wrote:

Is it possible to build HDF5 1.8.x as shared libraries and also build the FORTRAN interface libraries? We are on OS X 10.10.5 and use gfortran 5.x and need to have HDF5 as shared libraries?

Thanks
--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson@bluequartz.net<mailto:mike.jackson@bluequartz.net>

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

I actually just tried 1.8.16 using CMake to configure and it let me create shared libraries when enabling FORTRAN. Unfortunately the names of some targets were changed (hdf5->hdf5-shared) and so it broke compatibility with one of our other dependent libraries (ITK).

···

--
Mike Jackson [mike.jackson@bluequartz.net]

On Jan 11, 2016, at 3:36 PM, Scot Breitenfeld <brtnfld@hdfgroup.org> wrote:

You cannot build shared libraries when enabling Fortran for 1.8 or 1.10 on the Mac using ifort or gfortran.

We reported the problem to Intel at

https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/543831?language=de <https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/543831?language=de>

but I’m not sure if they’ve fixed the problem of COMMON+EQUIVALENCE in their current version of ifort.

We have not investigated the problem with gfortran in detail, but I would suspect that it also has similar problems since it fails the tests in a similar manner.

Scot

On Jan 11, 2016, at 12:40 PM, Michael Jackson <mike.jackson@bluequartz.net <mailto:mike.jackson@bluequartz.net>> wrote:

Is it possible to build HDF5 1.8.x as shared libraries and also build the FORTRAN interface libraries? We are on OS X 10.10.5 and use gfortran 5.x and need to have HDF5 as shared libraries?

Thanks
--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson@bluequartz.net <mailto:mike.jackson@bluequartz.net>

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org <mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5