Re: sd_nc* undefined references

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Wed, 5 Mar 2008 15:18:06 -0700

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

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Mar 05 2008 - 15:18:06 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 13 2008 - 17:23:34 MDT