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.
>To: russ
>From: Dierk Polzin <address@hidden>
>Subject: Re: 20011116: MacOS X: FINK install of netcdf fails
>Organization: Center for Sustainability and Global Environment/U Wisconsin
>Keywords: 200111161613.fAGGDvN05779, MacOS X, values.h, yacc
Hi Dierk,
> Making `all' in directory /sw/src/netcdf-3.4/src/ncgen
>
> /usr/bin/cc -c -O -I../libsrc -I. -Df2cFortran main.c
> /usr/bin/cc -c -O -I../libsrc -I. -Df2cFortran load.c
> /usr/bin/cc -c -O -I../libsrc -I. -Df2cFortran ncgentab.c
> ncgen.y:92: header file 'values.h' not found
In version 3.4, the ncgentab.c file is generated by yacc, and the
#include <values.h> statement yacc includes in the output doesn't come
from our ncgen.y and ncgen.l input. This is a bug in the yacc we
used. There is no such #include in the version 3.5.0, available from
our FTP site. So there are several possible ways to fix this:
- replace <values.h> with <float.h> in ncgentab.c and recompile; or
- just remove the "#include <values.h>" statement and recompile; or
- just remove the "ncgentab.c" file and when you try to "make", it
will invoke yacc to regenerate ncgentab.c, perhaps without the
erroneous #include; or
- get a more up-to-date version, such as
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1-beta.tar.Z
--Russ