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

[netCDF #AMK-226245]: 'make check' error installing netCDF



Hi Ravi,

> I am getting an error while doing a 'make check' after installing netcdf. The 
> final part of the error is given below:
> ************
> ../fortran/.libs/libnetcdff.so: undefined reference to `nf_inq_type_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nf_inq_var_endian_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nf_inq_grps_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nf_def_grp_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nf_get_var1_int64_'
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory 
> `/gpfs/work/r/ruk15/NETCDF4.2/netcdf-fortran-4.2/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory 
> `/gpfs/work/r/ruk15/NETCDF4.2/netcdf-fortran-4.2/nf_test'
> make: *** [check-recursive] Error 1
> ************
> 
> Before doing this 'make check', I did the following:
> 
> **************
> export CC=icc
> export CXX=icpc
> export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export FC=ifort
> export F77=ifort
> export F90=ifort
> export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
> export CPP='icc -E'
> export CXXCPP='icpc -E
> 
> export CPPFLAGS=-I/gpfs/home/ruk15/work/local/include
> export LDFLAGS=-L/gpfs/home/ruk15/work/local/lib
> ./configure --prefix=/gpfs/home/ruk15/work/local
> *************
> 
> I am using ifort. I thought the CPPFLAGS are set properly, but I still get 
> this error. IS there something I am missing? I have attached my 'config.log' 
> file.

See these intructions, particularly the first paragraph:

  http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html

It appears that you haven't installed the netCDF C library before building
the netCDF Fortran library.  When you have installed the netCDF C library,
preferably the latest released version 4.3.0, then you can set CPPFLAGS
and LDFLAGS to specify its location before building the Fortran library
(version 4.2 is the latest release, which works OK with the C version 4.3.0).

--Russ


--Russ

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



Ticket Details
===================
Ticket ID: AMK-226245
Department: Support netCDF
Priority: Normal
Status: Closed