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: Wed, 02 Dec 1998 15:40:29 +1000 >From: Keyu Liu <address@hidden> >Organization: CSIRO Petroleum >To: Russ Rew <address@hidden> >Subject: Re: compiling netcdf3.4 on SGI O2 R-5000 under IRIX6.5 using MIPS >7.2.1 Keyu, > Subject: compiling netcdf3.4 on SGI O2 R-5000 under IRIX6.5 using MIPS 7.2.1 ... > Thanks very much for your help. When I reran the 'configure' as you > suggested, the output is different from yours. There seems "no ANSI > head files" on my system, nor "size_t", "ssize_t", "ptrdiff_t", and > the sizes for "short", "long", "int" and "float" are all zero (see > below). My machine also does not recognise the command 'export'. Is > this something to do my system or compilers. Do you have any idea to > get around the problem? The "export" command is the way to set environment variables using the standard shells sh, bsh, ksh, or bash. If you are using csh, tcsh, or some similar shell based on the C-shell, environment variables are set using a different syntax. For an explanation of how to set environment variables in the various shells, see the new netCDF INSTALL file with the section "SETTING ENVIRONMENT VARIABLES", available from http://www.unidata.ucar.edu/packages/netcdf/INSTALL Looking at the difference between your configure output and ours on a similar platform, either of two problems might cause the differences: - your compilers and header files are not properly installed, since the ANSI header files defining "size_t" and the other typedefs should be available with any standard C compiler (by including <stddefs.h>, for example); or - you have defined the environment variable "CPP" to be "/lib/cpp". I suspect the latter problem. To test this, please invoke echo $CPP and see if the output is "/lib/cpp". If this is the problem, please unset the CPP environment variable, invoke "make distclean", remove the "config.cache" file, and rerun the "configure" script. The output should indicate that "size_t" and the other typedefs are now defined and that the system has ANSI C header files. If this looks OK, then just proceed with "make all", "make test", etc. Also, please send future netCDF support questions to address@hidden That way they'll get assigned to someone who can answer them even if I happen to be on vacation or away from my email. Thanks. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu