[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OS X-Absoft
- Subject: Re: Mac OS X-Absoft
- Date: Wed, 12 Dec 2001 16:35:59 -0700
>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