[MITgcm-support] getting started with NetCDF

Ed Hill ed at eh3.com
Wed Oct 27 11:05:46 EDT 2004


On Tue, 2004-10-26 at 11:14, Matthew Mazloff wrote:
> Hi Ed,
> 
> So I am still having a problem using NetCDF with the dic_example
> when I try to compile i get the error
> 
>  -L/home/mmazloff/pkg/netcdf_g77/lib -lnetcdf
> utils.o(.text+0x780): In function `ifnblnk_':
> : multiple definition of `ifnblnk_'
> mnc_test_utils.o(.text+0x0): first defined here
> utils.o(.text+0x8cc): In function `ilnblnk_':
> : multiple definition of `ilnblnk_'
> mnc_test_utils.o(.text+0x14c): first defined here
> print.o(.text+0x0): In function `print_error__':
> : multiple definition of `print_error__'
> mnc_test_utils.o(.text+0x294): first defined here
> /usr/bin/ld: Warning: size of symbol `print_error__' changed from 238 in 
> mnc_test_utils.o to 954 in print.o
> collect2: ld returned 1 exit status
> make: *** [mitgcmuv] Error 1
> 
> and I have not been able to fix this.


Hi folks,

Just for future reference, the problem here was due to Matt executing:

  $  cd MITgcm/pkg/mnc
  $  make test

which then produced a bunch of supposed-to-be-used-only-for-testing *.F
files within pkg/mnc which were then included by genmake2 when he tried
to build the model.  The fix is was very easy--we just ran a "make
clean" within pkg/mnc to remove those files and re-ran genmake2 and
re-built the model.

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-support mailing list