[MacPorts] #52686: gmt4 @4.5.14_2 : error building gmt4 during install

MacPorts noreply at macports.org
Tue Mar 28 09:21:10 UTC 2017


#52686: gmt4 @4.5.14_2 : error building gmt4 during install
--------------------------+-----------------------
  Reporter:  NestorCerpa  |      Owner:  florian@…
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.4
Resolution:               |   Keywords:
      Port:  gmt4         |
--------------------------+-----------------------

Comment (by anowacki):

 This occurs because the hdf5-18 port installs into
 {{{/opt/local/lib/hdf5-18}}}, but this directory is not added to the
 linker options by the port file for {{{gmt4}}}.  {{{hdf5-18}}} is a
 dependency of {{{gmt}}} via {{{netcdf}}} with the {{{+netcdf4}}} variant.

 I noticed this issue when upgrading to Sierra and installed in the order
 {{{gmt4}}}, {{{gmt5}}}, which did not install {{{hdf5}}} first.  GMT seems
 to link to {{{hdf5}}} fine and I haven't been able to find any problems
 with this.

 I guess the correct fix is to add linker commands to point to
 {{{/opt/local/lib/hdf5-18}}}, though I could only speculate why {{{netcdf
 +netcdf4}}} necessarily has to use {{{hdf5-18}}}.  A current workaround is
 to just install {{{hdf5}}} first.

--
Ticket URL: <https://trac.macports.org/ticket/52686#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list