[ncl-install] sd_nc* undefined references

Rick Grubin grubin at ucar.edu
Wed Mar 5 15:18:06 MST 2008


Hi Jeff

> Thanks.  I didn't see that first link, and I misread the "special  
> note on HDF4 software" on the second as implying I needed to keep  
> the --enable-netcdf option.

I'll re-word the documentation noting that using '--disable-netcdf'  
is the appropriate thing to do.

> Now I have a different issue in that the build is looking for hdf/ 
> netcdf.h, which no longer exists since I rebuilt hdf.  I've tried  
> this a few different ways, without success, but I'm probably  
> missing something simple.  Any ideas?
>
> gcc -c -DLINUX -ansi -fPIC -D_FILE_OFFSET_BITS=64 - 
> D_LARGEFILE_SOURCE -O  -I../.
> ./.././include -I/usr/X11R6/include -I/usr/local/netcdf-3.6.2- 
> nofortran/include
> -I/usr/local/hdf/include  -DLinux -DMAJOR=2       -DSYSV - 
> D_POSIX_SOURCE -D_XOPE
> N_SOURCE -DByteSwapped -DNeedFuncProto  NclHDF.c
> NclHDF.c:27:24: hdf/netcdf.h: No such file or directory

Please edit the files

	NclHDF.c
and
	NclHDFEOS.c

located in the directory .../ni/src/ncl directory (relative to your  
source code install root point) and remove the following line from each:

	#include <hdf/netcdf.h>

There's no longer a need to include this file, and with newer  
releases of HDF4, the NCL-recommended installation of HDF4 will not
install this file.  This is 'fixed' in the next release of NCL, and  
now documented in the web documentation discussing NCL installation.

My apologies for the difficulties.

----	
Rick Grubin      NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin at ucar.edu             303.497.1832




More information about the ncl-install mailing list