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

20030108: netCDF library link problem: missing f77 interface



Ashish,

>Date: Wed, 8 Jan 2003 17:16:20 -0500
>From: ashish arora <address@hidden>
>Organization: University of Kent
>To: Steve Emmerson <address@hidden>
>Subject: RE: 20030108: Problem linking against netCDF library

The above message contained the following:

> I am sending you the required stuff.I am sending you odbtest.f,nm file 
> containing list of symbols from obect file and the kind of error which I am 
> getting when I try to run the code.
>  
> Sorry for the incovinience, since there is some problem and files are not 
> getting attached and thats why I have to send these directly in the body of 
> mail.
>  
> (1) Fortran code odbtest.f:
...
> (2) The error which I am getting are of the type:
>  
> [aarora@snowy odb]$ g77 libnetcdf.a odbtest.f -o odbtest.out 
> /tmp/ccmKEQjM.o: In function `odb_open__': 
> /tmp/ccmKEQjM.o(.text+0x678): undefined reference to `ncopn_' 
...

"ncopn_" is the routine in the Fortran-77 netCDF interface for opening a
netCDF dataset.  One possible reason for your linker not finding it is
that the object module that contains it (fort-v2compat) is not in the
netCDF library.

From the listing of global symbols of the netCDF library that you sent,
the library contains the following modules only:

    attr.o:
    dim.o:
    error.o: 
    libvers.o: 
    nc.o: 
    ncio.o:
    ncx.o:
    putget.o:
    string.o: 
    v1hpg.o:
    v2i.o: 
    var.o:

The module "fort-v2compat" is not in the above list.  This means that
that module was not added to the netCDF library when the netCDF package
was installed.

In order to determine why that module wasn't added to the library,
would you please send me the files "configure.log", "config.log", and
"make.log", which are described near the end of the file "INSTALL.HTML"
in the top-level source directory of the netCDF package.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>