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

Re: 20000913: netcdf install problem



Kim Runk <address@hidden> asked:
<Question>
I'm trying to compile netcdf-3.4 on an HP-C180 running HPUX-10.20 and I get 
the following error:

##################################################################
    c89 -c -O -I.  -DNDEBUG nc.c
cc: "nc.c", line 768: error 1588: "EEXIST" undefined.
cc: "nc.c", line 768: error 1563: Expression in if must be scalar.
*** Error exit code 1

Stop.
##################################################################
I tried to change the line that reads "status == NC_EEXIST"
to "status == EEXIST"
and I also tried to set EEXIST == 0

but it didn't like those options either.
</Question>
-----------------------------------
<Answer>
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.

Please let me know if this helps.
</Answer>

--Russ