Re: Install ncl 6.1.0 on CentOS 6.3 i386

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 19 2012 - 19:25:39 MST

This looks like a bug in our build system. The _getVarNodeFromNclFileGrpNode function is in a file that only gets included in the build if UseNetCDF4Features is set non-zero. However, in Execute.c and Symbol.c it is referenced without conditional compilation directives. This needs to be fixed. I think the only workaround for now is to always build with NetCDF4 and UseNetCDF4Features enabled.
 -dave

On Dec 19, 2012, at 6:04 PM, 魏士偉 wrote:

> Hello, thanks your reply.
> My netCDF version is 3.6.3
> And I checked my Site.local(below),
>
> #define BuildRasterHDF 0
> #define HDFlib
> #define BuildHDF4 0
> #define HDFlib
> #define UseNetCDF4Features 0
> #define BuildNetCDF4 0
> #define NetCDF4lib
> #define BuildTRIANGLE 0
> #define BuildUdunits 0
> #define UdUnitslib
> #define BuildHDFEOS 0
> #define HDFEOSlib
> #define BuildHDFEOS5 0
> #define HDFEOS5lib
> #define BuildHDF5 0
> #define HDF5lib
> #define BuildGRIB2 0
> #define GRIB2lib
>
> I think I didn't let NCL to compile for NetCDF4.
> And I remember when I ran the Configure script, I choose "n" over every file format support option.
> It's so strange~~~ Should I try to install with NetCDF4?@@
>
>
> 2012/12/20 Mary Haley <haley@ucar.edu>
>
> Hi,
>
> I haven't seen these kind of errors before, but my guess is that you indicated that you wanted NetCDF4 support when you ran the ./Configure script, but are linking against NetCDF libraries that weren't compiled with NetCDF 4 support turned on (it's possible to compile NetCDF libraries with both NetCDF3 and NetCDF4 support).
>
> What version of NetCDF are you linking against? Did you compile that version of NetCDF with "--enable-netcdf-4" set?
>
> --Mary
>
> On Dec 19, 2012, at 4:13 AM, 魏士偉 wrote:
>
> > I met an error when compile ncl
> > my gcc compiler's version is 4.4.6
> > =================================================================
> > Execute.o: In function `CallLIST_READ_FILEVAR_OP':
> > Execute.c:(.text+0xf8d6): undefined reference to `_getVarNodeFromNclFileGrpNode'
> > Execute.c:(.text+0xfd9b): undefined reference to `_getVarNodeFromNclFileGrpNode'
> > Symbol.o: In function `_NclReadFileVarCoord':
> > Symbol.c:(.text+0x383c): undefined reference to `_getVarNodeFromNclFileGrpNode'
> > Symbol.o: In function `_NclReadFileVar':
> > Symbol.c:(.text+0x3b4a): undefined reference to `_getVarNodeFromNclFileGrpNode'
> > Symbol.o: In function `_NclGetFileVarCoordInfo':
> > Symbol.c:(.text+0x404d): undefined reference to `_getVarNodeFromNclFileGrpNode'
> > Symbol.o:Symbol.c:(.text+0x43c8): more undefined references to `_getVarNodeFromNclFileGrpNode' follow
> > collect2: ld 回傳 1
> > make[4]: *** [ncl] Error 1
> > make[4]: Leaving directory `/home/weiwilliam/ncl_ncarg-6.1.0/ni/src/ncl'
> > ==================================================================
> >
> > I search it on internet, but I didn't find the solution.
> > Did anyone have this problem??
> > Thanks a lot.
> > _______________________________________________
> > ncl-install mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Dec 19 19:25:46 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:42:49 MST