Hi Hans, > We met an error message building netcdf 4.3.0 in a Centos 6.2 environment > with a gfortran 4.7.2 compiler. > > Could you give some advice to solve the problem? First, you'll have trouble building netCDF 4.3.0 with a Fortran compiler, as it is only a C library. You should be building it with gcc rather than gfortran, for example, according to these instructions: http://www.unidata.ucar.edu/netcdf/docs/building.html Once you have the netCDF C library built and installed, you can get and build the separate netCDF Fortran 4.2 libraries by following these instructions: http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html --Russ > The environment variables are set as follows ; > LDFLAGS=-L/opt/shared/tools/gcc/4.7.2/rtf/lib > CPPFLAGS=-I/opt/shared/tools/gcc/4.7.2/rtf/include > -I/opt/netcdf-4.3.0-gf/include > LD_LIBRARY_PATH=/opt/shared/tools/gcc/4.7.2/rtf/lib > > ./configure --prefix=/opt/netcdf-4.3.0-gf > make check > > which generate the following error.. > Making check in fortran > make[1]: Entering directory `/opt/netcdf-4.1.3/fortran' > echo '! NetCDF-3.' > netcdf.inc > cat ../fortran/netcdf3.inc >> netcdf.inc > echo >> netcdf.inc > echo '! NetCDF-2.' >> netcdf.inc > cat ../fortran/netcdf2.inc >> netcdf.inc > make check-am > make[2]: Entering directory `/opt/netcdf-4.1.3/fortran' > depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. > -I../include -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o > fort-attio.lo fort-attio.c &&\ > mv -f $depbase.Tpo $depbase.Plo > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT > fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -fPIC -DPIC > -o .libs/fort-attio.o > In file included from fort-attio.c:8:0: > ncfortran.h:24:42: fatal error: NF_INT_IS_C_... not defined: No such file or > directory > compilation terminated. > make[2]: *** [fort-attio.lo] Error 1 > make[2]: Leaving directory `/opt/netcdf-4.1.3/fortran' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/opt/netcdf-4.1.3/fortran' > make: *** [check-recursive] Error 1 > > > Best regards, > Hans Malschaert > System/Network administrator > > Information and Presentation Centre (IPC) > Royal Netherlands Institute for Sea Research > (Koninklijk Nederlands Instituut voor Zeeonderzoek) > Landsdiep 4 - 1797 SZ Den Hoorn - Netherlands > * mailto: address@hidden<mailto:address@hidden> > ? tel : +31 222 369377 > ? fax : +31 222 319674 > * ftp : http://nioz.wetransfer.com<http://nioz.wetransfer.com/> > * web : http://www.nioz.nl<http://www.nioz.nl/> > [Description: cid:address@hidden > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: PSS-815442 Department: Support netCDF Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly 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.