<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Saulo,<div><br></div><div>We just released NCL V6.0.0-beta, and I think we got rid of most of the gfortran_xxxx undefined issues.</div><div><br></div><div>We have LINUX x86_64 binaries that were compiled with gcc 4.3.2 and gcc 4.4.5. You might try one of these and see if the problem goes away.</div><div><br></div><div>The 6.0.0-beta version is on the ESG:</div><div><br></div><div><a href="http://www.earthsystemgrid.org">http://www.earthsystemgrid.org</a></div><div><br></div><div>Click on "NCL: NCAR Command Language" and then "NCL Version 6.0.0-beta".</div><div><br></div><div>Decide whether you want OPeNDAP-enabled or non-OPeNDAP enabled binaries and click on the corresponding link.</div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(33, 33, 33); line-height: 14px; "><table style="border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; margin-bottom: 0px; position: static; z-index: auto; "><tbody><tr><td valign="center" align="left" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.3em; padding-right: 0.3em; padding-bottom: 0.3em; padding-left: 0.3em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); "></td></tr></tbody></table></span><div><br></div><div>The OPeNDAP files of interest are:</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=aee60b35-4540-11e0-b4d9-00c0f03d5b7c">ncl_<wbr>ncarg-<wbr>6.<wbr>0.<wbr>0-<wbr>beta.<wbr>Linux_<wbr>Debian_<wbr>x86_<wbr>64_<wbr>gcc432.<wbr>tar.<wbr>gz</a></span></div><div><br></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=aee60b35-4540-11e0-b4d9-00c0f03d5b7c"></a></span><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=aee63246-4540-11e0-b4d9-00c0f03d5b7c">ncl_<wbr>ncarg-<wbr>6.<wbr>0.<wbr>0-<wbr>beta.<wbr>Linux_<wbr>Debian_<wbr>x86_<wbr>64_<wbr>gcc445.<wbr>tar.<wbr>gz</a></span></div><div><br></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=aee63246-4540-11e0-b4d9-00c0f03d5b7c"></a></span>Or, if you want non-OPeNDAP enabled:</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=701fd578-4541-11e0-b4d9-00c0f03d5b7c">ncl_<wbr>ncarg-<wbr>6.<wbr>0.<wbr>0-<wbr>beta.<wbr>Linux_<wbr>Debian_<wbr>x86_<wbr>64_<wbr>nodap_<wbr>gcc432.<wbr>tar.<wbr>gz</a></span></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(33, 33, 33); line-height: 14px; "><a href="http://www.earthsystemgrid.org/browse/viewLogicalFile.htm?logicalFileId=702098c9-4541-11e0-b4d9-00c0f03d5b7c">ncl_<wbr>ncarg-<wbr>6.<wbr>0.<wbr>0-<wbr>beta.<wbr>Linux_<wbr>Debian_<wbr>x86_<wbr>64_<wbr>nodap_<wbr>gcc445.<wbr>tar.<wbr>gz</a></span></div><div><br></div><div>--Mary</div><div><br></div><div>On Mar 3, 2011, at 1:47 PM, Saulo Soares wrote:</div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi NCL list,</div><div><br></div><div>I have a problem compiling the NCAR graphics.</div><div>I downloaded the binary for 64 bit machine running ubuntu:</div><div>ncl_ncarg-5.2.1.Linux_Debian_x86_64_gcc412.tar.gz</div>
<div><br></div><div>However my gcc/gfortran version is 4.4.3, much newer, so when I run:</div><div>$ ncargex cpex08 -clean</div><div>NCAR Graphics Fortran Example <cpex08></div><div><br></div><div> Copying cpex08.f</div>
<div><br></div><div> Copying cpexcc.f</div><div><br></div><div>Compiling and linking...</div><div>gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/home/saulo/NCL/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lgfortran</div>
<div><br></div><div>I get a bunch of this error:</div><div><br></div><div>/home/saulo/NCL/lib/libncarg.a(mdgetc.o): In function `mdgetc_':</div><div>mdgetc.f:(.text+0x8d): undefined reference to `_gfortran_copy_string'</div>
<div><br></div><div>I google solutions to this from the ncl list and it was suggested that getting libgfortran.so.1 and linking it to gcc/lib/libgfortran.so could do the trick.</div><div>I did that but now the compiler complains about a reference that is in the newer gcc/gfortran version:</div>
<div><br></div><div>/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':</div><div>(.text+0x20): undefined reference to `main'</div><div>/tmp/ccM2T3gF.o: In function `MAIN__':</div>
<div>cpex08.f:(.text+0x4d5): undefined reference to `_gfortran_set_options'</div><div>collect2: ld returned 1 exit status</div><div><br></div><div>The compile and link failed.</div><div><br></div><div>Does anyone knows a solution to this? Or do I have to compile from source?</div>
<div>Or is it possible to make the gcc symbolic link /usr/lib/gcc/x86_64-linux-gnu/4.4/libgfortran.so point to 2 different libraries (link to both libgfortran.so.1 and libgfortran.so.3) at the same time?</div><div><br></div>
<div>Thanks!!</div><div>Aloha</div><div>Saulo Soares</div><div>Phd candidate</div><div>Dept Oceanography</div><div>University of Hawaii at Manoa</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></body></html>