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

20031015: Problem compiling NetCDF-3.5.0 on HP



Stephane,

> To: "'address@hidden'" <address@hidden>
> From: AMANT Stephane <address@hidden>
> Subject: Problem compiling NetCDF-3.5.0 on HP
> Organization: Airbus France
> Keywords: netCDF 3.5.0 HP-UX 11.11

The above message contained the following:

> I tried to install NetCDF-3.5.0 on HP, but it fails during the "make"
> operation.
> Here are the files you request to help debugging :
> 
>  <<VERSION>>  <<make.log>>  <<configure.log>>  <<macros.make>> =20
> <<config.log>>=20
> 
> The standard output of the command "uname -a" is : HP-UX hpdyn99 =
> B.11.11 U
> 9000/785 2014530481 unlimited-user license
> 
> Thanks for your help.
> 
> Best regards,
> 
> St=E9phane AMANT
> Aerodynamic Design and Data Department (EGAT)
> * +33 (0)5.61.18.65.19
> Fax : +33 (0)5.61.93.99.80
> * address@hidden
> Airbus France
> M0131/3
> 316, route de Bayonne
> 31060 Toulouse cedex 03
> France
...

> Content-disposition: attachment; filename=VERSION
> 
> 3.5.0=0A=
...

> Content-disposition: attachment; filename=make.log
> 
> Standard output :=0A=
> ***************=0A=
> =0A=
> Making `all' in directory /home/to30571/netcdf-3.5.0/src/libsrc=0A=
> =0A=
>       c89 -c -O +DA2.0W -I.  -DNDEBUG attr.c=0A=
>       c89 -c -O +DA2.0W -I.  -DNDEBUG dim.c=0A=
>       c89 -c -O +DA2.0W -I.  -DNDEBUG error.c=0A=
>       c89 -c -O +DA2.0W -I.  -DNDEBUG -DVERSION=3D`cat ../VERSION` =
> libvers.c=0A=
>       c89 -c -O +DA2.0W -I.  -DNDEBUG nc.c=0A=
> *** Error exit code 1=0A=
> *** Error exit code 1=0A=
> *** Error exit code 1=0A=
> =0A=
> Standard error :=0A=
> **************=0A=
> cc: warning 487: Possibly incorrect message catalog.=0A=
> cc: warning 487: Possibly incorrect message catalog.=0A=
> cc: warning 487: Possibly incorrect message catalog.=0A=
> cc: warning 487: Possibly incorrect message catalog.=0A=
> cc: warning 487: Possibly incorrect message catalog.=0A=
> cc: "nc.c", line 780: error 1588: "EEXIST" undefined.=0A=
> cc: "nc.c", line 780: error 1563: Expression in if must be scalar.=0A=
> =0A=
> Stop.=0A=
> =0A=
> Stop.=0A=
> =0A=
> Stop.=0A=

As the HP-UX 11 example in the file INSTALL.html shows, you must define
the C macro _HPUX_SOURCE when using the c89 compiler.

Please try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 described near the end of the file
        INSTALL.html.

    3.  Ensure that the C macro _HPUX_SOURCE is defined in the
        environment variable CPPFLAGS, e.g.,

            export CPPFLAGS='-D_HPUX_SOURCE -DNDEBUG -w'

        or

            setenv CPPFLAGS '-D_HPUX_SOURCE -DNDEBUG -w'

        depending on your user-shell.

    4.  Perform steps 6 through 9 described near the end of the file
        INSTALL.html.

Please let me know if this helps.

Regards,
Steve Emmerson