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.
> Hallo, > > I've tested the following with netcdf 3.6.1 and 3.6.2. > > with > > gfortran --version > GNU Fortran 95 (GCC) 4.1.1 > > the configure does'nt work: > > FC=gfortran ./configure > [...] > checking for Fortran "byte"... yes > checking for Fortran "integer*2"... yes > 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 > [...] > > Obviously configure can't get the correct settings for > "byte", "integer*2", "integer", "real", and "doubleprecision". > > On the same platform (Linux) it workes with gfortran4.0.x or ifort, but > I need the latest gfortran for a i386-solaris ... so I'd like to test it > on Linux first. > > Any (fast!!) help is very welcome! > > > Regards, > > Malte > > -- > ********************************************************************** > *** Dr. Malte Thoma *** email: address@hidden *** > *** *** address@hidden *** > *** Alfred-Wegener-Institute for Polar and Marine Research *** > *** Bussestrasse 24 *** phone: +49 (0)471 4831 1828 *** > *** D - 27570 Bremerhaven *** fax : +49 (0)471 4831 1797 *** > *** Germany *** *** > ********************************************************************** > > Try setting CPPFLAGS to -Df2cFortran before running configure. If that doesn't work, try -DpgiFortran. (Configure should already be trying gFortran). gfortran has done something (again) to the way they name their functions. I believe the next beta release will work with this version of gfortran. Please let me know if this does or does not work. Thanks, Ed Ticket Details =================== Ticket ID: EBO-131170 Department: Support netCDF Priority: Normal Status: Closed