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

Re: 19990218: netcdf_onIRIX6.5



>To: address@hidden (Non Receipt Notification Requested) (IPM Return Requested)
>From: Dirk Heizenreder <address@hidden>
>Subject: netcdf_onIRIX6.5
>Organization: .
>Keywords: 199902180735.AAA27142

Hi Dirk,

> I'm trying to install your netcdf lib on my IRIX6.5 Octan.
> The same procedure was successful on an IRIX6.4 mashine
> I send you here the output of the "make" script and the "configure"
> script from the IRIX6.5 mashine :
> Could you please help me?

> ===========================================================================
> (1) Output from make:
> ------------------------
> "/usr/include/stddef.h", line 37: error(1084): invalid combination of type
>           specifiers
>   typedef int   ptrdiff_t;
>                 ^
> 
> "/usr/include/stddef.h", line 46: warning(1213): duplicate specifier in
>           declaration
>   typedef unsigned int  size_t;
>                         ^
> 
> "/usr/include/stddef.h", line 46: warning(1349): declaration requires a
>           typedef name
>   typedef unsigned int  size_t;
>                               ^
> 
> "/usr/include/sys/types.h", line 218: error(1084): invalid combination of type
>           specifiers
>   typedef int    ssize_t;
>                  ^
> 
> 2 errors detected in the compilation of "attr.c".
> *** Error code 2 (bu21)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> ================================================================================
> 
> (2) The result of your configure script was the following:
> -------------------------------------------------------
> loading cache ./config.cache
> checking for m4... (cached) m4
> checking for xlc... (cached) c89
> checking C compiler... works
> checking how to make dependencies... cc -M
> checking for CC... CC
> checking C++ compiler "CC"... configure: warning: CC failed to compile test
> program
> checking for cxx... no
> checking for c++... no
> checking for g++... no
> checking for gcc... no
> 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
> checking how to run the C preprocessor... (cached) /lib/cpp
> checking for f77... (cached) 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... (cached) no
> checking for -lm... (cached) yes
> checking for ar... (cached) ar
> checking for ranlib... (cached) :
> checking for stdlib.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for strerror... (cached) yes
> checking whether cross-compiling... (cached) no
> checking for working ftruncate()... yes
> checking for working alloca.h... (cached) yes
> checking for alloca... (cached) yes
> checking for st_blksize in struct stat... (cached) yes
> checking for IEEE floating point format... yes
> checking for ANSI C header files... (cached) no
> checking for size_t... (cached) no
> checking for off_t... (cached) yes
> checking for ssize_t... (cached) no
> checking for ptrdiff_t... (cached) no
> checking for uchar... (cached) no
> checking whether char is unsigned... (cached) yes
> checking whether byte ordering is bigendian... (cached) yes
> checking size of short... (cached) 0
> checking size of int... (cached) 0
> checking size of long... (cached) 0
> checking size of float... (cached) 0
> checking size of double... (cached) 0
> checking size of off_t... (cached) 0
> checking size of size_t... (cached) 0
> checking for catman... no
> checking for makewhatis... no
> checking for manual-page index command...
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> fortran/nfconfig.inc is unchanged
> creating libsrc/ncconfig.h
> libsrc/ncconfig.h is unchanged

From the above, it appears as if you ran the "configure" script
in a directory that had previously been used to build the netCDF
library for a different platform, so the old "config.cache" file was
used and gave some incorrect configuration values.  For example, the
line

   checking for ANSI C header files... (cached) no

yields a "yes" when I build netCDF from the sources on an IRIX 6.5
platform.

In order to build netCDF on your IRIX 6.5 Octane, please try the
following steps from the netCDF src/ directory (containing the INSTALL
file): 

    1.  Execute the command "make distclean".

    2.  Remove the file "config.cache" if it exists.

    3.  Set your environment variables as before as indicated by the
        INSTALL file.  In particular, if you are interested in the
        Fortran interface, the INSTALL file suggests you use the f90
        instead of f77 compiler:

          IRIX f90 Note: On IRIX 6.x platforms with version 7
          compilers, the f90 compiler accepts 'integer*1', while f77
          accepts both 'integer*1' and 'byte'. Using FC=f90 forces the
          configure script to select 'integer*1'.  The resulting *.inc
          files and test configurations will then work with either
          compiler.
          
        An updated INSTALL file that includes IRIX 6.5 environment
        variable settings that worked is available from

          http://www.unidata.ucar.edu/packages/netcdf/INSTALL

    4.  Execute the configure script.  The output should be similar to
        what I have appended (though you may be missing one or more
        compilers I used).

    5.  Execute the command "make", "make test", and optionally "make
        install".  If you encounter problems with any of these steps,
        please send the details, as described at the end of the
        INSTALL file, to "address@hidden".

--Russ

_____________________________________________________________________

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

Using the environment variable settings:

  CC=/bin/c89
  CFLAGS=-g
  FC=/bin/f90
  FFLAGS=-g
  CXX=/bin/CC

on an IRIX 3.5 platform, the output I get from running the configure
script is:
        
creating cache ./config.cache
checking for m4... m4
checking user-defined C compiler "/bin/c89"
checking C compiler... works
checking how to make dependencies... cc -M
checking for /bin/CC... /bin/CC
checking C++ compiler "/bin/CC"... works
checking how to run the C preprocessor... /bin/c89 -E
checking user-defined Fortran compiler "/bin/f90"... works
checking for Fortran .F compiler... 
checking if Fortran compiler handles *.F files... no
checking for Fortran preprocessor... /bin/c89 -E
checking for C-equivalent to Fortran routine "SUB"... sub_
checking for Fortran "byte"... no
checking for Fortran "integer*1"... yes
checking for Fortran "integer*2"... yes
checking if Fortran "integer*1" is C "signed char"... yes
checking if Fortran "integer*1" is C "short"... no
checking if Fortran "integer*1" is C "int"... no
checking if Fortran "integer*1" 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"... integer*1
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... :
checking for stdlib.h... yes
checking for sys/types.h... yes
checking for strerror... yes
checking whether cross-compiling... no
checking for working ftruncate()... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for st_blksize in struct stat... yes
checking for IEEE floating point format... yes
checking for ANSI C header files... yes
checking for size_t... yes
checking for off_t... yes
checking for ssize_t... yes
checking for ptrdiff_t... yes
checking for uchar... no
checking whether char is unsigned... yes
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... 8
checking size of size_t... 4
checking for manual-page index command... 
checking binary distribution directory... /home/ftp/pub/binary/irix_6.5-mips
updating cache ./config.cache
creating ./config.status
creating macros.make
udcreating fortran/nfconfig.inc
creating libsrc/ncconfig.h