This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, > I am trying to install the NetCDF-4.0.1 on Redhat Linux ES5-x86_64 (Linux > 2.6.18-164.el5 x86_64 GNU/Linux) with default flags with Lahey Fortran > (lf95) compilers installed. > > I am getting the below error messages when I do ?make check?. > > Please advise what am I missing here. It looks as if you haven't run the "configure" script that must be run prior to invoking "make check". If that's not the case, we'll need more information from you. Please follow the installation instructions here: http://www.unidata.ucar.edu/netcdf/docs/netcdf-install and if you have problems, please send the output requested here: http://www.unidata.ucar.edu/netcdf/docs/netcdf-install/Reporting-Problems.html Also, it may be of interest that we will be releasing version 4.1 of netCDF very soon, probably withing the next week or so. You may have more luck using that release, as it has been ported to more Forrtran compilers, although we do not test with the Lahey Fortran 90 compiler. --Russ > ============================================================================ > ============================================================= > > [root@ofsprod-bk netcdf-4.0.1]# make check > > Making check in f90 > make[1]: Entering directory `/usr/local/src/netcdf-4.0.1/f90' > lf95 -I../libsrc -I. -g -c -o typeSizes.o typeSizes.f90 > Encountered 0 errors, 0 warnings in file typeSizes.f90. > make check-am > make[2]: Entering directory `/usr/local/src/netcdf-4.0.1/f90' > > /bin/sh ../libtool --mode=compile lf95 -I../libsrc -I. -g -c -o > typeSizes.lo typeSizes.f90 > libtool: compile: lf95 -I../libsrc -I. -g -c typeSizes.f90 -o typeSizes.o > Encountered 0 errors, 0 warnings in file typeSizes.f90. > > /bin/sh ../libtool --mode=compile lf95 -I../libsrc -I. -g -c -o netcdf.lo > netcdf.f90 > libtool: compile: lf95 -I../libsrc -I. -g -c netcdf.f90 -o netcdf.o > Encountered 0 errors, 0 warnings in file netcdf.f90. > > /bin/sh ../libtool --mode=link lf95 -I../libsrc -I. -g -o > libnetcdff90.la typeSizes.lo netcdf.lo > > libtool: link: ar cru .libs/libnetcdff90.a typeSizes.o netcdf.o > libtool: link: ranlib .libs/libnetcdff90.a > libtool: link: ( cd ".libs" && rm -f "libnetcdff90.la" && ln -s > "../libnetcdff90.la" "libnetcdff90.la" ) > > make[2]: Leaving directory `/usr/local/src/netcdf-4.0.1/f90' > make[1]: Leaving directory `/usr/local/src/netcdf-4.0.1/f90' > Making check in fortran > make[1]: Entering directory `/usr/local/src/netcdf-4.0.1/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 `/usr/local/src/netcdf-4.0.1/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../libsrc -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../libsrc -g -O2 -MT > fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o > fort-attio.o > > In file included from fort-attio.c:7: > > ncfortran.h:26:42: error: NF_INT_IS_C_... not defined: No such file or > directory > > fort-attio.c: In function âNF_INT_cfFâ: > > fort-attio.c:13: error: expected declaration specifiers before âNF_INTEGERâ > > fort-attio.c:20: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â > before âNF_INTEGERâ > > fort-attio.c:121: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â > before âNF_INTEGERâ > > fort-attio.c:133: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â > before âNF_INTEGERâ > > fort-attio.c:141: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â > before âNF_INTEGERâ > > fort-attio.c:148: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â > before âNF_INTEGERâ > > fort-attio.c:148: error: expected â{â at end of input > > make[2]: *** [fort-attio.lo] Error 1 > > make[2]: Leaving directory `/usr/local/src/netcdf-4.0.1/fortran' > > make[1]: *** [check] Error 2 > > make[1]: Leaving directory `/usr/local/src/netcdf-4.0.1/fortran' > > make: *** [check-recursive] Error 1 > > [root@ofsprod-bk netcdf-4.0.1]# > > ============================================================================ > ================================================================= > > > > Thank you, > > -Ram > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: OTY-454194 Department: Support netCDF Priority: Normal Status: Closed