[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

971107: installing NetCDF 3.3.1 under Linux using NAG f90



Alec,

>Date: Thu, 6 Nov 1997 10:18:12 +0200 (SAT) 
>From: Alec Joubert <address@hidden>
>Organization: University of the Witwatersrand/Climatology Research Group
>To: Steve Emmerson <address@hidden>
>Subject: installing NetCDF 3.3.1 under Linux using f90 
>Keywords: 199711051121.EAA12731

In the above message, you wrote:

> Dear Steve
> 
> Thanks for the help, I appreciate it.
> 
> On your advice, I have downloaded and attempted to install netcdf-3.3.1.
> I'm sorry to say that I seem to be having the same set of problems.
> I have used a variety of compilation options indicated in the INSTALL file
> included with the source code, as well as in the "other-builds" html page,
> but I don't seem to be getting very far with the fortran side of things.
> The software is not reconising files with the .F extension. So I copied
> ftest.F to ftest.f - and got a sequence of errors associated that look
> very much like what I had yesterday.
> 
> Once again, I've attached a bunch of files which will tell you what I've
> been doing. Can you suggest where things might be going wrong?
> 
> 
> Alec
> 
> 
> PS - a bit more info about my machine :
> DELL Poweredge 4100 with a Pentium Pro chip
> running RedHat Linux kernel 2.0.28
> NAG fortran 90 compiler installed, as well as gcc 2.7.2 c-compiler.

Just out of curiosity, do you have the g77(1) Fortran compiler on your
system?  We do and it worked fine.

> 
> 
> -------------------------------------------------------------------------------
> Dr Alec Joubert                   
> Climatology Research Group         Tel:   +27 11 716 2998
> University of the Witwatersrand    Fax    +27 11 716 3161
> P.O. Wits 2050                     Email: address@hidden    
> SOUTH AFRICA                       WWW:   http://crg.bpb.wits.ac.za
> -------------------------------------------------------------------------------
> 
> Content-Description: config options used

> CPPFLAGS='-DNDEBUG -DNAGf90Fortran' CC=/usr/bin/cc CFLAGS=-O 
> FC=/usr/local/bin/f90 FFLAGS=-O CXX=/usr/bin/c++ ./configure 
> --prefix=/usr/local >& configure.log

> Content-Description: created during configure

The "config.log" file looked OK.

> Content-Description: using commands in compile_options

> loading cache ./config.cache

The above line indicates that the configure script that you executed
didn't start with a "clean slate" but rather used information leftover
from a previous execution.  In general, if you want to try a different
set of configuration options (different compilers, different options,
etc.) then you should do the following:

    1.  Go to the top-level source directory.

    2.  Execute the command "make distclean".

    3.  Remove the file "config.cache" if it exists (this file hold
        information from a previous execution of the configure script).

    4.  Set the environment variables.

    5.  Execute the configure script.

    6.  Proceed with the "make"s.

> checking for m4... (cached) m4
> checking user-defined C compiler "/usr/bin/cc"
> checking C compiler... works
> checking how to make dependencies... false
> checking for /usr/bin/c++... (cached) /usr/bin/c++
> checking C++ compiler "/usr/bin/c++"... works
> checking how to run the C preprocessor... (cached) /usr/bin/cc -E
> checking user-defined FORTRAN compiler "/usr/local/bin/f90"... works
> checking for FORTRAN .F compiler... 
> checking if FORTRAN compiler handles *.F files... no
> checking for FORTRAN preprocessor... /usr/bin/cc -E
> checking for C-equivalent to FORTRAN routine "SUB"... sub_
> checking for FORTRAN "byte"... no
> checking for FORTRAN "integer*1"... yes
> checking for FORTRAN "integer*2"... yes
> checking if FORTRAN "integer*1" is C "signed char"... yes
> checking if FORTRAN "integer*1" is C "short"... no
> checking if FORTRAN "integer*1" is C "int"... no
> checking if FORTRAN "integer*2" is C "short"... yes
> checking if FORTRAN "integer*2" is C "int"... no
> checking if FORTRAN "integer" is C "int"... yes
> checking if FORTRAN "real" is C "float"... yes
> checking if FORTRAN "doubleprecision" is C "double"... yes
> checking for FORTRAN-equivalent to netCDF "byte"... integer*1
> checking for FORTRAN-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for -lc... (cached) no

Wherever "(cached)" appears in the output from the configure script, the
script is using a value determined from a previous execution.

> checking for -lm... (cached) yes
> checking for ar... (cached) ar
> checking for ranlib... (cached) ranlib
> checking for stdlib.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for strerror... (cached) yes
> checking for ftruncate... (cached) yes
> checking for st_blksize in struct stat... (cached) yes
> checking whether cross-compiling... (cached) no
> checking for IEEE floating point format... yes
> checking for ANSI C header files... (cached) yes
> checking for size_t... (cached) yes
> checking for off_t... (cached) yes
> checking for ssize_t... (cached) yes
> checking for ptrdiff_t... (cached) yes
> checking for uchar... (cached) no
> checking whether char is unsigned... (cached) no
> checking whether byte ordering is bigendian... (cached) no
> checking size of short... (cached) 2
> checking size of int... (cached) 4
> checking size of long... (cached) 4
> checking size of float... (cached) 4
> checking size of double... (cached) 8
> checking size of off_t... (cached) 4
> checking size of size_t... (cached) 4
> checking for manual-page index command... 
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> fortran/nfconfig.inc is unchanged
> creating libsrc/ncconfig.h
> Content-Description: make >& make.log
> 
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `all' in directory /home/local/src/netcdf-3.3.1/src/libsrc
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/libsrc'
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran attr.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran dim.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran error.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran -DVERSION=`cat ../VERSION` 
> libvers.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran nc.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran ncio.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran ncx.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran putget.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran string.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran v1hpg.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran v2i.c
> /usr/bin/cc -c -O -I.  -DNDEBUG -DNAGf90Fortran var.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
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/libsrc'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `all' in directory /home/local/src/netcdf-3.3.1/src/fortran
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/fortran'
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-attio.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-control.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-dim.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-genatt.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-geninq.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-genvar.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-lib.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-misc.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-v2compat.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-vario.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-var1io.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-varaio.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-varmio.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran fort-varsio.c
> ar cru         ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o 
> fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o 
> fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o 
> fort-varsio.o
> ranlib ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/fortran'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `all' in directory /home/local/src/netcdf-3.3.1/src/ncdump
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/ncdump'
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran ncdump.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran vardata.c
> /usr/bin/cc -c -O -I../libsrc  -DNDEBUG -DNAGf90Fortran dumplib.c
> /usr/bin/cc -o ncdump -O  ncdump.o vardata.o dumplib.o -L../libsrc -lnetcdf  
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/ncdump'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `all' in directory /home/local/src/netcdf-3.3.1/src/ncgen
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/ncgen'
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran main.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran load.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran ncgentab.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran escapes.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran getfill.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran init.c
> /usr/bin/cc -c -O -I../libsrc -I.  -DNDEBUG -DNAGf90Fortran genlib.c
> /usr/bin/cc -o ncgen -O  main.o load.o ncgentab.o escapes.o getfill.o init.o 
> genlib.o ../libsrc/libnetcdf.a  
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/ncgen'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `all' in directory /home/local/src/netcdf-3.3.1/src/cxx
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/cxx'
> /usr/bin/c++ -c -O  -I../libsrc  -DNDEBUG -DNAGf90Fortran netcdf.cc
> /usr/bin/c++ -c -O  -I../libsrc  -DNDEBUG -DNAGf90Fortran ncvalues.cc
> ar cru         libnetcdf_c++.a netcdf.o ncvalues.o
> ranlib libnetcdf_c++.a
> /usr/bin/c++ -c -O  -I../libsrc  -DNDEBUG -DNAGf90Fortran nctst.cc
> /usr/bin/c++ -o nctst -I../libsrc  -DNDEBUG -DNAGf90Fortran -O   nctst.o 
> libnetcdf_c++.a -L../libsrc -lnetcdf 
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/cxx'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> Content-Description: make test >& test.log
> 
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `test' in directory /home/local/src/netcdf-3.3.1/src/libsrc
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/libsrc'
> 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
> /usr/bin/cc -o t_nc -O  t_nc.o -L. -lnetcdf 
> ./t_nc
> trying again
> dimrename: IXX
> nc_close ret = 0
> 
> reopen id = 3 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 ***
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/libsrc'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `test' in directory /home/local/src/netcdf-3.3.1/src/nctest
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/nctest'
> /usr/bin/cc -o nctest -O  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
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/nctest'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `test' in directory /home/local/src/netcdf-3.3.1/src/nc_test
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/nc_test'
> /usr/bin/cc -o nc_test -O  nc_test.o error.o test_get.o test_put.o 
> test_read.o test_write.o util.o -L../libsrc -lnetcdf -lm 
> ./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_enddef ...  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 ***
> make[2]: Leaving directory `/home/local/src/netcdf-3.3.1/src/nc_test'
> 
> Returning to directory /home/local/src/netcdf-3.3.1/src
> 
> make[1]: Leaving directory `/home/local/src/netcdf-3.3.1/src'
> make[1]: Entering directory `/home/local/src/netcdf-3.3.1/src'
> 
> Making `test' in directory /home/local/src/netcdf-3.3.1/src/fortran
> 
> make[2]: Entering directory `/home/local/src/netcdf-3.3.1/src/fortran'
> /usr/local/bin/f90 -c -O ftest.f
> Error: ftest.f, line 7: Column 6 non-blank on initial line
> Error: ftest.f: Invalid character in label
> Error: ftest.f, line 7: syntax error
>        detected at <illegal token>@DE
> ***Malformed statement
> Error: ftest.f, line 7: Unrecognised statement
> Error: ftest.f, line 14: Non-blank columns 1-5 on continuation line
> ***Malformed statement
> Error: ftest.f, line 112: Symbol MAXNCDIM referenced but never set
>        detected at END@<end-of-statement>
> Error: ftest.f, line 112: Symbol NCVERBOS referenced but never set
>        detected at END@<end-of-statement>
...

Copying "ftest.F" to "ftest.f" can't work: the file *must* be
preprocessed by (in your case) the C preprocessor in order to get the
right declarations for the "byte" and "short" integer types.

I suggest the following:

    1.  Drop into the fortran/ subdirectory.

    2.  Ensure that the file "ftest.F" exists.

    3.  Remove the file "ftest.f".

    4.  Execute the command "make test".
        Redirect standard output and standard error to the same file.
        Send me the file.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>