[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19990803: netcdf, compiling nc.c, HP-UX 10.20



>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