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

20030722: netCDF errors



>From: John Spagnol <address@hidden>
>Organization: University of British Columbia
>Keywords: 200307221500.h6MF0iLd022084

John,

>I am using netCDF with the MM5 3DVAR software.
>I am using the binary for the Linux O/S

Are you using the netcdf-3.5.0.tar.Z file from the pub/binary/linux_2.2-i686
of our anonymous FTP site, ftp.unidata.ucar.edu?  If so, I just verified
that the entry points you list below are in the library, libnetcdf.a.

>I keep getting the following errors found below (and more u.  Any ideas.

The errors you list appear to be from a link step.  If you are using the
binary netCDF 3.0.5 distribution for Linux that I refer to above, then
the problem is most likely that you are not telling the linker where
to find the netCDF library.  Beyond that, we don't have enough information
about what you are trying to do to be really sure where your problem lies.

You can verify the existence of entry points in a library by using
the 'nm' utility on Linux:

% nm libnetcdf.a | grep nf_inq_var_
% nm libnetcdf.a | grep nf_get_att_int_

etc.

>John Spagnol
>University of British Columbia
>------------------------------------------------------------
>
>
>wrf_io.f:7195: undefined reference to `nf_inq_var_'
>wrf_io.f:7202: undefined reference to `nf_get_att_int_'
>wrf_io.f:7262: undefined reference to `nf_inq_dimlen_'
>wrf_io.f:7583: undefined reference to `nf_inq_varid_'
>wrf_io.f:7590: undefined reference to `nf_inq_vartype_
>................
>field_routines.f:52: undefined reference to `nf_put_vara_real_'
>field_routines.f:54: undefined reference to `nf_get_vara_real_'
>field_routines.f:80: undefined reference to `nf_put_vara_double_'
>field_routines.f:82: undefined reference to `nf_get_vara_double_'
>field_routines.f:108: undefined reference to `nf_put_vara_int
>
>--Boundary_(ID_6sHLwgMUXHs9XmtZXwNG/A)
>Content-type: text/html; charset=iso-8859-1
>Content-transfer-encoding: 7BIT
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
><META content="MSHTML 6.00.2800.1106" name=GENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=#ffffff>
><DIV><FONT face=Arial size=2>Hello support group</FONT></DIV>
><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
><DIV><FONT face=Arial size=2>I am using netCDF with the MM5 3DVAR 
>software.</FONT></DIV>
><DIV><FONT face=Arial size=2>I am using the binary for the Linux 
>O/S</FONT></DIV>
><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
><DIV><FONT face=Arial size=2>I keep getting the following errors found below 
>(and more u.&nbsp; Any ideas.</FONT></DIV>
><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
><DIV><FONT face=Arial size=2>John Spagnol</FONT></DIV>
><DIV><FONT face=Arial size=2>University of British Columbia</FONT></DIV>
><DIV><FONT face=Arial 
>size=2>------------------------------------------------------------</FONT></DI
> V>
><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
><DIV><FONT face=Arial size=2>wrf_io.f:7195: undefined reference to 
>`nf_inq_var_'<BR>wrf_io.f:7202: undefined reference to 
>`nf_get_att_int_'<BR>wrf_io.f:7262: undefined reference to 
>`nf_inq_dimlen_'<BR>wrf_io.f:7583: undefined reference to 
>`nf_inq_varid_'<BR>wrf_io.f:7590: undefined reference to 
>`nf_inq_vartype_</FONT></DIV>
><DIV><FONT face=Arial size=2>................</FONT></DIV>
><DIV><FONT face=Arial size=2>field_routines.f:52: undefined reference to 
>`nf_put_vara_real_'<BR>field_routines.f:54: undefined reference to 
>`nf_get_vara_real_'<BR>field_routines.f:80: undefined reference to 
>`nf_put_vara_double_'<BR>field_routines.f:82: undefined reference to 
>`nf_get_vara_double_'<BR>field_routines.f:108: undefined reference to 
>`nf_put_vara_int</FONT></DIV>
><DIV>&nbsp;</DIV></BODY></HTML>
>
>--Boundary_(ID_6sHLwgMUXHs9XmtZXwNG/A)--
>

Tom Yoksas