This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>To: address@hidden >From: address@hidden >Subject: Almost success on MAC OSX (10.0.1) and Absoft Fortran (beta) >Organization: UCAR/Unidata >Keywords: 200104242134.f3OLY7L11616, Absoft Fortran, MacOSX Hi Howard, > Here's what happened. Any ideas? Yes, it looks like the AbsoftProFortran version of f77 didn't recognize the #include "netcdf.inc" statement in ftest.F, because the error messages indicate it thought MAXNCDIM is a variable rather than a parameter defined in the "netcdf.inc" file. Is there some flag you can give f77 that will make it recognize and process #include statements? If so, you'll have to define it as part of the FFLAGS environment variable and rerun the configure script, after making "clean" and removing config.cache. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Howard Chandler wrote: [cube:~/Development/netcdf-3.5.0/src] chandler% make test Making `test' in directory /Users/chandler/Development/netcdf-3.5.0/src/libsrc cc -c -O -DAbsoftProFortran -I. -DNDEBUG t_nc.c ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o putget.o string.o v1hpg.o v2i.o var.o ranlib libnetcdf.a cc -o t_nc -O -DAbsoftProFortran t_nc.o -L. -lnetcdf ./t_nc dimrename: IXX nc_close ret = 0 reopen id = 6 for filename test.nc NC done GATTR VAR VATTR VATTR VATTR VATTR VATTR VATTR fill_seq indices 1 2 3 75.000000 != 2.718282 Done got val = 3.250000 got val = 0.000000 got val = 2.718282 got val = 82555 got val = 97 got NC_CHAR val = A (0x41) got NC_CHAR val = B (0x42) got NC_CHAR val = "The red death had long devastated the country." got val = A (0x41) got val = B (0x42) got val = "The red death had long devastated the country." got vals = 0.000000 ... 447.000000 re nc_close ret = 0 cmp test.nc test_nc.sav *** Success *** Returning to directory /Users/chandler/Development/netcdf-3.5.0/src Making `test' in directory /Users/chandler/Development/netcdf-3.5.0/src/nc_test cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG nc_test.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG error.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG test_get.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG test_put.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG test_read.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG test_write.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG util.c cc -o nc_test -O -DAbsoftProFortran nc_test.o error.o test_get.o test_put.o test_read.o test_write.o util.o -L../libsrc -lnetcdf ./nc_test -c ./nc_test *** Testing nc_strerror ... ok *** Testing nc_open ... ok *** Testing nc_close ... ok *** Testing nc_inq ... ok *** Testing nc_inq_dimid ... ok *** Testing nc_inq_dim ... ok *** Testing nc_inq_dimlen ... ok *** Testing nc_inq_dimname ... ok *** Testing nc_inq_varid ... ok *** Testing nc_inq_var ... ok *** Testing nc_inq_natts ... ok *** Testing nc_inq_ndims ... ok *** Testing nc_inq_nvars ... ok *** Testing nc_inq_unlimdim ... ok *** Testing nc_inq_vardimid ... ok *** Testing nc_inq_varname ... ok *** Testing nc_inq_varnatts ... ok *** Testing nc_inq_varndims ... ok *** Testing nc_inq_vartype ... ok *** Testing nc_get_var_text ... 179 good comparisons. ok *** Testing nc_get_var_uchar ... 264 good comparisons. ok *** Testing nc_get_var_schar ... 269 good comparisons. ok *** Testing nc_get_var_short ... 682 good comparisons. ok *** Testing nc_get_var_int ... 1189 good comparisons. ok *** Testing nc_get_var_long ... 1189 good comparisons. ok *** Testing nc_get_var_float ... 1194 good comparisons. ok *** Testing nc_get_var_double ... 1207 good comparisons. ok *** Testing nc_get_var1_text ... 179 good comparisons. ok *** Testing nc_get_var1_uchar ... 264 good comparisons. ok *** Testing nc_get_var1_schar ... 269 good comparisons. ok *** Testing nc_get_var1_short ... 682 good comparisons. ok *** Testing nc_get_var1_int ... 1189 good comparisons. ok *** Testing nc_get_var1_long ... 1189 good comparisons. ok *** Testing nc_get_var1_float ... 1194 good comparisons. ok *** Testing nc_get_var1_double ... 1207 good comparisons. ok *** Testing nc_get_vara_text ... 179 good comparisons. ok *** Testing nc_get_vara_uchar ... 264 good comparisons. ok *** Testing nc_get_vara_schar ... 269 good comparisons. ok *** Testing nc_get_vara_short ... 682 good comparisons. ok *** Testing nc_get_vara_int ... 1189 good comparisons. ok *** Testing nc_get_vara_long ... 1189 good comparisons. ok *** Testing nc_get_vara_float ... 1194 good comparisons. ok *** Testing nc_get_vara_double ... 1207 good comparisons. ok *** Testing nc_get_vars_text ... 179 good comparisons. ok *** Testing nc_get_vars_uchar ... 264 good comparisons. ok *** Testing nc_get_vars_schar ... 269 good comparisons. ok *** Testing nc_get_vars_short ... 682 good comparisons. ok *** Testing nc_get_vars_int ... 1189 good comparisons. ok *** Testing nc_get_vars_long ... 1189 good comparisons. ok *** Testing nc_get_vars_float ... 1194 good comparisons. ok *** Testing nc_get_vars_double ... 1207 good comparisons. ok *** Testing nc_get_varm_text ... 179 good comparisons. ok *** Testing nc_get_varm_uchar ... 264 good comparisons. ok *** Testing nc_get_varm_schar ... 269 good comparisons. ok *** Testing nc_get_varm_short ... 682 good comparisons. ok *** Testing nc_get_varm_int ... 1189 good comparisons. ok *** Testing nc_get_varm_long ... 1189 good comparisons. ok *** Testing nc_get_varm_float ... 1194 good comparisons. ok *** Testing nc_get_varm_double ... 1207 good comparisons. ok *** Testing nc_get_att_text ... 7 good comparisons. ok *** Testing nc_get_att_uchar ... 5 good comparisons. ok *** Testing nc_get_att_schar ... 7 good comparisons. ok *** Testing nc_get_att_short ... 15 good comparisons. ok *** Testing nc_get_att_int ... 19 good comparisons. ok *** Testing nc_get_att_long ... 19 good comparisons. ok *** Testing nc_get_att_float ... 21 good comparisons. ok *** Testing nc_get_att_double ... 27 good comparisons. ok *** Testing nc_inq_att ... ok *** Testing nc_inq_attname ... ok *** Testing nc_inq_attid ... ok *** Testing nc_inq_attlen ... ok *** Testing nc_inq_atttype ... ok *** Testing nc_create ... ok *** Testing nc_redef ... 1386 good comparisons. 34 good comparisons. ok *** Testing nc_sync ... 34 good comparisons. 1386 good comparisons. ok *** Testing nc_abort ... 1386 good comparisons. 34 good comparisons. ok *** Testing nc_def_dim ... ok *** Testing nc_rename_dim ... ok *** Testing nc_def_var ... ok *** Testing nc_put_var_text ... 179 good comparisons. ok *** Testing nc_put_var_uchar ... 264 good comparisons. ok *** Testing nc_put_var_schar ... 269 good comparisons. ok *** Testing nc_put_var_short ... 682 good comparisons. ok *** Testing nc_put_var_int ... 1189 good comparisons. ok *** Testing nc_put_var_long ... 1189 good comparisons. ok *** Testing nc_put_var_float ... 1194 good comparisons. ok *** Testing nc_put_var_double ... 1207 good comparisons. ok *** Testing nc_put_var1_text ... 179 good comparisons. ok *** Testing nc_put_var1_uchar ... 264 good comparisons. ok *** Testing nc_put_var1_schar ... 269 good comparisons. ok *** Testing nc_put_var1_short ... 682 good comparisons. ok *** Testing nc_put_var1_int ... 1189 good comparisons. ok *** Testing nc_put_var1_long ... 1189 good comparisons. ok *** Testing nc_put_var1_float ... 1194 good comparisons. ok *** Testing nc_put_var1_double ... 1207 good comparisons. ok *** Testing nc_put_vara_text ... 179 good comparisons. ok *** Testing nc_put_vara_uchar ... 264 good comparisons. ok *** Testing nc_put_vara_schar ... 269 good comparisons. ok *** Testing nc_put_vara_short ... 682 good comparisons. ok *** Testing nc_put_vara_int ... 1189 good comparisons. ok *** Testing nc_put_vara_long ... 1189 good comparisons. ok *** Testing nc_put_vara_float ... 1194 good comparisons. ok *** Testing nc_put_vara_double ... 1207 good comparisons. ok *** Testing nc_put_vars_text ... 179 good comparisons. ok *** Testing nc_put_vars_uchar ... 264 good comparisons. ok *** Testing nc_put_vars_schar ... 269 good comparisons. ok *** Testing nc_put_vars_short ... 682 good comparisons. ok *** Testing nc_put_vars_int ... 1189 good comparisons. ok *** Testing nc_put_vars_long ... 1189 good comparisons. ok *** Testing nc_put_vars_float ... 1194 good comparisons. ok *** Testing nc_put_vars_double ... 1207 good comparisons. ok *** Testing nc_put_varm_text ... 179 good comparisons. ok *** Testing nc_put_varm_uchar ... 264 good comparisons. ok *** Testing nc_put_varm_schar ... 269 good comparisons. ok *** Testing nc_put_varm_short ... 682 good comparisons. ok *** Testing nc_put_varm_int ... 1189 good comparisons. ok *** Testing nc_put_varm_long ... 1189 good comparisons. ok *** Testing nc_put_varm_float ... 1194 good comparisons. ok *** Testing nc_put_varm_double ... 1207 good comparisons. ok *** Testing nc_rename_var ... 1386 good comparisons. ok *** Testing nc_put_att_text ... 7 good comparisons. ok *** Testing nc_put_att_uchar ... 5 good comparisons. ok *** Testing nc_put_att_schar ... 7 good comparisons. ok *** Testing nc_put_att_short ... 15 good comparisons. ok *** Testing nc_put_att_int ... 19 good comparisons. ok *** Testing nc_put_att_long ... 19 good comparisons. ok *** Testing nc_put_att_float ... 21 good comparisons. ok *** Testing nc_put_att_double ... 27 good comparisons. ok *** Testing nc_copy_att ... 34 good comparisons. ok *** Testing nc_rename_att ... 34 good comparisons. ok *** Testing nc_del_att ... ok *** Testing nc_set_fill ... 2796 good comparisons. ok Total number of failures: 0 *** Success *** Returning to directory /Users/chandler/Development/netcdf-3.5.0/src Making `test' in directory /Users/chandler/Development/netcdf-3.5.0/src/nctest cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG varget.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG vargetg.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG varput.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG varputg.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG vardef.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG vartests.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG vputget.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG vputgetg.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG driver.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG cdftests.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG dimtests.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG rec.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG atttests.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG misctest.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG add.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG error.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG emalloc.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG val.c cc -c -O -DAbsoftProFortran -I../libsrc -DNDEBUG slabs.c cc -o nctest -O -DAbsoftProFortran varget.o vargetg.o varput.o varputg.o vardef.o vartests.o vputget.o vputgetg.o driver.o cdftests.o dimtests.o rec.o atttests.o misctest.o add.o error.o emalloc.o val.o slabs.o -L../libsrc -lnetcdf ./nctest *** Testing nccreate ... ok *** *** Testing ncopen ... ok *** *** Testing ncredef ... ok *** *** Testing ncendef ... ok *** *** Testing ncclose ... ok *** *** Testing ncinquire ... ok *** *** Testing ncsync ... ok *** *** Testing ncabort ... ok *** *** Testing ncdimdef ... ok *** *** Testing ncdimid ... ok *** *** Testing ncdiminq ... ok *** *** Testing ncdimrename ... ok *** *** Testing ncvardef ... ok *** *** Testing ncvarid ... ok *** *** Testing ncvarinq ... ok *** *** Testing ncvarput1 ... ok *** *** Testing ncvarget1 ... ok *** *** Testing ncvarput ... ok *** *** Testing ncvarget ... ok *** *** Testing ncvarputg ... ok *** *** Testing ncvargetg ... ok *** *** Testing ncrecinq ... ok *** *** Testing ncrecput ... ok *** *** Testing ncrecget ... ok *** *** Testing ncvarrename ... ok *** *** Testing ncattput ... ok *** *** Testing ncattinq ... ok *** *** Testing ncattget ... ok *** *** Testing ncattcopy ... ok *** *** Testing ncattname ... ok *** *** Testing ncattrename ... ok *** *** Testing ncattdel ... ok *** *** Testing nctypelen ... ok *** cmp testfile.nc testfile_nc.sav Returning to directory /Users/chandler/Development/netcdf-3.5.0/src Making `test' in directory /Users/chandler/Development/netcdf-3.5.0/src/fortran + f77 -c -DAbsoftProFortran ftest.F FORTRAN 77 Compiler 7.0, Copyright (c) 1987-2001, Absoft Corp. error on line 112 of ftest.F: dimsiz - adjustable array is not a dummy argument warning on line 112 of ftest.F: local variable MAXNCDIM never referenced error on line 675 of ftest.F: DATA statement syntax error error on line 679 of ftest.F: DATA statement syntax error error on line 682 of ftest.F: DATA statement syntax error error on line 893 of ftest.F: DATA statement syntax error error on line 1111 of ftest.F: DATA statement syntax error make[2]: *** [ftest.o] Error 1 make[1]: *** [subdir_target] Error 1 make: *** [fortran/test] Error 2