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

970707: netcdf problem



Peter,

> To: address@hidden
> From: Peter Slootweg <address@hidden>
> Subject: netcdf problem
> Organization: .
> Keywords: 199707041558.JAA06051

In the above message, you wrote:

> I have trouble building the netcdf library that I need to use Matlab 5 on
> cdf files. Chuck Denham advised me to use netcdf-3 instead of netcdf-2
> that I used up to now to build the mexcdf gateway. I would also want
> to take advantage of increased efficiency of netcdf-3.
> But I have tremendous problems building it for SunOs 4.1.3, which is
> installed on our workstations. The only ansi compiler I have available 
> is gcc-2.5.8 on a workstation that has the SC1.0 fortran conmpiler.

Those are old compilers (the Fortran compiler is quite old (~10 years)).
I'm not surprised that you're having problems.

Though our policy is to not support old compilation environments, I'll
see what I can do.

> 
> The problem arises in the fortran test nf_test. Apparently the library
> libansi.a conflicts with the fortran compiler. Because it is not
> included in the SC1.0 release I took it from another machine (with the
> same architecture), which does not have the gcc installed.  I tried to
> compile without $(LIBS) in the nf_test Makefile, but then the loader
> complains about not finding _strerror. in addition to _memmove. As the
> c tests are ok I think that memmove must be right, so strerror must be
> wrong (or incompatible). Maybe that is the problem.
>
> My uname -a is:
> 
>  SunOS lintilla 4.1.3 6 sun4m
> 
> I attach all the files that you ask in INSTALL
> 
> which gcc gives
> /usr/local/bin/gcc
> which is a link to /usr/public/gcc-2.5.8/bin/sparc-sun-sunos4.1.3-gcc
> 
> which f77
> /usr/lang/f77 which is a link to /usr/lang/SC1.0/f77
> 
> c++ was not used.
> 
> How can I get a working netcdf-3?
> 
> Dr. A. Peter Slootweg
> Dept of Geological Sciences
> University of Durham
> Durham DH1 3LE, U.K.
> 
> 
> 
> - ----------
> X-Sun-Data-Type: default
> X-Sun-Data-Description: default
> X-Sun-Data-Name: VERSION
> X-Sun-Content-Lines: 1
> 
> 3.3.1
> - ----------
> X-Sun-Data-Type: default
> X-Sun-Data-Description: default
> X-Sun-Data-Name: configure.out
> X-Sun-Content-Lines: 61
> 
> creating cache ./config.cache
> checking for m4... m4
> checking user-defined C compiler "gcc"
> checking C compiler... works
> checking how to make dependencies... cc -M
> configure: warning: Empty CXX variable
> configure: warning: The C++ interface will not be built
> checking how to run the C preprocessor... gcc -E
> checking user-defined FORTRAN compiler "f77"... works
> checking for FORTRAN .F compiler... 
> checking if FORTRAN compiler handles *.F files... yes
> checking for C-equivalent to FORTRAN routine "SUB"... sub_
> checking for FORTRAN "byte"... yes
> checking for FORTRAN "integer*2"... yes
> checking if FORTRAN "byte" is C "signed char"... yes
> checking if FORTRAN "byte" is C "short"... no
> checking if FORTRAN "byte" 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"... byte
> checking for FORTRAN-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for -lc... no
> checking for -lm... yes
> checking for ar... ar
> checking for ranlib... ranlib
> checking for stdlib.h... yes
> checking for sys/types.h... yes
> checking for strerror... yes
> checking for ftruncate... yes
> checking for st_blksize in struct stat... yes
> checking whether cross-compiling... no
> checking for IEEE floating point format... yes
> checking for ANSI C header files... no
> checking for size_t... yes
> checking for off_t... yes
> checking for ssize_t... no
> checking for ptrdiff_t... yes
> checking for uchar... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... yes
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking size of float... 4
> checking size of double... 8
> checking size of off_t... 4
> checking size of size_t... 4
> checking for catman... no
> checking for makewhatis... no
> checking for manual-page index command... 
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> updating cache ./config.cache
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> fortran/nfconfig.inc is unchanged
> creating libsrc/ncconfig.h
> - ----------
> X-Sun-Data-Type: default
> X-Sun-Data-Description: default
> X-Sun-Data-Name: make.out
> X-Sun-Content-Lines: 67
> 
> 
> Making `all' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/libsrc
> 
> gcc -c -g -I.  -DNDEBUG attr.c
> gcc -c -g -I.  -DNDEBUG dim.c
> gcc -c -g -I.  -DNDEBUG error.c
> gcc -c -g -I.  -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
> gcc -c -g -I.  -DNDEBUG nc.c
> gcc -c -g -I.  -DNDEBUG ncio.c
> gcc -c -g -I.  -DNDEBUG ncx.c
> gcc -c -g -I.  -DNDEBUG putget.c
> gcc -c -g -I.  -DNDEBUG string.c
> gcc -c -g -I.  -DNDEBUG v1hpg.c
> gcc -c -g -I.  -DNDEBUG v2i.c
> gcc -c -g -I.  -DNDEBUG 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
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `all' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/fortran
> 
> gcc -c -g -I../libsrc  -DNDEBUG fort-attio.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-control.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-dim.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-genatt.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-geninq.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-genvar.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-lib.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-misc.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-v2compat.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-vario.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-var1io.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-varaio.c
> gcc -c -g -I../libsrc  -DNDEBUG fort-varmio.c
> gcc -c -g -I../libsrc  -DNDEBUG 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
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `all' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/ncdump
> 
> gcc -c -g -I../libsrc  -DNDEBUG ncdump.c
> gcc -c -g -I../libsrc  -DNDEBUG vardata.c
> gcc -c -g -I../libsrc  -DNDEBUG dumplib.c
> gcc -o ncdump -g  ncdump.o vardata.o dumplib.o -L../libsrc -lnetcdf 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `all' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/ncgen
> 
> gcc -c -g -I../libsrc -I.  -DNDEBUG main.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG load.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG ncgentab.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG escapes.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG getfill.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG init.c
> gcc -c -g -I../libsrc -I.  -DNDEBUG genlib.c
> gcc -o ncgen -g  main.o load.o ncgentab.o escapes.o  getfill.o init.o 
> genlib.o ../libsrc/libnetcdf.a -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> Not making `cxx/all' because no C++ compiler
> - ----------
> X-Sun-Data-Type: default
> X-Sun-Data-Description: default
> X-Sun-Data-Name: maketest.out
> X-Sun-Content-Lines: 499
> 
> 
> Making `test' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/libsrc
> 
> gcc -c -g -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
> gcc -o t_nc -g  t_nc.o -L. -lnetcdf -L/ps/ridge/software/whips/netcdf-3.3.1 
> -lansi
> ./t_nc
> 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 ***
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `test' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/nctest
> 
> gcc -c -g -I../libsrc  -DNDEBUG varget.c
> gcc -c -g -I../libsrc  -DNDEBUG vargetg.c
> gcc -c -g -I../libsrc  -DNDEBUG varput.c
> gcc -c -g -I../libsrc  -DNDEBUG varputg.c
> gcc -c -g -I../libsrc  -DNDEBUG vardef.c
> gcc -c -g -I../libsrc  -DNDEBUG vartests.c
> gcc -c -g -I../libsrc  -DNDEBUG vputget.c
> gcc -c -g -I../libsrc  -DNDEBUG vputgetg.c
> gcc -c -g -I../libsrc  -DNDEBUG driver.c
> gcc -c -g -I../libsrc  -DNDEBUG cdftests.c
> gcc -c -g -I../libsrc  -DNDEBUG dimtests.c
> gcc -c -g -I../libsrc  -DNDEBUG rec.c
> gcc -c -g -I../libsrc  -DNDEBUG atttests.c
> gcc -c -g -I../libsrc  -DNDEBUG misctest.c
> gcc -c -g -I../libsrc  -DNDEBUG add.c
> gcc -c -g -I../libsrc  -DNDEBUG error.c
> gcc -c -g -I../libsrc  -DNDEBUG emalloc.c
> gcc -c -g -I../libsrc  -DNDEBUG val.c
> gcc -c -g -I../libsrc  -DNDEBUG slabs.c
> gcc -o nctest -g  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 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 
> ./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 /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `test' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/nc_test
> 
> gcc -c -g -I../libsrc  -DNDEBUG nc_test.c
> gcc -c -g -I../libsrc  -DNDEBUG error.c
> gcc -c -g -I../libsrc  -DNDEBUG test_get.c
> gcc -c -g -I../libsrc  -DNDEBUG test_put.c
> gcc -c -g -I../libsrc  -DNDEBUG test_read.c
> gcc -c -g -I../libsrc  -DNDEBUG test_write.c
> gcc -c -g -I../libsrc  -DNDEBUG util.c
> gcc -o nc_test -g  nc_test.o  error.o  test_get.o  test_put.o  test_read.o  
> test_write.o  util.o -L../libsrc -lnetcdf -lm 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> ./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 ***
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `test' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/fortran
> 
> + f77 -c -g -w ftest.F 
> /tmp/cpp.29962.0.f:
>  MAIN ftest:
>       tncacpy:
>       tncadel:
>       tncagt:
>       tncapt:
>  BLOCK DATA:
>       tncddef:
>       tncinq:
>       tncredf:
>       tncvdef:
>       tncvgt:
>       tncvgt1:
>       tncvpt:
>       tncvpt1:
>       tfills:
> 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
> f77 -o ftest -g -w  ftest.o ../libsrc/libnetcdf.a 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> ./ftest
> *** Testing nccre ...
> *** Testing ncddef ...
> *** Testing ncvdef ...
> *** Testing ncapt, ncaptc ...
> *** Testing ncclos ...
> *** Testing ncvpt1 ...
> *** Testing ncvgt1 ...
> *** Testing ncvpt ...
> *** Testing ncopn, ncinq, ncdinq, ncvinq, ncanam, ncainq ...
> *** Testing ncvgt, ncvgtc ...
> *** Testing ncagt, ncagtc ...
> *** Testing ncredf, ncdren, ncvren, ncaren, ncendf ...
> *** Testing ncacpy ...
> *** Testing ncadel ...
> *** Testing fill values ...
> 
> Returning to directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> 
> 
> Making `test' in directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/nf_test
> 
> + f77 -c -g -w test_get.F 
> /tmp/cpp.00108.0.f:
>       test_nf_get_var1_text:
>       test_nf_get_var1_int1:
>       test_nf_get_var1_int2:
>       test_nf_get_var1_int:
>       test_nf_get_var1_real:
>       test_nf_get_var1_double:
>       test_nf_get_var_text:
>       test_nf_get_var_int1:
>       test_nf_get_var_int2:
>       test_nf_get_var_int:
>       test_nf_get_var_real:
>       test_nf_get_var_double:
>       test_nf_get_vara_text:
>       test_nf_get_vara_int1:
>       test_nf_get_vara_int2:
>       test_nf_get_vara_int:
>       test_nf_get_vara_real:
>       test_nf_get_vara_double:
>       test_nf_get_vars_text:
>       test_nf_get_vars_int1:
>       test_nf_get_vars_int2:
>       test_nf_get_vars_int:
>       test_nf_get_vars_real:
>       test_nf_get_vars_double:
>       test_nf_get_varm_text:
>       test_nf_get_varm_int1:
>       test_nf_get_varm_int2:
>       test_nf_get_varm_int:
>       test_nf_get_varm_real:
>       test_nf_get_varm_double:
>       test_nf_get_att_text:
>       test_nf_get_att_int1:
>       test_nf_get_att_int2:
>       test_nf_get_att_int:
>       test_nf_get_att_real:
>       test_nf_get_att_double:
> + f77 -c -g -w test_put.F 
> /tmp/cpp.00130.0.f:
>       hash_text:
>       hash_int1:
>       hash_int2:
>       hash_int:
>       hash_real:
>       hash_double:
>       check_vars_text:
>       check_vars_int1:
>       check_vars_int2:
>       check_vars_int:
>       check_vars_real:
>       check_vars_double:
>       check_atts_text:
>       check_atts_int1:
>       check_atts_int2:
>       check_atts_int:
>       check_atts_real:
>       check_atts_double:
>       test_nf_put_var1_text:
>       test_nf_put_var1_int1:
>       test_nf_put_var1_int2:
>       test_nf_put_var1_int:
>       test_nf_put_var1_real:
>       test_nf_put_var1_double:
>       test_nf_put_var_text:
>       test_nf_put_var_int1:
>       test_nf_put_var_int2:
>       test_nf_put_var_int:
>       test_nf_put_var_real:
>       test_nf_put_var_double:
>       test_nf_put_vara_text:
>       test_nf_put_vara_int1:
>       test_nf_put_vara_int2:
>       test_nf_put_vara_int:
>       test_nf_put_vara_real:
>       test_nf_put_vara_double:
>       test_nf_put_vars_text:
>       test_nf_put_vars_int1:
>       test_nf_put_vars_int2:
>       test_nf_put_vars_int:
>       test_nf_put_vars_real:
>       test_nf_put_vars_double:
>       test_nf_put_varm_text:
>       test_nf_put_varm_int1:
>       test_nf_put_varm_int2:
>       test_nf_put_varm_int:
>       test_nf_put_varm_real:
>       test_nf_put_varm_double:
>       test_nf_put_att_text:
>       test_nf_put_att_int1:
>       test_nf_put_att_int2:
>       test_nf_put_att_int:
>       test_nf_put_att_real:
>       test_nf_put_att_double:
> + f77 -c -g -w nf_error.F 
> /tmp/cpp.00142.0.f:
>       error:
>       errori:
>       errord:
>       errorc:
>       errore:
> + f77 -c -g -w nf_test.F 
> /tmp/cpp.00150.0.f:
>       usage:
>       test:
>  MAIN nf_test:
> + f77 -c -g -w test_read.F 
> /tmp/cpp.00157.0.f:
>       test_nf_strerror:
>       test_nf_open:
>       test_nf_close:
>       test_nf_inq:
>       test_nf_inq_natts:
>       test_nf_inq_ndims:
>       test_nf_inq_nvars:
>       test_nf_inq_unlimdim:
>       test_nf_inq_dimid:
>       test_nf_inq_dim:
>       test_nf_inq_dimlen:
>       test_nf_inq_dimname:
>       test_nf_inq_varid:
>       test_nf_inq_var:
>       test_nf_inq_vardimid:
>       test_nf_inq_varname:
>       test_nf_inq_varnatts:
>       test_nf_inq_varndims:
>       test_nf_inq_vartype:
>       test_nf_inq_att:
>       test_nf_inq_attlen:
>       test_nf_inq_atttype:
>       test_nf_inq_attname:
>       test_nf_inq_attid:
> + f77 -c -g -w test_write.F 
> /tmp/cpp.00166.0.f:
>       test_nf_create:
>       test_nf_redef:
>       test_nf_enddef:
>       test_nf_sync:
>       test_nf_abort:
>       test_nf_def_dim:
>       test_nf_rename_dim:
>       test_nf_def_var:
>       test_nf_rename_var:
>       test_nf_copy_att:
>       test_nf_rename_att:
>       test_nf_del_att:
>       test_nf_set_fill:
> + f77 -c -g -w util.F 
> /tmp/cpp.00172.0.f:
>       print_nok:
>       inrange:
>       inrange_uchar:
>       inrange_float:
>       inrange3:
>       equal:
>       int_vec_eq:
>       roll:
>       index2ncindexes:
>       index2indexes:
>       indexes2index:
>       hash:
>       hash4:
>       char2type:
>       init_dims:
>       init_gatts:
>       prod:
>       init_gvars:
>       def_dims:
>       def_vars:
>       put_atts:
>       put_vars:
>       write_file:
>       check_dims:
>       check_vars:
>       check_atts:
>       check_file:
>       varid:
>       natts:
>       att_name:
>       att_type:
>       att_len:
>       internal_min:
>       internal_max:
>       external_min:
>       external_max:
>       in_internal_range:
>       len_trim:
> gcc -c -g   -DNDEBUG fortlib.c
> f77 -o nf_test -g -w  test_get.o       test_put.o      nf_error.o      
> nf_test.o       test_read.o     test_write.o    util.o  fortlib.o 
> ../libsrc/libnetcdf.a  -lm -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> ./nf_test -c
> *** Bus Error = signal 10 code 2 
> Traceback has been recorded in file:
>        
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/nf_test/./nf_test.trace 
> Note: Line numbers for system and library calls may be incorrect 
> *** Abort
> make: Fatal error: Command failed for target `test.nc'
> Current working directory 
> /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src/nf_test
> *** Error code 1
> make: Fatal error: Command failed for target `subdir_target'
> Current working directory /tmp_mnt/ps/ridge/software/whips/netcdf-3.3.1/src
> *** Error code 1
> make: Fatal error: Command failed for target `nf_test/test'

I'm afraid I couldn't see what the problem is from the above.  It might
be possible to pinpoint the problem by exchanging email, but that
process promises to be fairly time-consuming.

May I suggest some potentially faster alternatives:

    1.  Contact your Sun representative and see about obtaining the
        latest C and Fortran compilers (SC3.0.1, I believe).  Here in
        the States, the cost to an educational institution is only about
        $100 per license.

    2.  Obtain the latest C and Fortran compilers from Sun on a
        trial-use basis for free.  In the U.S., these compilers are
        available from the following URL:

            http://www.sun.com/workshop/tnb/sparc1x/

        You might have a similar URL in the UK.

        The compilers will work for 30 days (plenty of time to build the
        netCDF packge) after which time they'll stop working until you
        purchase a license for them from Sun.

Please let me know if this helps.

> - ----------
> X-Sun-Data-Type: default
> X-Sun-Data-Description: default
> X-Sun-Data-Name: config.log
> X-Sun-Content-Lines: 93
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1017: gcc -c -g -DNDEBUG conftest.c 1>&5
> configure:1217: gcc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1316: f77 -c -g -w conftest.f
> conftest.f:
>  MAIN:
> configure:1415: f77 -o conftest -g -w conftest.F  
> /tmp/cpp.28331.0.f:
>  MAIN:
> configure:1456: f77 -c -g -w conftest.f
> conftest.f:
>  MAIN:
> configure:1491: f77 -c -g -w conftest.f
> conftest.f:
>       sub:
> configure:1514: f77 -c -g -w conftest.f
> conftest.f:
>       sub:
> configure:1548: gcc -c -DNDEBUG -g conftest.c
> configure:1550: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1552: ./conftest
> configure:1590: gcc -c -DNDEBUG -g conftest.c
> configure:1592: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1594: ./conftest
> configure:1632: gcc -c -DNDEBUG -g conftest.c
> configure:1634: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1636: ./conftest
> configure:1678: gcc -c -DNDEBUG -g conftest.c
> configure:1680: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1682: ./conftest
> configure:1720: gcc -c -DNDEBUG -g conftest.c
> configure:1722: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1724: ./conftest
> configure:1764: gcc -c -DNDEBUG -g conftest.c
> configure:1766: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1768: ./conftest
> configure:1806: gcc -c -DNDEBUG -g conftest.c
> configure:1808: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1810: ./conftest
> configure:1848: gcc -c -DNDEBUG -g conftest.c
> configure:1850: f77 -o conftest -g -w  conftestf.f conftest.o 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi
> conftestf.f:
>  MAIN:
> configure:1852: ./conftest
> configure:1882: f77 -c -g -w conftest.f
> conftest.f:
>  MAIN:
> configure:1903: f77 -c -g -w conftest.f
> conftest.f:
>  MAIN:
> configure:1943: gcc -o conftest -g -DNDEBUG  conftest.c -lc  
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> ld: Undefined symbol 
>    _tanh 
> collect2: ld returned 2 exit status
> configure:1977: gcc -o conftest -g -DNDEBUG  conftest.c -lm  
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2072: gcc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2106: gcc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2156: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2204: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2238: gcc -c -g -DNDEBUG conftest.c 1>&5
> configure:2270: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2322: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2351: gcc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2672: gcc -c -g -DNDEBUG conftest.c 1>&5
> configure: In function `t':
> configure:2667: `bogus' undeclared (first use this function)
> configure:2667: (Each undeclared identifier is reported only once
> configure:2667: for each function it appears in.)
> configure:2667: parse error before `endian'
> configure:2718: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2756: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2790: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2824: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2858: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2892: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2930: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> configure:2968: gcc -o conftest -g -DNDEBUG  conftest.c 
> -L/ps/ridge/software/whips/netcdf-3.3.1 -lansi 1>&5
> 
> 
> ------- End of Forwarded Message

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