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.
Unidata Support <address@hidden> writes: > ------- Forwarded Message > >>To: address@hidden >>cc: address@hidden, >>cc: address@hidden, >>cc: Peter Wind <address@hidden> >>From: Sverre Solberg <address@hidden> >>Subject: NETCDF configure problem on Fedora Linux Core 3 >>Organization: ? >>Keywords: 200505231217.j4NCHmP3011070 netCDF Fedora Core 3 Intel ifort 8.1 >>Fortran > > Hi, > > we are trying to install NETCDF 3.6.0p1 on a Fedora Linux > (2.6.11-1.14_FC3smp) Core 3 computer running Intel x86. We are using the > Intel ifort 8.1 Fortran compiler (Fortran 90) and the gcc (version 3.4.3 > 20050227 Red Hat 3.4.3-22.fc3) compiler. This is the script we are using for > defining the environment variables: > --- > export FC=ifort > export F90=ifort > export FFLAGS="-O -mp" > export CPPFLAGS="-DNDEBUG -DpgiFortran" > export CC="/usr/bin/gcc" > export CXX="/usr/bin/g++" > --- > > Then running ./configure apparently works ok, but we get the error messages > given at the end when trying to compile with make. > > It seems as the problem is that the configure cant find out what is the > Fortran byte, integer and real in C, as we get the following messages from > configure: > ---- > checking if Fortran "byte" is C "signed char"... no > 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"... no > 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"... no > checking if Fortran "integer" is C "long"... no > checking if Fortran "real" is C "float"... no > checking if Fortran "real" is C "double"... no > checking if Fortran "doubleprecision" is C "double"... no > checking if Fortran "doubleprecision" is C "float"... no > checking for Fortran-equivalent to netCDF "byte"... byte > checking for Fortran-equivalent to netCDF "short"... integer*2 > -------- > > We have seen similar error messages in newsgroups and tried the various > solutions proposed but the problem still persists. We also tried to download > the NETCDF 3.6.1.beta3 version but with same result. > > Could you please give some ideas of how to solve this? > > Best regards > Sverre Solberg > > -------------------- > > make[2]: Entering directory `/usr/local/netcdf-3.6.1-beta3/src/fortran' > /usr/bin/gcc -c -g -I.. -I../libsrc -DNDEBUG -DpgiFortran fort-attio.c > In file included from fort-attio.c:6: > ncfortran.h:27:42: NF_INT_IS_C_... not defined: No such file or directory > fort-attio.c:12: error: syntax error before "NF_INTEGER" > fort-attio.c:12: error: syntax error before '*' token > fort-attio.c:12: error: syntax error before numeric constant > fort-attio.c:12: warning: data definition has no type or storage class > fort-attio.c:12: error: syntax error before numeric constant > fort-attio.c:12: error: syntax error before '!' token > fort-attio.c:12: error: syntax error before numeric constant > fort-attio.c:19: error: syntax error before numeric constant > fort-attio.c:19: warning: data definition has no type or storage class > fort-attio.c:19: error: syntax error before numeric constant > fort-attio.c:19: error: syntax error before '!' token > fort-attio.c:19: error: syntax error before numeric constant > fort-attio.c:120: error: syntax error before numeric constant > fort-attio.c:120: warning: data definition has no type or storage class > fort-attio.c:120: error: syntax error before numeric constant > fort-attio.c:120: error: syntax error before '!' token > fort-attio.c:120: error: syntax error before numeric constant > fort-attio.c:132: error: syntax error before numeric constant > fort-attio.c:132: warning: data definition has no type or storage class > fort-attio.c:132: error: syntax error before numeric constant > fort-attio.c:132: error: syntax error before '!' token > fort-attio.c:132: error: syntax error before numeric constant > fort-attio.c:140: error: syntax error before numeric constant > fort-attio.c:140: warning: data definition has no type or storage class > fort-attio.c:140: error: syntax error before numeric constant > fort-attio.c:140: error: syntax error before '!' token > fort-attio.c:140: error: syntax error before numeric constant > fort-attio.c:147: error: syntax error before numeric constant > fort-attio.c:147: warning: data definition has no type or storage class > fort-attio.c:147: error: syntax error before numeric constant > fort-attio.c:147: error: syntax error before '!' token > fort-attio.c:147: error: syntax error before numeric constant > make[2]: *** [fort-attio.o] Error 1 > make[2]: Leaving directory `/usr/local/netcdf-3.6.1-beta3/src/fortran' > make[1]: *** [subdir_target] Error 1 > make[1]: Leaving directory `/usr/local/netcdf-3.6.1-beta3/src' > make: *** [fortran/all] Error 2 > > -- > 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. > > ------- End of Forwarded Message > > Howdy Sverre, Can you try the exact commands and settings used here: http://my.unidata.ucar.edu/content/software/netcdf/builds/LINUX_3_6_0_ifort.txt Note that I have to run the ifortvars.sh script that came with ifort, or it doesn't work for me. If that doesn't work, please send all the information requested here: http://my.unidata.ucar.edu/content/software/netcdf/docs/netcdf-install/Reporting-Problems.html#Reporting-Problems Thanks, Ed -- Ed Hartnett -- address@hidden