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: "David A. Gell" <address@hidden> >Subject: Compiling netCDF V3.3.1 on HP-UX 10.20 >Organization: . >Keywords: 199711211715.KAA18838 Hi David, > I am trying to install netCDF version 3.3.1 on an HP C180 running HP-UX 10.20. > After changing the FFLAGS definition in configure from > FFLAGS=${FFLAGS--O} > to > FFLAGS=${FFLAGS--O 2} > > the configure script succeeded. Without the change, the fortran test routines > would not compile. The following error was reported: > fort77: POSIX 1003.2 mandates opt level following -O; expected values 0-4, > \ > received: conftest.f; ignored > > Now, the make fails with the following messages: > c89 -c -O -I. -DNDEBUG nc.c > cc: "nc.c", line 834: error 1588: "EEXIST" undefined. > cc: "nc.c", line 834: error 1563: Expression in if must be scalar. > *** Error exit code 1 > > Any suggestions. Yes, you will need the "-D_HPUX_SOURCE" compiler flag. We have found that the following works on our new HP-UX B.10.20 system: CPPFLAGS='-D_HPUX_SOURCE -DNDEBUG' CC=c89 CFLAGS=-O FC=fort77 FFLAGS='-O3 -w' We only had an HP-UX 9 system when version 3.3.1 was released, but have some updates for other systems that weren't included with that version at http://www.unidata.ucar.edu/packages/netcdf/other-builds.html which is linked from our "Known Problems with the netCDF 3.3.1 Distribution" web page at http://www.unidata.ucar.edu/packages/netcdf/known_problems.html --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu