[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
970814: WHOI NetCDF install on HP
- Subject: 970814: WHOI NetCDF install on HP
- Date: Thu, 14 Aug 97 13:15:12 -0600
Roger,
> To: "support" <address@hidden>
> From: "GOLDSMITH, ROGER" <address@hidden>
> Organization: Woods Hole Oceanographic Institution (WHOI)
> Keywords: 199708141502.JAA20963
In the above message, you wrote:
> Re: 970814: WHOI NetCDF install on HP
>
> Stevei Emmerson,
> Thanks for the guidance. Yes, I believe it is a HPUX 10. The login
> message is B.10.20 A 9000/780 Sorry, I should have told you that.
> The setenv CPPFLAGS -D_HPUX_SOURCE seems to be most of it. I had
> to use the Cshell for this and the kill FORTRAN (FC) as the normal
> assignments not only did not take but produced really weird stuff. This
> may have something to do with 'sh' being a POSIX shell and not the Bourne
> shell. At any rate the configure went much better and the make also went
> well for all apparent purposes. Note the error at the end. Having the
> utmost confidence in NetCDF, and being impatient, I tested and installed
> anyway. These also looked successful except for the same 'extern' message
> at the end. The library and applications look and act successful though.
>
> VVVVVVVVVV log file from make:
>
> Making `all' in directory /home/roger/netcdf/netcdf-3.3.1/src/libsrc
>
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o
> ncx.o putget.o string.o v1hpg.o v2i.o var.o
> ranlib libnetcdf.a
>
> Returning to directory /home/roger/netcdf/netcdf-3.3.1/src
>
> Not making `fortran/all' because no FORTRAN compiler
>
> Making `all' in directory /home/roger/netcdf/netcdf-3.3.1/src/ncdump
>
> c89 -o ncdump -O ncdump.o vardata.o dumplib.o -L../libsrc -lnetcdf
>
> Returning to directory /home/roger/netcdf/netcdf-3.3.1/src
>
>
> Making `all' in directory /home/roger/netcdf/netcdf-3.3.1/src/ncgen
>
> c89 -o ncgen -O main.o load.o ncgentab.o escapes.o getfill.o init.o
> genlib.o ../libsrc/libnetcdf.a
>
> Returning to directory /home/roger/netcdf/netcdf-3.3.1/src
>
>
> Making `all' in directory /home/roger/netcdf/netcdf-3.3.1/src/cxx
>
> c++ -c -O -I../libsrc -D_HPUX_SOURCE netcdf.cc
> In file included from /usr/include/sys/resource.h:21,
> from
> /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.10/2.7.2.1/include/sys/wait.h:86,
> from
> /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.10/2.7.2.1/include/stdlib.h:231,
> from netcdf.cc:11:
> /usr/include/sys/time.h:337: `extern' can only be specified for objects and
> functions
> *** Error exit code 1
Hmm... If your system is HP-UX 10.20, then you might have to reinstall
the GNU C++ compiler because the above lines indicate that it thinks
your system is HP-UX 10.10. The g++ documentation says that it might
need to reinstalled when the operating system is upgraded.
--------
Steve Emmerson <http://www.unidata.ucar.edu>