<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font face="Arial">Hi Mary,</font><div><font face="Arial"><br></font></div><div><font face="Arial">Thank you for your reply. We only purchase the PGI fortran license, and we compile most of our codes with a combination of PGI fortran and gcc. Usually it works. In this instance I was able to get some help from the PGI people and these are the list of libraries they gave me in order to make it work:</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">-L/usr/pgi/linux86-64/12.9/lib -lpgmp -lnuma -lpthread -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc -lpgc -lrt -lpthread -lm</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">and that resolves that problem. </font></div><div><font face="Arial"><br></font></div><div><font face="Arial">Now I am having an issue with the g2clib (undefined references to the png_set_longjmp_fn function<font color="#333333"><span style="line-height: 18px;">. I believe is due to version inconsistencies between the current version of g2clib (1.4, installed on our system) and the ones used within NCL… and I read on the INSTALL that you recommend to use the package </span></font>g2clib_with_changes-1.2.1.tar.gz. But I cannot find it. Where can I download this package from ?</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">Thank you for your help,</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">Tiziana.</font></div><div><div><br class="webkit-block-placeholder"></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div>---</div><div>Tiziana Cherubini, PhD</div><div>Research Meteorologist, MKWC (<a href="http://mkwc.ifa.hawaii.edu">http://mkwc.ifa.hawaii.edu</a>)</div><div>University of Hawaii - Dept. of Meteorology</div><div>2525 Correa Rd HIG 367 Honolulu HI 96822</div><div>tel (808) 956 4593</div><div>fax (808) 956 2877</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 25, 2012, at 5:56 AM, Mary Haley <<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Tiziana,<br><br>Since you are using gcc and not pgcc, the "-pgf90libs" option is not going to be recognized. You may need to uncomment<br>the other CtoFLibraries line that lists the "-l" libraries separately.<br><br>Is there a reason you're using gcc and not pgcc?<br><br>--Mary<br><br>On Oct 24, 2012, at 4:58 PM, Tiziana Cherubini wrote:<br><br><blockquote type="cite">Aloha,<br><br>I am trying to compile the ncl/ncarg graphics on our server running CentOS (uname -a => Linux <a href="http://io.ifa.hawaii.edu">io.ifa.hawaii.edu</a> 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux), with gcc (v4.4.6 ), and pgi (v12.9). <br><br>I set up the configuration file to look like:<br><br>/*<br>* Description: This file contains all the directives needed to<br>* tell ymake how to build NCARG/NCL on a 64-bit<br>* LINUX system using the Portland Group compilers.<br>*<br>* Copy this file to the LINUX file in this directory<br>* before you start the NCL/NCARG build.<br>*/<br>#define HdfDefines -DLINUX64<br>#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped<br>#define ByteSwapped<br>#define Cstatic<br>#define Cdynamic<br>#define CppCommand '/usr/bin/cpp -traditional'<br>#define CCompiler gcc<br>#define FCompiler pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE<br>/*<br>#define CtoFLibraries -lpgc -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgftnrtl -lpghpf<br>*/<br>#define CtoFLibraries -pgf90libs<br>#define XToolLibrary -lXt -lSM -lICE<br>#define BuildShared NO<br>#define ExtraExportFlags -Wl,--export-dynamic<br><br>#define ArchRecLibSearch -L/usr/X11R6/lib64<br>#define ArchRecIncSearch -I/usr/X11R6/include<br><br>FC = $(F77)<br><br><br>But I get undefined references to the fortran libraries (please see below for an extract of the make log file). I believe the problem is in the CtoFlibaries… perhaps I shouldn't be using the -pgf90libs ? Any suggestion on what to change in this respect would be greatly appreciated.<br><br>Thank you very much,<br><br>Tiziana.<br><br>...<br>gcc -O -o ictrans main.o ../../../.././ncarview/src/lib/libictrans/libictrans.o ../../../.././ncarview/src/lib/libctrans/libctrans.o -L../../../.././ncarview/src/lib/libcgm -lcgm -L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras -L../../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib -L/usr/lib64/X11 -L/usr/local/lib -L/opt/pgi/linux86-64/12.9/lib -L/usr/local/netcdf-4.1.3-NoHDF4/lib -lX11 -lmfhdf -ldf -ljpeg -lz -lsz -pgf90libs<br>gcc: unrecognized option '-pgf90libs'<br>../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o): In function `CGM_initMetaEdit':<br>meta_edit.c:(.text+0x1295): warning: the use of `mktemp' is dangerous, better use `mkstemp'<br>../../../.././ncarview/src/lib/libictrans/libictrans.o: In function `giargs_':<br>/usr/local/ncl_ncarg-6.0.0-src/ncarview/src/lib/libictrans/./fort_ictrans.f:54: undefined reference to `pgf90_str_copy'<br>../../../.././ncarview/src/lib/libictrans/libictrans.o: In function `.C2_303':<br>fort_ictrans.f:(.data+0x1b20): undefined reference to `pgf90_compiled'<br>collect2: ld returned 1 exit status<br>make[5]: *** [ictrans] Error 1<br>make[5]: Leaving directory `/usr/local/ncl_ncarg-6.0.0-src/ncarview/src/bin/ictrans'<br><br><br>---<br>Tiziana Cherubini, PhD<br>Research Meteorologist, MKWC (<a href="http://mkwc.ifa.hawaii.edu">http://mkwc.ifa.hawaii.edu</a>)<br>University of Hawaii - Dept. of Meteorology<br>2525 Correa Rd HIG 367 Honolulu HI 96822<br>tel (808) 956 4593<br>fax (808) 956 2877<br><br><br><br>_______________________________________________<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><br></blockquote></div><br></div></body></html>