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

20040727: Problems with building NetCDF



>From: Omer Bar-or <address@hidden>
>Organization: ?
>Keywords: 200407271721.i6RHLhaW004863 netCDF build environment

Omer,

After looking through the items you included, I see that the problem
is indicated by:

 ...
>cfortran.h:155: #error "cfortran.h:  Can't find your environment among:  =
>  - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)       =
>  - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000       =
>  - VAX   VMS CC 3.1 and FORTRAN 5.4.                                    =
>  - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.                             =
>  - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2            =
>  - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.              =
>  - CRAY                                                                 =
>  - NEC SX-4 SUPER-UX                                                    =
>  - CONVEX                                                               =
>  - Sun                                                                  =
>  - PowerStation Fortran with Visual C++                                 =
>  - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730      =
>  - LynxOS: cc or gcc with f2c.                                          =
>  - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.               =
>  -            f77 with vcc works; but missing link magic for f77 I/O.   =
>  -            NO fort. None of gcc, cc or vcc generate required names.  =
>  - f2c    : Use #define    f2cFortran, or cc -Df2cFortran               =
>  - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran            =
>  - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFort=
>ran     - Absoft Pro Fortran: Use #define AbsoftProFortran     - Portland=
> Group Fortran: Use #define pgiFortran"
>make[2]: *** [fort-attio.o] Error 1
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/fort=
>ran'
>make[1]: *** [subdir_target] Error 1
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make: *** [fortran/all] Error 2

This is a result of one environment variable not having been defined,
CPPFLAGS.

Example definitions of environment variables needed to build the netCDF
can be found in:

Unidata HomePage
http://my.unidata.ucar.edu

  netCDF
  http://my.unidata.ucar.edu/content/software/netcdf/index.html

    Installation Instructions
    http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html

It is the last page that lists example environment variable settings for
a variety of operating systems.  The one that is most likely pertinent
for you is a variant of:

    CC=/usr/bin/gcc
    CPPFLAGS='-DNDEBUG -Df2cFortran'
    CFLAGS=-O
    FC=/usr/bin/g77
    FFLAGS='-O -Wno-globals'
    CXX=/usr/bin/g++

Adding the definitions needed from the above, your settings would become:


    CC=/usr/bin/c89
    CPPFLAGS='-DNDEBUG -Df2cFortran'
    CFLAGS=-O
    FC=/usr/bin/g77
    FFLAGS='-O -Wno-globals'
    CXX=/usr/bin/g++
    F90=""

Note that CPPFLAGS is defined to include the -Df2cFortran flag.  This
is the one that will get you past the error you are currently seeing.

After defining the above environment variables, you will need to
run 'configure' again -- after -- you clean the distribution:

make distclean
./configure
make
make install

Please let us know if this does not fix your problem.

Cheers,

Tom Yoksas

>From address@hidden  Tue Jul 27 12:15:57 2004

>Yep, that did it.
>Thanks!
>- Omer.

>I've been trying to install NetCDF, specifically for FORTRAN 77, and 
>can't seem to get the "make" command to work. As listed in the 
>"reporting errors" section of the "Installing NetCDF" webpage, here are 
>'items' you requested:
>
>A. The standard output of the command "uname -a".
>.................
>Linux voldai 2.4.26-dqcd-smp #1 SMP Fri Apr 23 11:12:06 MDT 2004 i686 
>unknown
>
>B. The contents of the file VERSION, which is in the top-level source 
>directory.
>.................
>3.5.1
>
>C. The file "macros.make", which is created in the top-level source 
>directory by the |configure| script during step 6 above.
>.................
>Included (see attachments)
>
>D. The absolute pathnames of all compilers (C, Fortran, C++) used in the 
>build process if they are not in the file "macros.make" (use the type(1) 
>or which(1) utility to determine this).
>.................
>Format=language_name (variable_name_in_macros.make):        
>absolute_pathname
>.................
>C (CC):                          /usr/bin/c89
>C++ (CXX):                  /usr/bin/c++
>FORTRAN77 (FC):      /usr/bin/g77
>FORTRAN90 (F90):    <none selected>
>
>E. The file "configure.log" from step 6 above.
>.................
>Included (see attachments)
>
>F. The file "config.log", which is created in the top-level source 
>directory by the |configure| script during step 6 above.
>.................
>Included (see attachments)
>
>G. The file "make.log" from step 7 above.
>.................
>Included (see attachments)
>
>
>I hope this is just me doing something silly and is easy to fix. Please 
>respond earlier rather than later, so that I can get working.
>Thanks!
>- Omer.
>
>
>--------------040509070609090708040102
>Content-Type: text/plain;
> name="config.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="config.log"
>
>This file contains any messages produced by compilers while
>running configure, to aid debugging if configure makes a mistake.
>
>configure:928: checking for top-level source-directory
>configure:938: checking for m4 preprocessor
>configure:945: checking for m4
>configure:1012: checking m4 flags
>configure:1040: checking for xlc
>configure:1040: checking for c89
>configure:1085: checking C compiler "c89"
>configure:1094: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure:1121: checking how to make dependencies
>configure:1189: checking for CC
>configure:1189: checking for cxx
>configure:1189: checking for c++
>configure:1225: checking C++ compiler "c++"
>configure:1243: c++ -o conftest  -DNDEBUG  conftest.C  1>&5
>configure:1294: checking how to run the C preprocessor
>configure:1315: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:1383: checking user-defined Fortran-77 compiler "/usr/bin/g77"
>configure:1389: /usr/bin/g77 -c -O2 conftest.f
>configure:1548: checking for Fortran .F compiler
>configure:1558: checking if Fortran-77 compiler handles *.F files
>configure:1569: /usr/bin/g77 -o conftest -O2 conftest.F 
>configure:1608: checking user-defined Fortran-90 compiler ""
>configure:1615:  -c  conftest.f90
>configure: -c: command not found
>configure:1740: checking for nm utility
>configure:1747: checking for nm
>configure:1814: checking nm flags
>configure:1830: checking for C-equivalent to Fortran routine "SUB"
>configure:1836: /usr/bin/g77 -c -O2 conftest.f
>configure:1865: checking for Fortran "byte"
>configure:1872: /usr/bin/g77 -c -O2 conftest.f
>configure:1889: checking for Fortran "integer*2"
>configure:1896: /usr/bin/g77 -c -O2 conftest.f
>configure:1922: checking if Fortran "byte" is C "signed char"
>configure:1931: c89 -c -DNDEBUG -O conftest.c
>configure:1933: /usr/bin/g77 -O2 -c conftestf.f
>configure:1935: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:1937: ./conftest
>configure:1970: checking if Fortran "byte" is C "short"
>configure:1979: c89 -c -DNDEBUG -O conftest.c
>configure:1981: /usr/bin/g77 -O2 -c conftestf.f
>configure:1983: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:1985: ./conftest
>configure:2018: checking if Fortran "byte" is C "int"
>configure:2027: c89 -c -DNDEBUG -O conftest.c
>configure:2029: /usr/bin/g77 -O2 -c conftestf.f
>configure:2031: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2033: ./conftest
>configure:2066: checking if Fortran "byte" is C "long"
>configure:2075: c89 -c -DNDEBUG -O conftest.c
>configure:2077: /usr/bin/g77 -O2 -c conftestf.f
>configure:2079: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2081: ./conftest
>configure:2118: checking if Fortran "integer*2" is C "short"
>configure:2127: c89 -c -DNDEBUG -O conftest.c
>configure:2129: /usr/bin/g77 -O2 -c conftestf.f
>configure:2131: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2133: ./conftest
>configure:2166: checking if Fortran "integer*2" is C "int"
>configure:2175: c89 -c -DNDEBUG -O conftest.c
>configure:2177: /usr/bin/g77 -O2 -c conftestf.f
>configure:2179: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2181: ./conftest
>configure:2214: checking if Fortran "integer*2" is C "long"
>configure:2223: c89 -c -DNDEBUG -O conftest.c
>configure:2225: /usr/bin/g77 -O2 -c conftestf.f
>configure:2227: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2229: ./conftest
>configure:2264: checking if Fortran "integer" is C "int"
>configure:2273: c89 -c -DNDEBUG -O conftest.c
>configure:2275: /usr/bin/g77 -O2 -c conftestf.f
>configure:2277: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2279: ./conftest
>configure:2312: checking if Fortran "real" is C "float"
>configure:2321: c89 -c -DNDEBUG -O conftest.c
>configure:2323: /usr/bin/g77 -O2 -c conftestf.f
>configure:2325: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2327: ./conftest
>configure:2360: checking if Fortran "doubleprecision" is C "double"
>configure:2369: c89 -c -DNDEBUG -O conftest.c
>configure:2371: /usr/bin/g77 -O2 -c conftestf.f
>configure:2373: /usr/bin/g77 -o conftest -O2  conftestf.o conftest.o  
>configure:2375: ./conftest
>configure:2402: checking for Fortran-equivalent to netCDF "byte"
>configure:2409: /usr/bin/g77 -c -O2 conftest.f
>configure:2424: checking for Fortran-equivalent to netCDF "short"
>configure:2431: /usr/bin/g77 -c -O2 conftest.f
>configure:2451: checking for math library
>configure:2455: checking for tanh in -lc
>configure:2474: c89 -o conftest -O -DNDEBUG  conftest.c -lc   1>&5
>/tmp/cc0ComoJ.o: In function `main':
>/tmp/cc0ComoJ.o(.text+0x7): undefined reference to `tanh'
>collect2: ld returned 1 exit status
>configure: failed program was:
>#line 2463 "configure"
>#include "confdefs.h"
>/* Override any gcc2 internal prototype to avoid an error.  */
>/* We use char because int might match the return type of a gcc2
>    builtin and then its argument prototype would still apply.  */
>char tanh();
>
>int main() {
>tanh()
>; return 0; }
>configure:2493: checking for tanh in -lm
>configure:2512: c89 -o conftest -O -DNDEBUG  conftest.c -lm   1>&5
>configure:2544: checking for ar utility
>configure:2551: checking for ar
>configure:2618: checking ar flags
>configure:2627: checking for nm utility
>configure:2669: checking for nm
>configure:2701: checking nm flags
>configure:2711: checking for ranlib
>configure:2740: checking for stdlib.h
>configure:2750: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:2777: checking for sys/types.h
>configure:2787: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:2813: checking for strerror
>configure:2841: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:2866: checking for working ftruncate()
>configure:2919: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>/tmp/cc8RaoUL.o: In function `main':
>/tmp/cc8RaoUL.o(.text+0x12): the use of `tmpnam' is dangerous, better use `mks
> temp'
>configure:2941: checking for working alloca.h
>configure:2953: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:2974: checking for alloca
>configure:3007: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3173: checking for st_blksize in struct stat
>configure:3186: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure:3208: checking for IEEE floating point format
>configure:3246: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3267: checking for ANSI C header files
>configure:3280: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:3347: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3371: checking for size_t
>configure:3404: checking for off_t
>configure:3437: checking for ssize_t
>configure:3470: checking for ptrdiff_t
>configure:3503: checking for uchar
>configure:3536: checking whether char is unsigned
>configure:3575: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure: failed program was:
>#line 3565 "configure"
>#include "confdefs.h"
>/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
>#if !defined(__STDC__) || __STDC__ != 1
>#define volatile
>#endif
>main() {
>  volatile char c = 255; exit(c < 0);
>}
>configure:3599: checking whether byte ordering is bigendian
>configure:3617: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure: In function `main':
>configure:3612: `bogus' undeclared (first use in this function)
>configure:3612: (Each undeclared identifier is reported only once
>configure:3612: for each function it appears in.)
>configure:3612: parse error before `endian'
>configure: failed program was:
>#line 3606 "configure"
>#include "confdefs.h"
>#include <sys/types.h>
>#include <sys/param.h>
>int main() {
>
>#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
> bogus endian macros
>#endif
>; return 0; }
>configure:3665: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3689: checking size of short
>configure:3708: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3728: checking size of int
>configure:3747: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3767: checking size of long
>configure:3786: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3806: checking size of float
>configure:3825: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3845: checking size of double
>configure:3864: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3884: checking size of off_t
>configure:3907: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3927: checking size of size_t
>configure:3950: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:4051: checking for manual-page index command
>configure:4055: checking binary distribution directory
>
>--------------040509070609090708040102
>Content-Type: text/plain;
> name="configure.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="configure.log"
>
>creating cache ./config.cache
>checking for top-level source-directory
>/home/cremlae/code/ncdf/netcdf-3.5.1/src
>checking for m4 preprocessor
>checking for m4... m4
>checking m4 flags... -B10000
>checking for xlc... no
>checking for c89... c89
>checking C compiler "c89"... works
>checking how to make dependencies... false
>checking for CC... no
>checking for cxx... no
>checking for c++... c++
>checking C++ compiler "c++"... works
>checking how to run the C preprocessor... c89 -E
>checking user-defined Fortran-77 compiler "/usr/bin/g77"... works
>checking for Fortran .F compiler... 
>checking if Fortran-77 compiler handles *.F files... yes
>checking user-defined Fortran-90 compiler ""... failed to compile test program
>configure: warning: The Fortran-90 interface will not be built
>checking for nm utility
>checking for nm... nm
>checking nm flags... 
>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 tanh in -lc... no
>checking for tanh in -lm... yes
>checking for ar utility
>checking for ar... ar
>checking ar flags... cru
>checking for nm utility
>checking for nm... (cached) nm
>checking nm flags... 
>checking for ranlib... ranlib
>checking for stdlib.h... yes
>checking for sys/types.h... yes
>checking for strerror... yes
>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... no
>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
>creating libsrc/ncconfig.h
>
>--------------040509070609090708040102
>Content-Type: text/plain;
> name="make.log"
>Content-Transfer-Encoding: quoted-printable
>Content-Disposition: inline;
> filename="make.log"
>
>make[1]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>
>Making `all' in directory /home/cremlae/code/ncdf/netcdf-3.5.1/src/libsrc=
>
>
>make[2]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/lib=
>src'
>c89 -c -O -I.  -DNDEBUG attr.c
>c89 -c -O -I.  -DNDEBUG dim.c
>c89 -c -O -I.  -DNDEBUG error.c
>c89 -c -O -I.  -DNDEBUG -DVERSION=3D`cat ../VERSION` libvers.c
>c89 -c -O -I.  -DNDEBUG nc.c
>c89 -c -O -I.  -DNDEBUG ncio.c
>c89 -c -O -I.  -DNDEBUG ncx.c
>c89 -c -O -I.  -DNDEBUG putget.c
>c89 -c -O -I.  -DNDEBUG string.c
>c89 -c -O -I.  -DNDEBUG v1hpg.c
>c89 -c -O -I.  -DNDEBUG v2i.c
>c89 -c -O -I.  -DNDEBUG var.c
>ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o putge=
>t.o string.o v1hpg.o v2i.o var.o
>ranlib libnetcdf.a
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/libs=
>rc'
>
>Returning to directory /home/cremlae/code/ncdf/netcdf-3.5.1/src
>
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make[1]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>
>Making `all' in directory /home/cremlae/code/ncdf/netcdf-3.5.1/src/ncdump=
>
>
>make[2]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/ncd=
>ump'
>c89 -c -O -I../libsrc  -DNDEBUG ncdump.c
>c89 -c -O -I../libsrc  -DNDEBUG vardata.c
>c89 -c -O -I../libsrc  -DNDEBUG dumplib.c
>c89 -o ncdump -O  ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a =20
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/ncdu=
>mp'
>
>Returning to directory /home/cremlae/code/ncdf/netcdf-3.5.1/src
>
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make[1]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>
>Making `all' in directory /home/cremlae/code/ncdf/netcdf-3.5.1/src/ncgen
>
>make[2]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/ncg=
>en'
>c89 -c -O -I../libsrc -I.  -DNDEBUG main.c
>c89 -c -O -I../libsrc -I.  -DNDEBUG load.c
>Warning: ncgentab.c is out-of-date with respect to ncgen.y
>Warning: It should be recreated via yacc on an OSF/1 system
>c89 -c -O -I../libsrc -I.  -DNDEBUG ncgentab.c
>c89 -c -O -I../libsrc -I.  -DNDEBUG escapes.c
>c89 -c -O -I../libsrc -I.  -DNDEBUG getfill.c
>c89 -c -O -I../libsrc -I.  -DNDEBUG init.c
>c89 -c -O -I../libsrc -I.  -DNDEBUG genlib.c
>c89 -o ncgen -O  main.o load.o ncgentab.o escapes.o getfill.o init.o genl=
>ib.o ../libsrc/libnetcdf.a =20
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/ncge=
>n'
>
>Returning to directory /home/cremlae/code/ncdf/netcdf-3.5.1/src
>
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make[1]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>
>Making `all' in directory /home/cremlae/code/ncdf/netcdf-3.5.1/src/cxx
>
>make[2]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/cxx=
>'
>c++ -c  -I../libsrc -I.  -DNDEBUG netcdf.cpp
>c++ -c  -I../libsrc -I.  -DNDEBUG ncvalues.cpp
>ar cru libnetcdf_c++.a netcdf.o ncvalues.o
>ranlib libnetcdf_c++.a
>c++ -c  -I../libsrc -I.  -DNDEBUG nctst.cpp
>c++ -o nctst   nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf=20
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/cxx'=
>
>
>Returning to directory /home/cremlae/code/ncdf/netcdf-3.5.1/src
>
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make[1]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>
>Making `all' in directory /home/cremlae/code/ncdf/netcdf-3.5.1/src/fortra=
>n
>
>make[2]: Entering directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/for=
>tran'
>c89 -c -O -I../libsrc  -DNDEBUG fort-attio.c
>In file included from ncfortran.h:13,
>                 from fort-attio.c:6:
>cfortran.h:155: #error "cfortran.h:  Can't find your environment among:  =
>  - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)       =
>  - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000       =
>  - VAX   VMS CC 3.1 and FORTRAN 5.4.                                    =
>  - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.                             =
>  - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2            =
>  - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.              =
>  - CRAY                                                                 =
>  - NEC SX-4 SUPER-UX                                                    =
>  - CONVEX                                                               =
>  - Sun                                                                  =
>  - PowerStation Fortran with Visual C++                                 =
>  - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730      =
>  - LynxOS: cc or gcc with f2c.                                          =
>  - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.               =
>  -            f77 with vcc works; but missing link magic for f77 I/O.   =
>  -            NO fort. None of gcc, cc or vcc generate required names.  =
>  - f2c    : Use #define    f2cFortran, or cc -Df2cFortran               =
>  - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran            =
>  - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFort=
>ran     - Absoft Pro Fortran: Use #define AbsoftProFortran     - Portland=
> Group Fortran: Use #define pgiFortran"
>make[2]: *** [fort-attio.o] Error 1
>make[2]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src/fort=
>ran'
>make[1]: *** [subdir_target] Error 1
>make[1]: Leaving directory `/home/cremlae/code/ncdf/netcdf-3.5.1/src'
>make: *** [fortran/all] Error 2
>
>--------------040509070609090708040102
>Content-Type: text/plain;
> name="macros.make"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="macros.make"
>
># $Id: macros.make.in,v 1.33 2001/07/11 16:30:33 steve Exp $
>
># The purpose of this file is to contain common make(1) macros.
># It should be processed by every execution of that utility.
>
>
># POSIX shell.  Shouldn't be necessary -- but is under IRIX 5.3.
>SHELL          = /bin/sh
>
>
># Installation Directories:
>SRCDIR         = /home/cremlae/code/ncdf/netcdf-3.5.1/src
>prefix         = /home/cremlae/code/ncdf/netcdf-3.5.1
>exec_prefix    = $(prefix)
>INCDIR         = $(exec_prefix)/include
>LIBDIR         = $(exec_prefix)/lib
>BINDIR         = $(exec_prefix)/bin
>MANDIR         = $(prefix)/man
>
>
># Preprocessing:
>M4             = m4
>M4FLAGS                = -B10000
>CPP            = c89 -E
>CPPFLAGS       = $(INCLUDES) $(DEFINES) -DNDEBUG
>FPP            = 
>FPPFLAGS       = 
>CXXCPPFLAGS    = $(CPPFLAGS)
>
>
># Compilation:
>CC             = c89
>CXX            = c++
>FC             = /usr/bin/g77
>F90            = 
>CFLAGS         = -O
>CXXFLAGS       = 
>FFLAGS         = -O2
>F90FLAGS       = 
>CC_MAKEDEPEND  = false
>COMPILE.c      = $(CC) -c $(CFLAGS) $(CPPFLAGS)
>COMPILE.cxx    = $(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS)
>COMPILE.f      = $(FC) -c $(FFLAGS)
>COMPILE.F90    = $(F90) -c $(F90FLAGS)
># The following command isn't available on some systems; therefore, the
># `.F.o' rule is relatively complicated.
>COMPILE.F      = $(COMPILE.f) $(FPPFLAGS)
>
>
># Linking:
>MATHLIB                = -lm
>FLIBS          = 
>F90LIBS                = 
>LIBS           = 
>F90LDFLAGS     = $(LDFLAGS)
>LINK.c         = $(CC) -o $@ $(CFLAGS) $(LDFLAGS)
>LINK.cxx       = $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS)
>LINK.F         = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
>LINK.f         = $(FC) -o $@ $(FFLAGS) $(FLDFLAGS)
>LINK.F90       = $(F90) -o $@ $(F90FLAGS) $(F90LDFLAGS)
>
>
># Manual pages:
>WHATIS         = whatis
># The following macro should be empty on systems that don't
># allow users to create their own manual-page indexes.
>MAKEWHATIS_CMD = 
>
>
># Misc. Utilities:
>AR             = ar
>ARFLAGS                = cru
>RANLIB         = ranlib
>TARFLAGS       = -chf
>
>
># Dummy macros: used only as placeholders to silence GNU make.  They are
># redefined, as necessary, in subdirectory makefiles.
>HEADER         = dummy_header
>HEADER1                = dummy_header1
>HEADER2                = dummy_header2
>HEADER3                = dummy_header3
>LIBRARY                = dummy_library.a
>MANUAL         = dummy_manual
>PROGRAM                = dummy_program
>
>
># Distribution macros:
>FTPDIR         = /home/ftp/pub/$(PACKAGE)
>FTPBINDIR      = /home/ftp/pub/binary/dummy_system
>VERSION                = dummy_version
>
>--------------040509070609090708040102--
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publically available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.