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

Re: 20010725: Installing netCDF 3.5 on HP-UX 11.11: no Standard C



Papp,

> From: Papp Gabor <address@hidden>
> Organization: Geodetic and Geophysical Res. Inst./Hungarian Academy of Science
> Keywords: 200107251306.f6PD64107907 netCDF HP HP-UX

The above message contained the following:

> Dear Unidata Representative,
> 
> I have just tried to install netCDF 3.5 (and GMT 3.4) on
> our new 64 bit HP A500 (9000/800) platform (HP-UX 11.11).
> In the past I successfully installed older versions of netCDF package
> on our HP Apollo 720 and Sun Sparcstation 10 workstations
> but this time I failed. At the moment we have ONLY a HP-UX
> C compiler on the new machine but it seems to me that ANSI C
> is needed to compile your c codes.

Yes.  A Standard C compiler is essential.

> I have got several messages
> during make-process (after the configuration step) reporting that:
> 
> Making `all' in directory /home/papp/netcdf-3.5.0/src/libsrc
> 
>       cc -c -O -I.  -DNDEBUG attr.c
>       (Bundled) cc: warning 480: The -O option is available only with the 
> C/ANSI C product; ignored.
>       (Bundled) cc: "netcdf.h", line 189: warning 5: "const" will become a 
> keyword.
>       (Bundled) cc: "netcdf.h", line 189: error 1000: Unexpected symbol: 
> "char".
>       (Bundled) cc: "netcdf.h", line 192: warning 5: "const" will become a 
> keyword.
>       (Bundled) cc: "netcdf.h", line 190: error 1705: Function prototypes are 
> an ANSI feature.
>       (Bundled) cc: "netcdf.h", line 192: error 1000: Unexpected symbol: 
> "char".
>       (Bundled) cc: "netcdf.h", line 193: error 1705: Function prototypes are 
> an ANSI feature.
>       (Bundled) cc: "netcdf.h", line 196: warning 5: "const" will become a 
> keyword.
>       (Bundled) cc: "netcdf.h", line 196: error 1000: Unexpected symbol: 
> "char".
>       (Bundled) cc: error 2017: Cannot recover from earlier errors, 
> terminating.
>       *** Error exit code 1
> 
>       Stop.
>       *** Error exit code 1
> 
>       Stop.
>       *** Error exit code 1

I'm not surprised.

> If you had any tips or suggestions regarding the solution of my
> problem I would be gratefull.

Your options include the following:

    1.  Modify the netCDF code so that it compiles.  This would be a lot
        of work and I don't recommend it.

    2.  Obtain a Standard C compiler from HP and use it.  This will cost
        money.  I don't know how much.

    3.  Install the freely-available GNU C development environment and
        use it.  The netCDF library builds with GNU C.

    4.  See if we have an appropriate binary-only netCDF distribution.
        The URL is <ftp://ftp.unidata.ucar.edu/pub/binary/>

> Thank you for your help and patience very much in advance.
> 
> With my best regards,
> 
> Gabor Papp
> Geodetic and Geophysical Res. Inst.
> Hungarian Academy of Science
> Sopron, Hungary

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>