Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#28554 closed enhancement (fixed)

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

Reported by: eborisch (Eric A. Borisch) Owned by: mamoll (Mark Moll)
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 (3)

Portfile.diff (1.3 KB) - added by eborisch (Eric A. Borisch) 10 years ago.
patch-configure.diff (314 bytes) - added by eborisch (Eric A. Borisch) 10 years ago.
patch-config-apple.diff (631 bytes) - added by eborisch (Eric A. Borisch) 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by eborisch (Eric A. Borisch)

Attachment: Portfile.diff added

Changed 10 years ago by eborisch (Eric A. Borisch)

Attachment: patch-configure.diff added

Changed 10 years ago by eborisch (Eric A. Borisch)

Attachment: patch-config-apple.diff added

comment:1 Changed 10 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed

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

comment:2 Changed 10 years ago by eborisch (Eric A. Borisch)

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 10 years ago by eborisch (Eric A. Borisch)

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.