[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 19981110: problems installing netcdf-3.4 on HP
- Subject: Re: 19981110: problems installing netcdf-3.4 on HP
- Date: Tue, 10 Nov 1998 12:35:25 -0700
>> From: Maren Tracy Plueddemann <address@hidden>
>> Subject: problems installing netcdf-3.4 on HP UX
>> Organization: WHOI Physical Oceanography Dept.
>> Keywords: 199811101712.KAA29699 netCDF 3.4 HP-UX 10.20
Hi Maren,
> Please offer any help you may have.............Maren Plueddemann
> address@hidden
> uname -a HP-UX mahi B.10.20 A 9000/715 2001011364 two-user license
> VERSION
> 3.4
> The absolute pathnames of the compilers:
> CC =/usr/ccs/bin/cc
> CPPFLAGS= -D_HPUX_SOURCE
> CFLAGS=
> FC=/opt/fortran/bin/fort77
> FFLAGS=-w
> CXX =/opt/CC/bin/CC
> mahi 251: more configure.log
> creating cache ./config.cache
> checking for m4... m4
> checking user-defined C compiler "/usr/ccs/bin/cc"
> checking C compiler... works
> checking how to make dependencies... false
> checking for /opt/CC/bin/CC... /opt/CC/bin/CC
> checking C++ compiler "/opt/CC/bin/CC"... works
> checking how to run the C preprocessor... /usr/ccs/bin/cc -E
> checking user-defined Fortran compiler "/opt/fortran/bin/fort77"...
> works
> checking for Fortran .F compiler...
> checking if Fortran compiler handles *.F files... yes
> checking for C-equivalent to Fortran routine "SUB"... sub
> checking for Fortran "byte"... yes
> checking for Fortran "integer*2"... yes
> checking if Fortran "byte" is C "signed char"... configure: error: Could
> not compile conftest.c
This error comes from using /usr/ccs/bin/cc as your C compiler instead
of /bin/c89 as is recommended for HP-UX in the INSTALL file. I just
tried building netCDF 3.4 under HP-UX 11.0 using the following
environment settings that were different from yours, and it seemed to
work fine, despite some warnings, except for an obscure "ncgen -f"/fortran
bug revealed by "make test" in the ncgen directory that I'll be looking at
CC=/bin/c89
CPPFLAGS='-D_HPUX_SOURCE -w' # "-w" suppresses ignorable warnings
CXX=/usr/bin/CC
Make sure you delete the file "config.cache" before running the
configure script again, after changing the environment settings. You
can run "make test" in the cxx directory after "make test" fails in the
ncgen directory, to verify that the C++ interface works OK.
--Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu