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

[netCDF #IZQ-213986]: error in make of netcdf-4.1.1

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.


  • Subject: [netCDF #IZQ-213986]: error in make of netcdf-4.1.1
  • Date: Thu, 31 Mar 2011 13:31:44 -0600

> Hello:
> 
> One of our guys (Bill Godfrey) discovered a fix by updating lines 7 thru
> 10 of genbin.c
> FROM:
> #include <ctype.h>      /* for isprint() */
> #include "includes.h"
> #include "nciter.h"
> #include "offsets.h"
> TO:
> #include "includes.h"
> #include "nciter.h"
> #include "offsets.h"
> #include <ctype.h>      /* for isprint() */
> 
> ...and then building netcdf4.  The make still generates errors but does
> not stop.  My question is: Can we ignore these errors and use this build
> of netcdf4?
> 
> ---Thanx
> ---Tony Conrad

Howdy Tony,

Your fix is correct, and I have just checked it into our own codebase. Best 
would be to grab our snapshot release and try again, as there were some other 
ncgen code files with this problem. 
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz

In all code files, config.h must be included first. (It is included first by 
includes.h, so having includes.h first is good enough.) 

Thanks for finding this for us.

Ed

Ticket Details
===================
Ticket ID: IZQ-213986
Department: Support netCDF
Priority: Critical
Status: Closed