<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ronnie,<div><br></div><div>Since NCAR Graphics was compiled with gfortran, you need to include "-lgfortran" on your compile line.</div><div><br></div><div>If g95 can't find "libgfortran.a" then see this FAQ:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/FAQ/#err_msgs_008">http://www.ncl.ucar.edu/FAQ/#err_msgs_008</a></div><div><br></div><div>This is for the WRAPIT program, but the same information applies here.</div><div><br></div><div>--Mary</div><div><br></div><div><br></div><div><div><div>On Sep 1, 2011, at 2:43 PM, Ronnie Leeper wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div><div><div style="color: rgb(0, 0, 0); ">he binary distribution "ncl_ncarg-6.0.0.Linux_RedHat_x86_64_gcc412" seems to not work well on a 64bit RedHat Linux with gcc version 4.1.2 cluster. I am attempting to install some WRF related graphical programs. WRF was installed using g95, which may or may not be the root of this issue. The error messages I get are mainly undefined references to ncl function calls. Some of the error messages are provided below in blue:</div><div style="color: rgb(0, 0, 0); "><br></div><div><div><font class="Apple-style-span" color="#1440fc"><div>make[1]: Entering directory `/home/ronnieleeper/WRFv3.3/WPS/util/src'</div><div>/bin/rm -f module_map_utils.o module_map_utils.mod</div><div>/usr/bin/cpp -C -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 -D_MPI -D_UTIL -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_netcdf -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_grib_share -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_grib1 -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_int -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/inc module_map_utils.F > module_map_utils.f90</div><div>mpif90 -ffree-form -g -fno-second-underscore -fendian=big -c module_map_utils.f90 -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_netcdf -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_grib_share -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_grib1 -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/external/io_int -I/home/ronnieleeper/WRFv3.3/WPS/../WRFV3/inc</div><div>/bin/cp plotgrids.F plotgrids.f90</div><div>g95 -ffree-form -g -fno-second-underscore -fendian=big -c plotgrids.f90</div><div>g95 -o plotgrids.exe -g module_map_utils.o module_debug.o cio.o constants_module.o misc_definitions_module.o \</div><div> plotgrids.o -L/home/ronnieleeper/prgfiles/ncl/lib -lncarg -lncarg_gks -lncarg_c -L/usr/lib64 -lX11 </div><div>/home/ronnieleeper/prgfiles/ncl/lib/libncarg.a(mdpit.o): In function `mdpit_':</div><div>mdpit.f:(.text+0x47a): undefined reference to `_gfortran_pow_r8_i4'</div><div>mdpit.f:(.text+0x4f4): undefined reference to `_gfortran_pow_r8_i4'</div><div>/home/ronnieleeper/prgfiles/ncl/lib/libncarg.a(mdsetc.o): In function `mdsetc_':</div><div>mdsetc.f:(.text+0x58): undefined reference to `_gfortran_compare_string'</div><div>mdsetc.f:(.text+0x75): undefined reference to `_gfortran_compare_string'</div><div>/home/ronnieleeper/prgfiles/ncl/lib/libncarg.a(mdsetd.o): In function `mdsetd_':</div><div>mdsetd.f:(.text+0x50): undefined reference to `_gfortran_compare_string'</div><div>mdsetd.f:(.text+0x6d): undefined reference to `_gfortran_compare_string'</div><div>mdsetd.f:(.text+0xab): undefined reference to `_gfortran_compare_string'</div><div>/home/ronnieleeper/prgfiles/ncl/lib/libncarg.a(mdsetd.o):mdsetd.f:(.text+0xc8): more undefined references to `_gfortran_compare_string' follow</div><div><br></div></font></div></div><div><div>When I "nm /home/ronnieleeper/prgfiles/ncl/lib/libncarg.a | grep _gfortran_pow_r8_i4"</div><div><br></div><div>The function is found and I get</div><div><div> <font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div><div><font class="Apple-style-span" color="#1440fc"> U _gfortran_pow_r8_i4</font></div></div><div><br></div><div>I am not sure what the "U" means, but does anyone have any suggestions as to why ncl or gfortran commands aren't defined?</div><div><br></div><div style="color: rgb(0, 0, 0); ">Thanks,</div></div></div><div><br></div><div>Ronald David Leeper<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><br></span><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">USCRN Quality Assurance Specialist, NCDC</span><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Research Associate, CICS-NC<br>Global Climate Applications Division<br>National Climatic Data Center<br>151 Patton Ave.<br>Asheville, NC 28801-5001<br><a href="mailto:ronald.leeper@noaa.gov">ronald.leeper@noaa.gov</a><br>leeperd@gmail.com<br>Office: (828) 257-3185</span></div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Fax: (828) 271-4022</span></div></div></div></div></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>