<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div> -dave<br><div><br><div><div>On Dec 19, 2012, at 6:04 PM, ÃQ¤h°¶ wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello, thanks your reply. <div>My netCDF version is 3.6.3<div>And I checked my Site.local(below), <div><br></div><div><div>#define BuildRasterHDF 0</div><div>#define HDFlib</div><div>#define BuildHDF4 0</div>
<div>#define HDFlib</div><div>#define UseNetCDF4Features 0</div><div>#define BuildNetCDF4 0</div><div>#define NetCDF4lib</div><div>#define BuildTRIANGLE 0</div><div>#define BuildUdunits 0</div><div>#define UdUnitslib</div>
<div>#define BuildHDFEOS 0</div><div>#define HDFEOSlib</div><div>#define BuildHDFEOS5 0</div><div>#define HDFEOS5lib</div><div>#define BuildHDF5 0</div><div>#define HDF5lib</div><div>#define BuildGRIB2 0</div><div>#define GRIB2lib</div>
<div><br></div></div><div style="">I think I didn't let NCL to compile for NetCDF4.</div><div style="">And I remember when I ran the Configure script, I choose "n" over every file format support option.</div></div>
<div style="">It's so strange~~~ Should I try to install with NetCDF4?@@</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/20 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><br>
Hi,<br>
<br>
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).<br>
<br>
What version of NetCDF are you linking against? Did you compile that version of NetCDF with "--enable-netcdf-4" set?<br>
<br>
--Mary<br>
<div><div class="h5"><br>
On Dec 19, 2012, at 4:13 AM, ÃQ¤h°¶ wrote:<br>
<br>
> I met an error when compile ncl<br>
> my gcc compiler's version is 4.4.6<br>
> =================================================================<br>
> Execute.o: In function `CallLIST_READ_FILEVAR_OP':<br>
> Execute.c:(.text+0xf8d6): undefined reference to `_getVarNodeFromNclFileGrpNode'<br>
> Execute.c:(.text+0xfd9b): undefined reference to `_getVarNodeFromNclFileGrpNode'<br>
> Symbol.o: In function `_NclReadFileVarCoord':<br>
> Symbol.c:(.text+0x383c): undefined reference to `_getVarNodeFromNclFileGrpNode'<br>
> Symbol.o: In function `_NclReadFileVar':<br>
> Symbol.c:(.text+0x3b4a): undefined reference to `_getVarNodeFromNclFileGrpNode'<br>
> Symbol.o: In function `_NclGetFileVarCoordInfo':<br>
> Symbol.c:(.text+0x404d): undefined reference to `_getVarNodeFromNclFileGrpNode'<br>
> Symbol.o:Symbol.c:(.text+0x43c8): more undefined references to `_getVarNodeFromNclFileGrpNode' follow<br>
> collect2: ld ¦^¶Ç 1<br>
> make[4]: *** [ncl] Error 1<br>
> make[4]: Leaving directory `/home/weiwilliam/ncl_ncarg-6.1.0/ni/src/ncl'<br>
> ==================================================================<br>
><br>
> I search it on internet, but I didn't find the solution.<br>
> Did anyone have this problem??<br>
> Thanks a lot.<br>
</div></div>> _______________________________________________<br>
> ncl-install mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
</blockquote></div><br></div>
_______________________________________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br></blockquote></div><br></div></div></body></html>