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.
Carl, >Date: Mon, 26 Aug 1996 10:55:56 -0700 >From: address@hidden (Carl M. Lund) >Organization: Los Alamos National Laboratory >To: address@hidden >Keywords: 199608221440.AA29398 In the above message you wrote: > Having gotten jackets.c, netcdf.inc and ftest.f made on a different > UNIX platform per your "known problems" file, I now can "make all", but > "make test" gives an error message. What does this failure mean? Below is > my last installation pass, including "make test". ... > making `test' in directory /usr/tmp/cmlund/dnetcdf/netcdf-2.4.3/src/nctest > > c89 -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 ../libsrc/libnetcdf.a > ./nctest > *** Testing nccreate ... Unable to open file: testfile.nc > Error Explanation: > ok *** > *** Testing ncopen ... Unable to open file: tooth-fairy.nc > Error Explanation:Make: "./nctest" terminated due to signal 11 (core dumped) > > Stop. > Make: "dir=`echo nctest/test | sed 's,/.*,,'`; \ > target=`echo nctest/test | sed "s,$dir/,,"`; \ > cd $dir && \ > echo "making \`$target' in directory `pwd`" && \ > echo "" && \ > make \ > prefix=/usr/tmp/cmlund/dnetcdf/netcdf-2.4.3 > exec_prefix=/usr/tmp/cmlund/dnetcdf/netcdf-2.4.3 \ > $target || exit 1": Error code 1 > rho - 47 >logout Try applying the enclosed patch to libsrc/xdrffio.c. Then re-execute a `make all' and a `make test'. Please let me know what you discover. -------- Steve Emmerson <address@hidden> --------Begin patch Index: xdrffio.c =================================================================== RCS file: /upc/share/CVS/netcdf/libsrc/xdrffio.c,v retrieving revision 2.7 diff -c -r2.7 xdrffio.c *** 2.7 1996/06/27 19:38:48 --- xdrffio.c 1996/08/26 18:48:11 *************** *** 349,355 **** --- 349,364 ---- * we will try to issue the message directly to * file handle 2 (stderr) * + * */ + #if 1 + /* + * I don't see it. Steve Emmerson 1996-08-26 + */ + nc_serror("filename \"%s\"", path) ; + #else + if( ncopts & NC_VERBOSE ) + { write(2,mess1,strlen(mess1)); write(2,path,strlen(path)); write(2,mess2,1); /* end of line */ *************** *** 357,364 **** write(2,_fdc_errlist[stat.sw_error - 5000], strlen(_fdc_errlist[stat.sw_error - 5000])); write(2,mess2,1); /* end of line */ - /* nc_serror("filename \"%s\"", path) ; */ return (-1); } if( ncmode & NC_CREAT ) { --- 366,374 ---- write(2,_fdc_errlist[stat.sw_error - 5000], strlen(_fdc_errlist[stat.sw_error - 5000])); write(2,mess2,1); /* end of line */ return (-1); + } + #endif } if( ncmode & NC_CREAT ) {