[MacPorts] #21983: netcdf does not link against hdf5 when required
#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_probl... http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#o_probl...] 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
#21983: netcdf does not link against hdf5 when required --------------------------------------+------------------------------------- Reporter: adfernandes@… | Owner: adfernandes@… Type: update | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: netcdf --------------------------------------+------------------------------------- Changes (by adfernandes@…): * owner: macports-tickets@… => adfernandes@… * status: new => assigned Comment: Commit -- Ticket URL: <http://trac.macports.org/ticket/21983#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21983: netcdf does not link against hdf5 when required ---------------------------------------+------------------------------------ Reporter: adfernandes@… | Owner: adfernandes@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: netcdf | ---------------------------------------+------------------------------------ Changes (by adfernandes@…): * status: assigned => closed * resolution: => fixed Comment: Committed as r59162 -- Ticket URL: <http://trac.macports.org/ticket/21983#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21983: netcdf does not link against hdf5 when required ---------------------------------------+------------------------------------ Reporter: adfernandes@… | Owner: adfernandes@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: netcdf | ---------------------------------------+------------------------------------ Comment(by adfernandes@…): Grr... other code, it turns out, needs the '''hdf5_hl''' library, too. My first round of testing worked, but the second failed... grr... No idea if the '''hdf5_cpp''' or '''hdf5_hl_cpp''' libraries are needed, too, but we'll leave them out for now. Committed as r59163. -- Ticket URL: <http://trac.macports.org/ticket/21983#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts