Re: [netcdfgroup] [netcdf-porting] netcdf 4.1.3 on Mac OS Lion with ifort 12

  • To: Jim Edwards <jedwards@xxxxxxxx>
  • Subject: Re: [netcdfgroup] [netcdf-porting] netcdf 4.1.3 on Mac OS Lion with ifort 12
  • From: Russ Rew <russ@xxxxxxxxxxxxxxxx>
  • Date: Wed, 14 Dec 2011 16:46:22 -0700
Hi Jim,

> Everything builds okay but when I try to run the tests I get a failure to
> link the fortran:
> 
> libtool: link: ifort -I../fortran -I../f90 -I../f90 -I../include -I../oc -g
> -o .libs/tst_f90 tst_f90.o  ../fortran/.libs/libnetcdff.dylib
> /Users/jedwards/src/netcdf-4.1.3/liblib/.libs/libnetcdf.dylib -lm -lz -lcurl
> Undefined symbols for architecture x86_64:
>   "_typesizes_mp_bytesizesok_", referenced from:
>       _MAIN__ in tst_f90.o

Setting the environment variable

  lt_cv_ld_force_load=no

(an internal configure variable from libtool) before invoking the
configure script.  This workaround successfully builds netCDF version
4.1.3 with the Intel ifort Fortran compiler (ifort version 12.1, but
perhaps also earlier versions) on Mac OS X 10.7 (Lion and perhaps
earlier versions).

More details are here:

  
http://www.unidata.ucar.edu/netcdf/docs/known_problems.html#intel-fortran-macosx

Thanks to new Unidata staff member Sean Arms for pointing out this
solution and to Dave Allured (NOAA/PSD/CIRES) for providing another
work-around that pointed the way.

--Russ



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: