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.
> Date: Fri, 17 Oct 1997 06:32:18 -0500 > From: Gene Gamble <address@hidden> > To: address@hidden > CC: address@hidden > Subject: FAN install problems Gene, > I tried your test and it did work - limits.h was in /usr/include. If > you refer to the fanlog I previously sent you the compile line appears: > > gcc -ansi -c -O -I.. -I/usr/include -I/usr/include d2nc.c > which produced the messages .Using the above compile I just tried to > compile the routine standalone. I could get it to compile if I modified > the line to read: > gcc -ansi -c -O -I. -I.. -I/usr/include d2nc.c This means that some file #included in angle brackets, such as #include <limits.h> is getting included from the current directory instead of from standard places. So, for example, maybe there is a version of the file "limits.h" in both the directory in which you are compiling and in /usr/include/, the files are different, and the only way it works is to use the local one with a "-I." option that says look in the current directory first for all .h files included via angle brackets. That would be consistent with the above symptoms. > I fiddled with the make file to get it to work but ran in to problems > later on in the fanlib directory with the nasParse.y routine. The > enclosed fanlog1 documents the results. Just out of curiosity I went > ahead and compiled the remaining routines in the fanlib directory > standalone using the above compile line - they all compiled except for > nas.Parse.c I don't know enough about what the code is doing to try to > fix the problem. If you have any help it would be appreciated. Thanks! I think nasParse.c is generated automatically via the Makefile from nasParse.y, so if you just delete or rename nasParse.c, it will get generated again from nasParse.y, perhaps in a way that will work. So try renaming nasParse.c to "nasParse.c-", for example, and rerun the make command to see if that gets around the problem. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu > --------------A2B1B717E7A > Content-Type: text/plain; charset=us-ascii; name="Fanlog1" > Content-Transfer-Encoding: 7bit > Content-Disposition: inline; filename="Fanlog1" > > Linux localhost.localdomain 2.0.30 #1 Mon Jul 21 18:05:24 CDT 1997 i586 > unknown > creating cache ./config.cache > checking for catman... no > checking the installation prefix... /dataa6/fan > checking the installation exec-prefix... /dataa6/fan > checking for C compiler... gcc -ansi -I. > checking for standard C string generation... yes > checking for C function prototypes... yes > checking how to run the C preprocessor... gcc -ansi -I. -E > checking the C preprocessor... works > checking type of operating system... linux > checking for dependency generation mechanism... gcc -ansi -I. -M > checking for ar... ar > checking for ranlib... ranlib > checking for tar flags... -chof > checking for ncdump... ncdump > checking for ncgen... ncgen > checking for ksh... ksh > checking for C function prototypes... yes > checking for standard C string generation... yes > checking for netCDF header-file... -I/usr/include > checking for netCDF library... -L/usr/local/lib -lnetcdf > checking for XDR library... > checking for xdr_long in default library... yes > checking for udunits header-file... -I/usr/include > checking for udunits library... -L/usr/local/lib -ludunits -ludport > updating cache ./config.cache > creating ./config.status > creating Makefile > creating fanlib/Makefile > creating idl/Makefile > creating nc2text/Makefile > creating ncrob/Makefile > creating ncmeta/Makefile > creating port/Makefile > creating text2nc/Makefile > creating doc/Makefile > creating doc/fan_utils/Makefile > creating port/master.mk > creating port/Makefile > creating config.h > config.h is unchanged > expanding `include's in file `Makefile' > expanding `include's in file `fanlib/Makefile' > expanding `include's in file `idl/Makefile' > expanding `include's in file `nc2text/Makefile' > expanding `include's in file `ncrob/Makefile' > expanding `include's in file `ncmeta/Makefile' > expanding `include's in file `port/Makefile' > expanding `include's in file `text2nc/Makefile' > expanding `include's in file `doc/Makefile' > expanding `include's in file `doc/fan_utils/Makefile' > expanding `include's in file `port/master.mk' > expanding `include's in file `port/Makefile' > > making `all' in directory /home/gamble/mybuild/SOURCES/fan-2.0.2/src/port > > make[1]: Entering directory `/home/gamble/mybuild/SOURCES/fan-2.0.2/src/port' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/home/gamble/mybuild/SOURCES/fan-2.0.2/src/port' > > returning to directory /home/gamble/mybuild/SOURCES/fan-2.0.2/src > > > making `all' in directory /home/gamble/mybuild/SOURCES/fan-2.0.2/src/fanlib > > make[1]: Entering directory > `/home/gamble/mybuild/SOURCES/fan-2.0.2/src/fanlib' > gcc -ansi -I. -c -O -I.. -I/usr/include Calloc.c > gcc -ansi -I. -c -O -I.. -I/usr/include argSplit.c > gcc -ansi -I. -c -O -I.. -I/usr/include d2nc.c > gcc -ansi -I. -c -O -I.. -I/usr/include get_missing_value.c > gcc -ansi -I. -c -O -I.. -I/usr/include get_scalar_att.c > gcc -ansi -I. -c -O -I.. -I/usr/include get_str_att.c > gcc -ansi -I. -c -O -I.. -I/usr/include get_valid_range.c > gcc -ansi -I. -c -O -I.. -I/usr/include get_var.c > gcc -ansi -I. -c -O -I.. -I/usr/include nasParse.c > nasParse.y: In function `ncaAtt': > nasParse.y:1360: warning: passing arg 2 of `newDIM' makes integer from > pointer without a cast > nasParse.y:1362: incompatible type for argument 14 of `newNCA' > make[1]: *** [nasParse.o] Error 1 > make[1]: Leaving directory `/home/gamble/mybuild/SOURCES/fan-2.0.2/src/fanlib' > make: *** [fanlib/all] Error 1 > > --------------A2B1B717E7A-- >