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

Re: 19990323: installation problem



Daniel,

> To: address@hidden
> From: Daniel Amorese <address@hidden>
> Subject: intallation problem
> Organization: University of Caen, France
> Keywords: 199903231525.IAA08626

In the above message, you wrote:

> Impossible to install netcdf-3.4 on a SunOS 5.4 sparc station.  Is
> there a solution ?
> Thank you for your help.
> D. Amorese (address@hidden or address@hidden,
> University of Caen, France)
> 
> Following items that can help you diagnose the problem :
> 
> Output of "uname -a":
> SunOS vega 5.4 generic sun4m sparc
> 
> Contents of VERSION:
> 3.4
> 
> Absolute pathnames of all compilers:
> /usr/local/bin/gcc
> /usr/local/bin/c++
> /usr/ucb/cc

You should only use one C compiler rather than two (gcc and cc).

Because the netCDF package is designed to be compiled by a Standard C
compiler, I doubt that can be compiled with the non-standard /usr/ucb/cc
compiler.

What was your Fortran compiler?

> 
> 
> Configure.log:
> creating cache ./config.cache
> checking for m4... m4
> checking for xlc... no
> checking for c89... no
> checking for acc... no
> checking for cc... cc
> checking C compiler... works
> checking how to make dependencies... cc -xM
> checking for CC... no
> checking for cxx... no
> checking for c++... c++
> checking C++ compiler "c++"... works
> checking how to run the C preprocessor... cc -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... :
> 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... 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 catman... catman
> checking for manual-page index command... catman -w -M $(MANDIR)
> 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
> 
> 
> Config.log:
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1020: cc -c -O -DNDEBUG conftest.c 1>&5
> configure:1153: c++ -c  -DNDEBUG conftest.C 1>&5
> configure:1220: cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1373: f77 -c -O conftest.f
> configure:1422: f77 -o conftest -O conftest.F  
> configure:1463: f77 -c -O conftest.f
> configure:1498: f77 -c -O conftest.f
> configure:1521: f77 -c -O conftest.f
> configure:1555: cc -c -DNDEBUG -O conftest.c
> configure:1557: f77 -O -c conftestf.f
> configure:1559: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1561: ./conftest
> configure:1602: cc -c -DNDEBUG -O conftest.c
> configure:1604: f77 -O -c conftestf.f
> configure:1606: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1608: ./conftest
> configure:1649: cc -c -DNDEBUG -O conftest.c
> configure:1651: f77 -O -c conftestf.f
> configure:1653: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1655: ./conftest
> configure:1696: cc -c -DNDEBUG -O conftest.c
> configure:1698: f77 -O -c conftestf.f
> configure:1700: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1702: ./conftest
> configure:1747: cc -c -DNDEBUG -O conftest.c
> configure:1749: f77 -O -c conftestf.f
> configure:1751: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1753: ./conftest
> configure:1794: cc -c -DNDEBUG -O conftest.c
> configure:1796: f77 -O -c conftestf.f
> configure:1798: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1800: ./conftest
> configure:1841: cc -c -DNDEBUG -O conftest.c
> configure:1843: f77 -O -c conftestf.f
> configure:1845: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1847: ./conftest
> configure:1890: cc -c -DNDEBUG -O conftest.c
> configure:1892: f77 -O -c conftestf.f
> configure:1894: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1896: ./conftest
> configure:1937: cc -c -DNDEBUG -O conftest.c
> configure:1939: f77 -O -c conftestf.f
> configure:1941: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1943: ./conftest
> configure:1984: cc -c -DNDEBUG -O conftest.c
> configure:1986: f77 -O -c conftestf.f
> configure:1988: f77 -o conftest -O  conftestf.o conftest.o 
> configure:1990: ./conftest
> configure:2023: f77 -c -O conftest.f
> configure:2044: f77 -c -O conftest.f
> configure:2084: cc -o conftest -O -DNDEBUG  conftest.c -lc   1>&5
> Undefined                     first referenced
>  symbol                           in file
> tanh                                /var/tmp/cca0011K1.o
> ld: fatal: Symbol referencing errors. No output written to conftest
> configure:2118: cc -o conftest -O -DNDEBUG  conftest.c -lm   1>&5
> configure:2213: cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2247: cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2297: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2331: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2398: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2428: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2476: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2644: cc -c -O -DNDEBUG conftest.c 1>&5
> configure:2702: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:2731: cc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2796: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3014: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3052: cc -c -O -DNDEBUG conftest.c 1>&5
> configure: In function `t':
> configure:3047: `bogus' undeclared (first use this function)
> configure:3047: (Each undeclared identifier is reported only once
> configure:3047: for each function it appears in.)
> configure:3047: parse error before `endian'
> configure:3098: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3136: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3170: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3204: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3238: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3272: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3310: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> configure:3348: cc -o conftest -O -DNDEBUG  conftest.c  1>&5
> 
> Make.log:
> Making `all' in directory /usr/local/GMT/netcdf-3.4/src/libsrc
> 
> cc -c -O -I.  -DNDEBUG attr.c
> cc -c -O -I.  -DNDEBUG dim.c
> cc -c -O -I.  -DNDEBUG error.c
> cc -c -O -I.  -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
> cc -c -O -I.  -DNDEBUG nc.c
> cc -c -O -I.  -DNDEBUG ncio.c
> cc -c -O -I.  -DNDEBUG ncx.c
> cc -c -O -I.  -DNDEBUG putget.c
> cc -c -O -I.  -DNDEBUG string.c
> cc -c -O -I.  -DNDEBUG v1hpg.c
> cc -c -O -I.  -DNDEBUG v2i.c
> cc -c -O -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
> : libnetcdf.a
> 
> Returning to directory /usr/local/GMT/netcdf-3.4/src
> 
> 
> Making `all' in directory /usr/local/GMT/netcdf-3.4/src/fortran
> 
> cc -c -O -I../libsrc  -DNDEBUG fort-attio.c
> cc -c -O -I../libsrc  -DNDEBUG fort-control.c
> cc -c -O -I../libsrc  -DNDEBUG fort-dim.c
> cc -c -O -I../libsrc  -DNDEBUG fort-genatt.c
> cc -c -O -I../libsrc  -DNDEBUG fort-geninq.c
> cc -c -O -I../libsrc  -DNDEBUG fort-genvar.c
> cc -c -O -I../libsrc  -DNDEBUG fort-lib.c
> cc -c -O -I../libsrc  -DNDEBUG fort-misc.c
> cc -c -O -I../libsrc  -DNDEBUG fort-v2compat.c
> cc -c -O -I../libsrc  -DNDEBUG fort-vario.c
> cc -c -O -I../libsrc  -DNDEBUG fort-var1io.c
> cc -c -O -I../libsrc  -DNDEBUG fort-varaio.c
> cc -c -O -I../libsrc  -DNDEBUG fort-varmio.c
> cc -c -O -I../libsrc  -DNDEBUG fort-varsio.c
> ar cru ../libsrc/libnetcdf.a fort-attio.o      fort-control.o  fort-dim.o     
>  fort-genatt.o   fort-geninq.o   fort-genvar.o   fort-lib.o      fort-misc.o  
>    fort-v2compat.o         fort-vario.o    fort-var1io.o   fort-varaio.o   
> fort-varmio.o   fort-varsio.o
> : ../libsrc/libnetcdf.a
> 
> Returning to directory /usr/local/GMT/netcdf-3.4/src
> 
> 
> Making `all' in directory /usr/local/GMT/netcdf-3.4/src/ncdump
> 
> cc -c -O -I../libsrc  -DNDEBUG ncdump.c
> cc -c -O -I../libsrc  -DNDEBUG vardata.c
> cc -c -O -I../libsrc  -DNDEBUG dumplib.c
> cc -o ncdump -O  ncdump.o vardata.o dumplib.o -L../libsrc -lnetcdf  
> 
> Returning to directory /usr/local/GMT/netcdf-3.4/src
> 
> 
> Making `all' in directory /usr/local/GMT/netcdf-3.4/src/ncgen
> 
> cc -c -O -I../libsrc -I.  -DNDEBUG main.c
> cc -c -O -I../libsrc -I.  -DNDEBUG load.c
> cc -c -O -I../libsrc -I.  -DNDEBUG ncgentab.c
> cc -c -O -I../libsrc -I.  -DNDEBUG escapes.c
> cc -c -O -I../libsrc -I.  -DNDEBUG getfill.c
> cc -c -O -I../libsrc -I.  -DNDEBUG init.c
> cc -c -O -I../libsrc -I.  -DNDEBUG genlib.c
> cc -o ncgen -O  main.o load.o ncgentab.o escapes.o  getfill.o init.o genlib.o 
> ../libsrc/libnetcdf.a  
> 
> Returning to directory /usr/local/GMT/netcdf-3.4/src
> 
> 
> Making `all' in directory /usr/local/GMT/netcdf-3.4/src/cxx
> 
> c++ -c -O -I../libsrc  -DNDEBUG netcdf.cc
> c++ -c -O -I../libsrc  -DNDEBUG ncvalues.cc
> ar cru libnetcdf_c++.a netcdf.o ncvalues.o
> : libnetcdf_c++.a
> c++ -c -O -I../libsrc  -DNDEBUG nctst.cc
> c++ -o nctst -I../libsrc  -DNDEBUG -O  nctst.o libnetcdf_c++.a -L../libsrc 
> -lnetcdf 
> *** Error code 1
> *** Error code 1
> *** Error code 1

The above doesn't indicate what the problem was -- only that the
compilation failed.  Without knowing the problem, I can't prescribe a
solution.  You might try manually executing the last command above in
the cxx/ subdirectory to see if it gives you any more information.

Otherwise, I would retry steps 2 through 9 near the end of the INSTALL
file except that for step 5 I would use the following settings:

    CC          /usr/local/bin/gcc
    CXX         /usr/local/bin/c++

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