[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 971121: Compiling netCDF V3.3.1 on HP-UX 10.20
- Subject: Re: 971121: Compiling netCDF V3.3.1 on HP-UX 10.20
- Date: Fri, 21 Nov 1997 10:37:15 -0700
>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