New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28554 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

hdf5-18: Enable static fortran libs and shared c/c++ libs together

Reported by: eborisch@… Owned by: mmoll@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: hdf5-18

Description

By default, hdf5 1.8 (upstream) disables shared libs on OSX whenever the fortran interface is built, but actually knows (they do it for some other compilers) how to build c/c++ shared and fortran static. The supplied portfile patch and associated patch files enable this configuration in macports.

If everyone else has good luck with them (i tested on x86_64 and gcc44; make test passed all tests) I'll submit the change upstream.

Attachments

Portfile.diff (1.3 KB) - added by eborisch@… 2 years ago.
patch-configure.diff (314 bytes) - added by eborisch@… 2 years ago.
patch-config-apple.diff (631 bytes) - added by eborisch@… 2 years ago.

Change History

Changed 2 years ago by eborisch@…

Changed 2 years ago by eborisch@…

Changed 2 years ago by eborisch@…

comment:1 Changed 2 years ago by mmoll@…

  • Status changed from new to closed
  • Resolution set to fixed

Works for me, too. Thanks for the patches. I have committed them in r76521. Please do submit the patches upstream.

comment:2 Changed 2 years ago by eborisch@…

For the record, I submitted following comments upstream (http://www.hdfgroup.org/about/contact-form.html) 4/7/2011:

While the shared fortran HDF5 libraries may not function on OSX, the shared C libraries certainly do. Two minor changes to the logic in will enable building static+shared C/C++ and the static Fortan libraries at the same time, as is already supported for some other compiler variations:

configure[.in] : add a case to check for Darwin and then set H5_FORTRAN_SHARED="no" among the existing un-supported shared fortran compiler checks. (line 845 of configure.in)

config/apple : remove the "Fortran doesn't work with shared libraries" section (lines 50-57) as this will be redundant with the above change.

comment:3 Changed 2 years ago by eborisch@…

Recieved this reply from the HDF5 group 4/8/2011:

I talked to the developer about this, and he said he had just resolved this issue and the fix will be HDF5-1.8.7 (due out in May).

Note: See TracTickets for help on using tickets.