[MacPorts] #21983: netcdf does not link against hdf5 when required
MacPorts
noreply at macports.org
Sat Oct 10 12:48:04 PDT 2009
#21983: netcdf does not link against hdf5 when required
--------------------------------------+-------------------------------------
Reporter: adfernandes@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: netcdf
--------------------------------------+-------------------------------------
Various reports around the web indicate that netcdf, on the mac, can fail
with an infamous '''Error dyld: Symbol not found:
_H5P_CLS_FILE_ACCESS_g''' error. According to the Unidata FAQ entry
[http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#o_problem_mac
http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#o_problem_mac]
the "solution" is to compile netcdf with '''-g''' rather than '''-O2'''
gcc options.
After much tinkering, I've discovered that this advice is incorrect, and
have emailed ''support-netcdf @ unidata.ucar.edu'' the correct solution,
below, asking them to update their web page.
The problem is that their configure scripts fail to add an '''-lhdf5''' to
the autotools-generated Makefile. The iconv, szlib, and zilb dylibs all
get added, but somehow hdf5 gets left out.
Thankfully, the simple fix is to add the library manually through the
environment variables.
--
Ticket URL: <http://trac.macports.org/ticket/21983>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list