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

Re: 19981112: HP-UX 10.2



>> To: address@hidden
>> From: address@hidden
>> Subject: HP-UX 10.2
>> Organization: .
>> Keywords: 199811121012.DAA18253

Hi Christof,

> I have problems installing netcdf-3.4 on my HP-UX workstation.
> I am not the big c-guru and that causes some problems.
> Already running ./configure caused some problems. I could 
> not use fort77 but had to use f77 to make it work.
> After that I could run configure and got my macro.make.
> But as soon as I started make I got an error message(see below).
> Can you give me a hint what I have done wrong? It is also not quite
> clear to me where I have to enter the changes to. I tried a bit around
> with the configure, macro.make.def, and macro.make. Nothing worked
> so far.

> Best regards

> Christof

> P.S.: I do not have c++

> ----------------------------------------------------------------


> HP-UX gipsy B.10.20 A 9000/778 2011780209 two-user license

> Version: 3.4


> c89 is /usr/bin/c89
> f77 is /opt/fortran/bin/f77

> config.log:
> ============
> creating cache ./config.cache
> checking for m4... m4
> checking for xlc... no
> checking for c89... c89
> checking C compiler... works
> checking how to make dependencies... false
> checking for CC... no
> checking for cxx... no
> checking for c++... no
> checking for g++... no
> checking for gcc... no
> checking how to run the C preprocessor... c89 -E
> checking for f77... f77
> 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"... yes
> checking if Fortran "byte" is C "short"... no
> checking if Fortran "byte" is C "int"... no
> checking if Fortran "byte" is C "long"... no
> checking if Fortran "integer*2" is C "short"... yes
> checking if Fortran "integer*2" is C "int"... no
> checking if Fortran "integer*2" is C "long"... no
> checking if Fortran "integer" is C "int"... yes
> checking if Fortran "real" is C "float"... yes
> checking if Fortran "doubleprecision" is C "double"... yes
> checking for Fortran-equivalent to netCDF "byte"... byte
> checking for Fortran-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for -lc... no
> checking for -lm... yes
> checking for ar... ar
> checking for ranlib... ranlib
> checking for stdlib.h... yes
> checking for sys/types.h... yes
> checking for strerror... yes
> checking whether cross-compiling... no
> checking for working ftruncate()... no
> checking for working alloca.h... yes
> checking for alloca... yes
> checking for st_blksize in struct stat... no
> checking for IEEE floating point format... yes
> checking for ANSI C header files... yes
> checking for size_t... yes
> checking for off_t... no
> checking for ssize_t... no
> checking for ptrdiff_t... yes
> checking for uchar... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... yes
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking size of float... 4
> checking size of double... 8
> checking size of off_t... 4
> checking size of size_t... 4
> checking for manual-page index command... 
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> updating cache ./config.cache
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> creating libsrc/ncconfig.h

> error message of ./configure
> ===============================
> configure: warning: Could not find working C++ compiler
> configure: warning: Setting CXX to the empty string
> configure: warning: The C++ interface will not be built


> make.log
> ========
> Making `all' in directory /usr/local/gmt-3.1/netcdf-3.4/src/libsrc

>       c89 -c -O -I.  -DNDEBUG attr.c
>       c89 -c -O -I.  -DNDEBUG dim.c
>       c89 -c -O -I.  -DNDEBUG error.c
>       c89 -c -O -I.  -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
>       c89 -c -O -I.  -DNDEBUG nc.c
> cc: "nc.c", line 857: error 1588: "EEXIST" undefined.
> cc: "nc.c", line 857: error 1563: Expression in if must be scalar.
> Stop.
> *** Error exit code 1
> Stop.
> *** Error exit code 1
> Stop.
> *** Error exit code 1

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.

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu