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

971023: building under HP-UX A.09.05 using /usr/softbench/bin/c89



Dear Mz. Elke,

> To: address@hidden
> cc: address@hidden
> From: "E.Hocke" <address@hidden>
> Subject: installation of netCDF-3.3.1
> Organization: ?
> Keywords: 199710231414.IAA16117

In the above message, you wrote:

> Dear Ladies and Gentlemen,
> I have got the netCDF software package version 3.3.1
> as compressed tar file via anonymous FTP. 
> Unfortunately there occured some problems during the
> installation. They produced the following output, 
> while executing the command "make":
> 
> 
> cc: "fort-attio.c", line 12: error 1000: Unexpected symbol: "int".
> cc: "fort-attio.c", line 12: error 1588: "B5" undefined.
> cc: "fort-attio.c", line 12: error 1588: "A0" undefined.
> cc: "fort-attio.c", line 12: error 1563: Expression in if must be scalar.
> cc: "fort-attio.c", line 12: warning 563: Argument #1 is not the correct type.
> 
> Stop.
> 
> Stop.
> 
> Stop.
> 
> 
> Before executing the instructions of the file INSTALL, I selected the
> given build environment of HP-UX robin A.09.05 A 9000/715 2010262449...
> 
> CC=/usr/softbench/bin/c89
> CPPFLAGS=-DNDEBUG
> CXX=/bin/cc
> FC=/usr/softbench/bin/f77
> FFLAGS='-O -w'
> 
> Here we are working on
> HP-UX apollo4 A.09.03 A 9000/735 2010759175 two-user license
> 
> The configure script produced the standard output 
> and error output as follows:
> 
> creating cache ./config.cache
> checking for m4... m4
> checking user-defined C compiler "/usr/softbench/bin/c89"

Hmmm...  We haven't used the above compiler so I'm not too surprised
that it couldn't compile the Fortran interface.

Try the following:

    1.  Go to the top-level source directory.

    2.  Execute the command "make distclean".

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

    4.  Set your environment variables as before but this time add
        "-DhpuxFortran" to the CPPFLAGS environment variable.

    5.  Execute the configure script.
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    6.  Execute the command "make".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    7.  Execute the command "make test".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    8.  Execute the command "make install".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

    9.  Execute the command "make clean".
        Redirect standard output and standard error to a file.
        If an error occurs, then stop and send me the file.

> checking C compiler... works
> checking how to make dependencies... false
> checking for /usr/softbench/bin/cc... /usr/softbench/bin/cc
> checking C++ compiler "/usr/softbench/bin/cc"... works
> checking how to run the C preprocessor... /usr/softbench/bin/c89 -E
> checking user-defined FORTRAN compiler "/usr/softbench/bin/f77"... 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"... yes
> checking if FORTRAN "byte" is C "short"... no
> checking if FORTRAN "byte" is C "int"... no
> checking if FORTRAN "integer*2" is C "short"... yes
> checking if FORTRAN "integer*2" is C "int"... 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 for ftruncate... yes
> checking for st_blksize in struct stat... yes
> checking whether cross-compiling... no
> 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... 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
> fortran/nfconfig.inc is unchanged
> creating libsrc/ncconfig.h
> libsrc/ncconfig.h is unchanged
> 
> Further you asked for the absolute pathnames of all compilers (type)
> C:            /usr/softbench/bin/cc  
>               /usr/softbench/bin/c89
> FORTRAN:      /usr/softbench/bin/f77
>               /usr/bin/fort77
> 
> 
> The file "config.log" contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1017: /usr/softbench/bin/c89 -c -0 -DNDEBUG conftest.c 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:1150: /usr/softbench/bin/cc -c  -DNDEBUG conftest.C 1>&5
> configure:1217: /usr/softbench/bin/c89 -E -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:1316: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1415: /usr/softbench/bin/f77 -o conftest -O -w conftest.F  -lU77
> /tmp/fcpFAAa06206:
>    MAIN:
> configure:1456: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1491: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    sub:
> configure:1514: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    sub:
> configure:1548: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1550: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1552: ./conftest
> configure:1590: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1592: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1594: ./conftest
> configure:1632: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1634: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1636: ./conftest
> configure:1678: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1680: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1682: ./conftest
> configure:1720: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1722: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1724: ./conftest
> configure:1764: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1766: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1768: ./conftest
> configure:1806: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1808: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1810: ./conftest
> configure:1848: /usr/softbench/bin/c89 -c -DNDEBUG -0 conftest.c
> cc: warning 422: Unknown option "0" ignored.
> configure:1850: /usr/softbench/bin/f77 -o conftest -O -w  conftestf.f 
> conftest.o
> conftestf.f:
>    MAIN:
> configure:1852: ./conftest
> configure:1882: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1903: /usr/softbench/bin/f77 -c -O -w conftest.f
> conftest.f:
>    MAIN:
> configure:1943: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c 
> -lc   1>&5
> cc: warning 422: Unknown option "0" ignored.
> /bin/ld: Unsatisfied symbols:
>    tanh (code)
> configure:1977: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c 
> -lm   1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2072: /usr/softbench/bin/c89 -E -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:2106: /usr/softbench/bin/c89 -E -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:2156: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2204: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2238: /usr/softbench/bin/c89 -c -0 -DNDEBUG conftest.c 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2270: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2322: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2351: /usr/softbench/bin/c89 -E -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:2416: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2634: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2672: /usr/softbench/bin/c89 -c -0 -DNDEBUG conftest.c 1>&5
> cc: warning 422: Unknown option "0" ignored.
> cc: "configure", line 2667: error 1000: Unexpected symbol: "endian".
> cc: "configure", line 2667: error 1588: "bogus" undefined.
> configure:2718: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2756: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2790: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2824: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2858: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2892: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2930: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> configure:2968: /usr/softbench/bin/c89 -o conftest -0 -DNDEBUG  conftest.c  
> 1>&5
> cc: warning 422: Unknown option "0" ignored.
> 
> Finally I append the standard output and error output which was
> produced by the command "make"
> 
> Making `all' in directory /users/kd005/NCEP-CD/netcdf-3.3.1/src/libsrc
> 
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG attr.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG dim.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG error.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG -DVERSION=`cat ../VERSION` 
> libvers.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG nc.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG ncio.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG ncx.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG putget.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG string.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG v1hpg.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG v2i.c
>       /usr/softbench/bin/c89 -c -0 -I.  -DNDEBUG var.c
>       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 /users/kd005/NCEP-CD/netcdf-3.3.1/src
> 
> 
> Making `all' in directory /users/kd005/NCEP-CD/netcdf-3.3.1/src/fortran
> 
>       /usr/softbench/bin/c89 -c -0 -I../libsrc  -DNDEBUG fort-attio.c
> *** Error code 1
> *** Error code 1
> *** Error code 1
> 
> 
> In advance I thank you very much for your help.
> Yours faithfully
> Elke Hocke

--------
Steve Emmerson   <http://www.unidata.ucar.edu>