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.
Christi, >Date: Mon, 1 Jul 1996 14:13:55 -0600 (MDT) >From: Christi Forsythe <address@hidden> >Organization: Sandia National Laboritory >To: address@hidden >Subject: 960701: the user that wouldn't go away >Keywords: 199607012112.AA03147 In the above message you wrote: > Steve, > > well, I thought everything was working okay. After I had a successful > install of netCDF 2.4.2 I realized that I hadn't made the necessary > changes in the netcdf.h file that we normally need. I usually > edit src/libsr/netcdf.h and change the following variables > #define MAX_NC_DIMS 8192 > #define MAX_NC_VARS 8192 > > I made the above changes and then built netCDF again. When I executed > % make test > maketest.log > the following occurred > *** 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 ... *** absurd arg to emalloc: 32768 > Segmentation fault (core dumped) Interesting problem. Apparently, this is due to a "fix" that shouldn't have made it out our door. :-( I suggest the following: 1. Undo the edits you made to try and get the package to work (but keep the new maximum values in libsrc/netcdf.h). 2. Go to the nctest/ subdirectory. 3. Edit the file emalloc.c: remove the test for `size' being greater than 32767 in both functions. 4. Go to the top-level source directory. 5. Execute `make all'. 6. Execute `make test'. Please let me know if this helps. -------- Steve Emmerson <address@hidden>