Opened 11 years ago
Last modified 11 years ago
#42414 closed defect
netcdf-fortran @4.2_11 dyld failure — at Initial Version
Reported by: | jsalort (Julien Salort) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | netcdf-fortran |
Description
A simple f90 file calling nf90_create results in the following error:
dyld: lazy symbol binding failed: Symbol not found: _nf_create_ Referenced from: /opt/local/lib/libnetcdff.5.dylib Expected in: flat namespace dyld: Symbol not found: _nf_create_ Referenced from: /opt/local/lib/libnetcdff.5.dylib Expected in: flat namespace Program received signal SIGTRAP: Trace/breakpoint trap. Backtrace for this error: #0 0x10e40de7d #1 0x10e40e38b #2 0x7fff85ab0909 Trace/BPT trap: 5
The file was compiled with the command:
`nc-config --fc` `nc-config --fflags` -o essai essai.f90 `nc-config --flibs`
The result of nc-config appears to be ok:
$ nc-config --fc /opt/local/bin/gfortran-mp-4.8 $ nc-config --fflags -pipe -Os -I/opt/local/include $ nc-config --flibs -L/opt/local/lib -lnetcdff -L/opt/local/lib -Wl,-headerpad_max_install_names -lnetcdf -lnetcdf
I have tried several gcc variants (gcc44, gcc46 and gcc48) but I get the same result each time on Mountain Lion with MacPorts 2.2.1. The same versions on Mavericks appears to work. Enclosed is an example simple source file grabbed from netcdf website, which reproduces the problem.
Note: See
TracTickets for help on using
tickets.
Example source file