[MacPorts] #42414: netcdf-fortran @4.2_11 dyld failure

MacPorts noreply at macports.org
Wed Mar 12 00:15:47 PDT 2014


#42414: netcdf-fortran @4.2_11 dyld failure
-----------------------------+-----------------------
  Reporter:  lists@…         |      Owner:  takeshi@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.2.1
Resolution:                  |   Keywords:
      Port:  netcdf-fortran  |
-----------------------------+-----------------------

Comment (by carsten@…):

 I found a workaround by prepending LDFLAGS="-Wl,-flat_namespace" FFLAGS
 ="-fno-second-underscore" before configure.  Steps to reproduce:

 {{{
 # port install netcdf-fortran +mpich+gcc48
 --->  Activating netcdf-fortran @4.2_11+gcc48+mpich
 # nm /opt/local/lib/libnetcdff.dylib | grep nf_create
                 U _nf_create_
 000000000000446b T _nf_create__
 # cd /opt/local/var/macports/build/_Users_lemmen_devel_macports_netcdf-
 fortran/netcdf-fortran/work/netcdf-fortran-4.2
 # make distclean ; LDFLAGS="-Wl,-flat_namespace" FFLAGS="-fno-second-
 underscore" ./configure --prefix=/opt/local  && make install
 # nm /opt/local/lib/libnetcdff.dylib | grep nf_create
 00000000000018e0 T _nf_create_
 }}}

 Tested and working on Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37
 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64

-- 
Ticket URL: <https://trac.macports.org/ticket/42414#comment:16>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list