#43867: netcdf not building on snow leopard ------------------------+----------------------- Reporter: gnurser@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: netcdf | ------------------------+----------------------- Comment (by gnurser@…): Replying to [comment:15 smasson@…]:
The directory {{{
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/netcdf/files
}}} is not existing... I guess it is {{{
/opt/local/var/macports/sources/rsync.macports.org/release/ports/science/netcdf/files
}}}[[BR]]
I needed the /tarballs this time (though not the last time I tried this kind of thing), but a better way to get to it is cd $(port dir netcdf)
I am right?[[BR]] I also think the the file as to be saved as patch-netcdf.diff and not patch_netcdf.diff[[BR]]
Careless of me. Yes.
I tried with netcdf-4.3.2_0+dap+gcc48+netcdf4+openmpi which has the same
error :
{{{ :info:build Undefined symbols for architecture x86_64: :info:build "_H5Pset_fapl_mpiposix", referenced from: :info:build import-atom in libnetcdf.dylib :info:build ld: symbol(s) not found for architecture x86_64 :info:build collect2: error: ld returned 1 exit status }}}
With the modifications given in (i), (ii) and (iii), I get this new error message in the main.log file:
{{{ :info:patch patching file configure :info:patch ---> Applying patch-netcdf.diff :debug:patch Environment: CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_netcdf/netcdf/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.9' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_netcdf/netcdf/work/netcdf-c-4.3.2" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_netcdf/netcdf/work/netcdf-c-4.3.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/science/netcdf/files /patch-netcdf.diff' :info:patch can't find file to patch at input line 5 :info:patch Perhaps you used the wrong -p or --strip option? :info:patch The text leading up to this was: :info:patch -------------------------- :info:patch |diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md :info:patch |index 27f228c..1a69d17 100644 :info:patch |--- a/RELEASE_NOTES.md :info:patch |+++ b/RELEASE_NOTES.md
You need to do in (i) a global removal of a/ and b/ so e.g. the above 2 lines become
:info:patch {{{|---}}} RELEASE_NOTES.md[[BR]]
:info:patch |+++ RELEASE_NOTES.md
-- Ticket URL: <https://trac.macports.org/ticket/43867#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X