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

[netCDF #QLC-865146]: Netcdf on RH 64 bits



Hi Leilane,

It looks like when you installed GMT 4.1.4, you also installed a later version 
of the netCDF libraries and include files, perhaps a netCDF library that does 
not include the Fortran-77 interfaces or that assumes a different Fortran-77 
compiler than what you use.  It's not possible to tell from the symptoms you 
describe whether the new netCDF library was built without Fortran-77 interfaces 
or was built for a different Fortran compiler.  If you use the "nm" tool on the 
new library, you should be able to determine whether it contains Fortran-77 
entry points such as nf_put_var_real().  For example, you should see something 
like this:

  $ nm -P libnetcdf.a | grep nf_put_var_real
  .XBAWHndR6rGGEZg.nf_put_var_real_.__func__ D       cb       11 
  nf_put_var_real_ T      680       39 

which indicates "nf_put_var_real" is defined in the "libnetcdf.a" library.  If 
instead you see no output, then the function you are looking for is not there, 
and you need to reinstall the netCDF library with support for your Fortran 
compiler.

There is unfortunately no widely adopted standard for how Fortran compilers 
call C functions, so the function "nf_put_var_real" may actually have a name 
with one or two "_" characters appended in the library.  So the library must be 
built using the same conventions for names and passing arguments as the 
compiler you are using.  From the error messages you sent, it looks like your 
Fortran compiler expects two "_" characters to be appended to the name.

If the library entry for "nf_put_var_real" does not have two underscores at the 
end, you will have to rebuild and reinstall the netCDF library, but this is not 
hard on a Linux 64-bit platform.  Just get the source distribution from the 
netCDF home page, run the "configure" script, then run "make check" and "make 
install", as described here:

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions-for-Installing-NetCDF-on-Unix.html

Good Luck!
--Russ



Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: QLC-865146
Department: Support netCDF
Priority: Normal
Status: Closed