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

960924: NetCDF library



>From: address@hidden (Clint Rowe)
>Organization: University of Nebraska-Lincoln
>Keywords: 199609241510.AA14617 netCDF Sun Solaris libnsl

Clint,

>A couple of weeks ago, I grabbed the latest netCDF distribution and installed
>it without any apparent problem (no, I don't have a log file of the make,
>but everything seemed okay).  The tests all seem to work fine and ncdump
>works.  However, the following command, which used to work fine, now produces
>this result:
>
>
>zephyr% f77 -o gennet gennet.f /usr/local/ldm/util/lib/libnetcdf.a
>gennet.f:
> MAIN:
>Undefined                       first referenced
> symbol                             in file
>xdr_enum                            /usr/local/ldm/util/lib/libnetcdf.a(array.
> o)
>xdr_float                           /usr/local/ldm/util/lib/libnetcdf.a(cdf.o)
>xdr_int                             /usr/local/ldm/util/lib/libnetcdf.a(array.
> o)
>xdr_vector                          
>/usr/local/ldm/util/lib/libnetcdf.a(sharray.o)
>xdr_u_long                          /usr/local/ldm/util/lib/libnetcdf.a(array.
> o)
>xdr_double                          /usr/local/ldm/util/lib/libnetcdf.a(cdf.o)
>xdr_long                            /usr/local/ldm/util/lib/libnetcdf.a(dim.o)
>xdr_opaque                          /usr/local/ldm/util/lib/libnetcdf.a(array.
> o)
>ld: fatal: Symbol referencing errors. No output written to gennet
>zephyr% 
>
>
>Here are some particulars:     Solaris 2.5
>                               FORTRAN 3.0.1
>                               C 3.0.1
>                               
>I understand that the errors are because it cant find the XDR routines, but I
>I thought the netCDF would build XDR if it didn't exist.  It should exist
>
>Any ideas on what I'm doing wrong?

You need to specify the use of the 'nsl' library on Solaris:

f77 -o gennet gennet.f /usr/local/ldm/util/lib/libnetcdf.a -lnsl

The 'nls' library should be found in your /usr/lib directory on Solaris.

Tom Yoksas