<div dir="ltr">OK! I got it. I&#39;ll try it again.<div style>And another problem is in the ./ni/src/ncl/FileSupport.c.</div><div style>At the line around 2901, &nbsp;the switch loop.&nbsp;</div><div style>If I use the same configuration above(i.e. not support NetCDF4) to install.</div>
<div style>I&#39;ll get a message that say NC_FORMAT_NETCDF4,&nbsp;</div><div style>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NC_FORMAT_NETCDF4_CLASSIC,</div><div style>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NC_FORMAT_64BIT&nbsp;</div>
<div style>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and NC_FORMAT_CLASSIC are undefined.</div><div style>Then get Error.</div><div style>So, I install by command out this 4 case statements like below now.</div><div style><br></div>
<div style><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch(format)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>/*</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case NC_FORMAT_NETCDF4:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file_ext_q = cur_ext_q;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; found = 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *new_hlfs = 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case NC_FORMAT_NETCDF4_CLASSIC:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case NC_FORMAT_64BIT:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case NC_FORMAT_CLASSIC:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file_ext_q = cur_ext_q;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; found = 1;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>*/</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; found = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div>
<div><br></div></div><div style>I think if I use NetCDF4 will solve this problem.</div><div style>Thank you so &nbsp;much. I&#39;ll try it by NetCDF4(4.1.2)</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2012/12/20 David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">This looks like a bug in our build system. The&nbsp;_getVarNodeFromNclFileGrpNode function is in a file that only gets included in the build if &nbsp;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>
&nbsp;-dave<div><div class="h5"><br><div><br><div><div>On Dec 19, 2012, at 6:04 PM, ÃQ¤h°¶ wrote:</div><br><blockquote type="cite"><div dir="ltr">Hello, thanks your reply.&nbsp;<div>My netCDF version is 3.6.3<div>And I checked my Site.local(below),&nbsp;<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>I think I didn&#39;t let NCL to compile for NetCDF4.</div><div>And I remember when I ran the Configure script,&nbsp;I choose &quot;n&quot; over every file format support option.</div></div>
<div>It&#39;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">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</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"><br>
Hi,<br>
<br>
I haven&#39;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&#39;t compiled with NetCDF 4 support turned on (it&#39;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 &quot;--enable-netcdf-4&quot; set?<br>
<br>
--Mary<br>
<div><div><br>
On Dec 19, 2012, at 4:13 AM, ÃQ¤h°¶ wrote:<br>
<br>
&gt; I met an error when compile ncl<br>
&gt; my gcc compiler&#39;s version is 4.4.6<br>
&gt; =================================================================<br>
&gt; Execute.o: In function `CallLIST_READ_FILEVAR_OP&#39;:<br>
&gt; Execute.c:(.text+0xf8d6): undefined reference to `_getVarNodeFromNclFileGrpNode&#39;<br>
&gt; Execute.c:(.text+0xfd9b): undefined reference to `_getVarNodeFromNclFileGrpNode&#39;<br>
&gt; Symbol.o: In function `_NclReadFileVarCoord&#39;:<br>
&gt; Symbol.c:(.text+0x383c): undefined reference to `_getVarNodeFromNclFileGrpNode&#39;<br>
&gt; Symbol.o: In function `_NclReadFileVar&#39;:<br>
&gt; Symbol.c:(.text+0x3b4a): undefined reference to `_getVarNodeFromNclFileGrpNode&#39;<br>
&gt; Symbol.o: In function `_NclGetFileVarCoordInfo&#39;:<br>
&gt; Symbol.c:(.text+0x404d): undefined reference to `_getVarNodeFromNclFileGrpNode&#39;<br>
&gt; Symbol.o:Symbol.c:(.text+0x43c8): more undefined references to `_getVarNodeFromNclFileGrpNode&#39; follow<br>
&gt; collect2: ld ¦^¶Ç 1<br>
&gt; make[4]: *** [ncl] Error 1<br>
&gt; make[4]: Leaving directory `/home/weiwilliam/ncl_ncarg-6.1.0/ni/src/ncl&#39;<br>
&gt; ==================================================================<br>
&gt;<br>
&gt; I search it on internet, but I didn&#39;t find the solution.<br>
&gt; Did anyone have this problem??<br>
&gt; Thanks a lot.<br>
</div></div>&gt; _______________________________________________<br>
&gt; ncl-install mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>