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

970728: problem installing netcdf on Ultra II



Dear Paramesh,

>Date: Fri, 28 Jul 95 21:01:09 PDT 
>From: address@hidden
>Organization: Wadia Institute of Himalayan Geology
>To: Steve Emmerson <address@hidden>
>Subject: RE: 970728: problem installing netcdf on Ultra II 
>Keywords: 199707161628.KAA18287

In the above message, you wrote:

> WIHG# which CC
> opt/SUNWspro/bin/CC
> IHG# type CC
> C is /opt/SUNWspro/bin/CC
> IHG# which cc
> opt/SUNWspro/bin/cc
> IHG# type cc
> c is a tracked alias for /opt/SUNWspro/bin/cc
> IHG# sh
>  which CC
> opt/SUNWspro/bin/CC
>  type CC
> C is /opt/SUNWspro/bin/CC
>  which cc
> opt/SUNWspro/bin/cc
>  type cc
> c is /opt/SUNWspro/bin/cc
>  
> *****************************
>  c89 -V
> 89: not found
>  csh
> IHG# c89 -V
> 89: Command not found
> IHG# 
>  c89 -V
> 89: not found
>  csh
> IHG# c89 -V
> 89: Command not found
> IHG# 
> *****************************
> s -l /opt/SUNWspro/bin
> otal 4542
> rwxrwxrwx   1 root     other         15 Jul 28 17:41 CC -> ../SC4.0/bin/CC
> rwxrwxrwx   1 root     other         15 Jul 28 17:41 CC-4.1 -> 
> ../SC4.0/bin/CC
> rwxrwxrwx   1 root     other         21 Jun 18 03:50 analyzer -> 
> ../SW3.1/bin/analyzer
> rwxr-xr-x   1 bin      bin      2096880 Jul 17 16:16 bak
> rwxrwxrwx   1 root     other         19 Jun 18 03:50 bcheck -> 
> ../SW3.1/bin/bcheck
> rwxrwxrwx   1 root     other         20 Jul 28 17:41 c++filt -> 
> ../SC4.0/bin/c++filt
> rwxrwxrwx   1 root     other         26 Jul 22 13:05 cc -> 
> /opt/SUNWspro/SC4.0/bin/CC

The last line above indicates that your C compiler is actually a
symbolic link to your C++ compiler.  We've never seen this situation
before on a SunOS 5 system -- though we speculate that it might be
caused by installing the C++ compiler but not the C compiler.

Regardless of how this situation arose, it is apparent from your
messages that the SC 4.0 C++ compiler cannot be used to build the netCDF
package.  Among the problems resulting from the fact that the CC compiler
isn't a Standard C compiler are the following:

    1.  Lack of strerror() and ftruncate()

    2.  Unrecognized math library.

    3.  ANSI C header-file incompatibilities.

    4.  Lack of ptrdiff_t.

    5.  Unrecognized sizeof()s: short, int, long float, double, off_t,
        and size_t.

The above problems are too extensive and numerous to solve individually.
Thus, you will have to use a Standard C compiler in order to build the
netCDF package.  One possibility is to install the SC 4.0 C compiler.
To do this, insert your SunSoft WorkShop "Developer Products" CD-ROM and
follow the instructions in the README file in the top-level directory.

Another possibility would be to install the GNU C compiler.  A URL for
this compiler is 

    ftp://prep.ai.mit.edu/pub/gnu/
    
    
Get the file "gcc-2.7.2.tar.gz".

> rwxr-xr-x   1 root     other     160724 Jul  8 15:59 cc.old
> rwxrwxrwx   1 root     other         28 Jul 21 12:06 ccfe -> 
> /opt/SUNWspro/SC4.0/bin/ccfe
> rwxrwxrwx   1 root     other         16 Jun 18 03:50 dbx -> ../SW3.1/bin/dbx
> rwxrwxrwx   1 root     other         21 Jun 18 03:50 debugger -> 
> ../SW3.1/bin/debugger
> rwxrwxrwx   1 root     other         16 Jul 28 17:41 dem -> ../SC4.0/bin/dem
> rwxrwxrwx   1 root     other         22 Jun 18 03:50 dumpstabs -> 
> ../SW3.1/bin/dumpstabs
> rwxrwxrwx   1 root     other         22 Jun 18 03:50 er_export -> 
> ../SW3.1/bin/er_export
> rwxrwxrwx   1 root     other         22 Jun 18 03:50 er_mapgen -> 
> ../SW3.1/bin/er_mapgen
> rwxrwxrwx   1 root     other         18 Jun 18 03:50 er_mv -> 
> ../SW3.1/bin/er_mv
> rwxrwxrwx   1 root     other         21 Jun 18 03:50 er_print -> 
> ../SW3.1/bin/er_print
> rwxrwxrwx   1 root     other         18 Jun 18 03:50 er_rm -> 
> ../SW3.1/bin/er_rm
> rwxrwxrwx   1 root     other         16 Jul 28 17:41 f77 -> ../SC4.0/bin/f77
> rwxrwxrwx   1 root     other         16 Jul 28 17:41 f77-4.0 -> 
> ../SC4.0/bin/f77
> rwxrwxrwx   1 root     other         16 Jun 18 05:46 f77.old -> 
> ../SC4.0/bin/f77
> rwxrwxrwx   1 root     other         16 Jul 28 17:41 f90 -> ../SC4.0/bin/f90
> rwxrwxrwx   1 root     other         16 Jul 28 17:41 f90-1.1 -> 
> ../SC4.0/bin/f90
> rwxrwxrwx   1 root     other         22 Jun 18 03:49 f90browse -> 
> ../SW3.1/bin/f90browse
> rwxrwxrwx   1 root     other         22 Jun 18 03:49 f90browse-1.1 -> 
> ../SW3.1/bin/f90browse
> rwxrwxrwx   1 root     other         20 Jul 28 17:41 f90list -> 
> ../SC4.0/bin/f90list
> rwxrwxrwx   1 root     other         16 Jun 18 03:48 fbe -> ../SC4.0/bin/fbe
> rwxrwxrwx   1 root     other         16 Jun 18 03:48 fbe-4.0 -> 
> ../SC4.0/bin/fbe
> rwxrwxrwx   1 root     other         26 Jun 18 03:50 filemerge -> 
> ../FileMerge/bin/filemerge
> rwxrwxrwx   1 root     other         16 Jun 18 03:48 fpr -> ../SC4.0/bin/fpr
> rwxrwxrwx   1 root     other         26 Jun 18 03:48 fpversion -> 
> ../SPROutool/bin/fpversion
> rwxrwxrwx   1 root     other         19 Jun 18 03:48 fsplit -> 
> ../SC4.0/bin/fsplit
> rwxrwxrwx   1 root     other         20 Jul 21 12:15 iropt -> 
> /opt/SC4.0/bin/iropt
> rwxrwxrwx   1 root     other         21 Jun 18 03:50 maketool -> 
> ../SW3.1/bin/maketool
> rwxrwxrwx   1 root     other         28 Jun 18 03:50 maketool_client -> 
> ../SW3.1/bin/maketool_client
> rwxrwxrwx   1 root     other         20 Jul 28 17:41 ptclean -> 
> ../SC4.0/bin/ptclean
> rwxrwxrwx   1 root     other         19 Jul 28 17:41 ratfor -> 
> ../SC4.0/bin/ratfor
> rwxrwxrwx   1 root     other         27 Jun 18 03:50 rtc_patch_area -> 
> ../SW3.1/bin/rtc_patch_area
> rwxrwxrwx   1 root     other         22 Jun 18 03:49 sbcleanup -> 
> ../SW3.1/bin/sbcleanup
> rwxrwxrwx   1 root     other         20 Jun 18 03:49 sbenter -> 
> ../SW3.1/bin/sbenter
> rwxrwxrwx   1 root     other         20 Jun 18 03:48 sbfocus -> 
> ../SC4.0/bin/sbfocus
> rwxrwxrwx   1 root     other         22 Jun 18 03:49 sbidfdump -> 
> ../SW3.1/bin/sbidfdump
> rwxrwxrwx   1 root     other         20 Jun 18 03:49 sbquery -> 
> ../SW3.1/bin/sbquery
> rwxrwxrwx   1 root     other         21 Jun 18 03:49 sbrowser -> 
> ../SW3.1/bin/sbrowser
> rwxrwxrwx   1 root     other         19 Jun 18 03:49 sbtags -> 
> ../SW3.1/bin/sbtags
> rwxrwxrwx   1 root     other         23 Jun 18 03:48 sparcworks -> 
> ../swmgr/bin/sparcworks
> rwxrwxrwx   1 root     other         32 Jul 22 13:37 tbd_link -> 
> /opt/SUNWspro/SC4.0/bin/tbd_link
> rwxrwxrwx   1 root     other         17 Jun 18 03:48 tcov -> 
> ../SC4.0/bin/tcov
> rwxrwxrwx   1 root     other         24 Jun 18 03:48 version -> 
> ../SPROutool/bin/version
> ***************************
> s -l /opt/SUNWspro/SC4.0/bin
> total 44142
> rwxr-xr-x   1 bin      bin       160724 Oct 19  1995 CC
> rwxr-xr-x   1 bin      bin        79064 Oct 19  1995 c++filt
> rwxr-xr-x   1 bin      bin      2096880 Oct 19  1995 ccfe
> rwxr-xr-x   1 root     other    2096880 Jul 17 16:06 ccfe.1
> rwxr-xr-x   1 bin      bin      3138776 Oct 19  1995 cg
> rwxr-xr-x   1 bin      bin        77532 Oct 19  1995 dem
> rwxr-xr-x   1 bin      bin       163124 Oct 19  1995 f77
> rwxr-xr-x   1 bin      bin       163124 Oct 19  1995 f77.old
> rwxr-xr-x   1 bin      bin       881512 Oct 19  1995 f77pass0
> rwxr-xr-x   1 bin      bin      1192684 Oct 19  1995 f77pass1
> rwxr-xr-x   1 bin      bin       152500 Oct  9  1995 f90
> rwxr-xr-x   1 bin      bin      8364836 Sep 27  1995 f90comp
> rwxr-xr-x   1 bin      bin       846496 Sep 27  1995 f90list
> rwxr-xr-x   1 bin      bin       309868 Oct 19  1995 fbe
> rwxr-xr-x   1 bin      bin        10348 Oct 19  1995 fpr
> rwxr-xr-x   1 bin      bin        12560 Oct 19  1995 fsplit
> rwxr-xr-x   1 bin      bin       453372 Nov 16  1995 ild
> rwxr-xr-x   1 bin      bin      1130728 Oct 19  1995 iropt
> rwxr-xr-x   1 bin      bin          489 Oct 19  1995 ptclean
> rwxr-xr-x   1 bin      bin        43328 Oct 19  1995 ratfor
> rwxr-xr-x   1 bin      bin       514532 Oct 18  1995 sbcleanup
> rwxr-xr-x   1 bin      bin       119696 Oct 18  1995 sbfocus
> rwxr-xr-x   1 bin      bin        16664 Oct 19  1995 tcov
> rwxr-xr-x   1 bin      bin       372372 Oct 19  1995 tdb_link
> ********************

The above listing indicates that you do not have the SC4.0 C
compilation system installed (no "cc" or "c89").

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