[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 960726: netCDF installation on SunOS 5.5
- Subject: Re: 960726: netCDF installation on SunOS 5.5
- Date: Fri, 26 Jul 1996 11:25:33 -0600
>From: address@hidden (Nicola D'Agostino)
>Subject: installation NetCDF
>Keywords: 199607261652.AA28660 netCDF install Solaris
Hi Nicola,
> I'm trying to install NetCDF on a Sun Sparc5 SunOS 5.5.
> But there must be some problem with the file conftest.c that is not
> present on the machine together with the file sysmacro.h.
> is there any particular problem with SunOS 5.5 ?
> Can You help me ? I need NetCDF for the installation of
> GMT (generic mapping tools)
>
> I include the file config.log
...
> - -----------------------------------------------------------------------
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> configure:1156: cc -E conftest.c >/dev/null 2>conftest.out
> configure:1197: cc -E conftest.c >/dev/null 2>conftest.out
> configure:1663: cc -o conftest -O conftest.c 1>&5
> configure:1696: cc -o conftest -O conftest.c 1>&5
> configure:1732: cc -o conftest -O conftest.c 1>&5
> configure:1796: cc -o conftest -O conftest.c 1>&5
> configure:1826: cc -o conftest -O conftest.c 1>&5
> configure:1911: cc -o conftest -O conftest.c 1>&5
> Undefined first referenced
> symbol in file
> xdr_long conftest.o
> ld: fatal: Symbol referencing errors. No output written to conftest
> configure:1956: cc -o conftest -O conftest.c -lrpc 1>&5
> ld: fatal: library -lrpc: not found
> ld: fatal: File processing errors. No output written to conftest
> configure:1956: cc -o conftest -O conftest.c -lnsl 1>&5
> configure:2120: cc -o conftest -O conftest.c -lnsl 1>&5
> "/usr/include/sys/types.h", line 19: cannot find include file:
> <sys/sysmacros.h>
> "/usr/include/rpc/types.h", line 37: cannot find include file: <sys/time.h>
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: null character in input
> "/usr/include/rpc/xdr.h", line 1: fatal: too many errors
> cc: acomp failed for conftest.c
> configure:2193: cc -c -O conftest.c 1>&5
> configure:2226: cc -c -O conftest.c 1>&5
> configure:2266: cc -c -O conftest.c 1>&5
> "configure", line 2252: cannot find include file: <stdarg.h>
> "configure", line 2258: undefined symbol: va_list
> "configure", line 2258: syntax error before or at: alist
> "configure", line 2259: undefined symbol: alist
> "configure", line 2260: syntax error before or at: int
> cc: acomp failed for conftest.c
> configure:2312: cc -o conftest -O -DNO_STDARG conftest.c -lnsl 1>&5
> configure:2384: cc -E -DNO_STDARG conftest.c >/dev/null 2>conftest.out
> "configure", line 2380: cannot find include file: <float.h>
> cc: acomp failed for conftest.c
> configure:2418: cc -E -DNO_STDARG conftest.c >/dev/null 2>conftest.out
> configure:2444: cc -c -O -DNO_STDARG conftest.c 1>&5
> "configure", line 2436: identifier redeclared: malloc
> current : function() returning pointer to struct {int a, int b}
> previous: function() returning pointer to char :
> "/usr/include/stdlib.h",
> line 29
> cc: acomp failed for conftest.c
We have tested netCDF on SunOS 5.5, and it seems to compile, link, and
test correctly, with no error messages.
The "config.log" file is expected to have error messages in it, since it is
just the output from the various tests run by the "configure" script to
determine the characteristics of the platform and compilation environment,
so it can generate suitable Makefiles. "conftest.c" is just the name used
for temporary programs "configure" creates and tries to run to determine
the machine characteristics.
However, the message
"/usr/include/sys/types.h", line 19: cannot find include file:
<sys/sysmacros.h>
would seem to indicate your SunOS 5.5 system is missing the necessary
include file "/usr/include/sys/sysmacros.h", which we have on our SunOS 5.5
system.
Your C compiler and associated include files and libraries must be properly
installed for the "configure" script to work. I've appended the output we
get from running the "configure" script for netCDF 2.4.2 on a SunOS 5.5
system, in case you want to compare it with yours.
If this doesn't solve the problem, please send us the output from running
the "configure" script.
________________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
creating cache ./config.cache
checking for catman... catman
checking for fill-value usage... new usage
checking the installation prefix... /a/zero/home/russ/upc/netcdf/sunos-5.5
checking the installation exec-prefix... /a/zero/home/russ/upc/netcdf/sunos-5.5
checking for cc... cc
checking type of operating system... sunos5
checking type of machine... sun4
checking for ranlib... ranlib
checking how to run the C preprocessor... cc -E
checking the C preprocessor... works
checking for f77... f77
checking for CC... CC
checking for yacc... yacc
checking for neqn... neqn
checking for tbl... tbl
checking for ar... ar
checking for makeinfo... makeinfo
checking for tar flags... -chof
checking for dependency generation mechanism... cc -xM
checking whether cross-compiling... no
checking size of int... 4
checking size of long... 4
checking type of nclong... long
checking endianess... big endian
checking type of netlong... long
checking type of internal netlong... long
checking for XDR header-file... -I/usr/include/rpc
checking for XDR library...
checking for xdr_long in default library... no
checking for xdr_long in -lrpc... no
checking for xdr_long in -lnsl... yes
checking XDR implementation... ok
checking type pointed to by inline XDR function... netlong
checking XDR library for xdr_getint()... no
checking which XDR module to use... xdrposix
checking for function prototype... yes
checking for working const... yes
checking for variadic function support... yes
checking for strerror... yes
checking compiler options for IEEE arithmetic...
checking for size of block buffer... 8192
checking for float.h... yes
checking for stdlib.h... yes
checking C header file <stdlib.h> for function malloc()... declared
checking for package version... 2.4
checking binary distribution directory... /home/ftp/pub/binary/sun4-sunos5
updating cache ./config.cache
creating ./config.status
creating Makefile
creating xdr/Makefile
creating libsrc/Makefile
creating fortran/Makefile
creating cxx/Makefile
creating ncgen/Makefile
creating ncdump/Makefile
creating nctest/Makefile
creating doc/Makefile
creating port/master.mk
creating port/Makefile
creating libsrc/local_nc.h
expanding `include's in file `Makefile'
expanding `include's in file `xdr/Makefile'
expanding `include's in file `libsrc/Makefile'
expanding `include's in file `fortran/Makefile'
expanding `include's in file `cxx/Makefile'
expanding `include's in file `ncgen/Makefile'
expanding `include's in file `ncdump/Makefile'
expanding `include's in file `nctest/Makefile'
expanding `include's in file `doc/Makefile'
expanding `include's in file `port/master.mk'
expanding `include's in file `port/Makefile'