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: address@hidden >From: Hjalmar Eysteinsson <address@hidden> >Subject: netcdf, compiling nc.c >Organization: ? >Keywords: 199908031305.HAA27070 netCDF HP-UX g89 Hi Hjalmar, > I am installing netcdf on HP-UX B.10.20 A 9000/785 > and get following error: > [48] $ make > c89 -c -O -I. -DNDEBUG nc.c > cc: "nc.c", line 857: error 1588: "EEXIST" undefined. > cc: "nc.c", line 857: error 1563: Expression in if must be scalar. > *** Error exit code 1 > > I do not see EEXIST defined inn any of the *.h files. > Is this a bug or am I doing something wrong? The problem with the above is that the C compiler was not given the option "-D_HPUX_SOURCE" (as indicated in the INSTALL file). Try the following: 1. Go to the top-level source directory. 2. Execute the command "make distclean". Don't worry if it fails or even fails to execute. 3. Remove the file "config.cache" if it exists. 4. Set your environment variables as before according to the instructions in the INSTALL file. 5. Ensure that the environment variable CFLAGS contains the string "-D_HPUX_SOURCE". 6. Continue with the installation process starting with step 6 of the "REPORTING PROBLEMS" section in the INSTALL file. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu