<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1498677336397_3460" dir="ltr"><span>That did the trick. I don't know if the code runs, but it compiled now. Thank you so much.</span></div><div id="yui_3_16_0_1_1498677336397_3460" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1498677336397_3460" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1498677336397_3460" dir="ltr"><span>Greg</span></div><div></div><div style="color:rgb(255, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:italic;font-weight:bold;" id="yui_3_16_0_1_1498677336397_3525"> </div><div style="color:rgb(255, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:italic;font-weight:bold;"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Wednesday, June 28, 2017 10:31 AM, Mary Haley <haley@ucar.edu> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv4391828166"><div><div dir="ltr"><div class="yiv4391828166gmail_default" style="font-size:small;">Okay, let me back up a bit.</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">I wasn't clear about why I was having you run the "ncargf77" program.<br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">This program does *not* produce an executable when you run it without any arguments. It simply echoes the compile line that it would normally use if you did provide an argument. And, as I said in my original email, running this command without any arguments is going to produce an error, so it doesn't surprise me that you saw all those errors.</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">I was having you run "ncargf77" by itself so you could see what it takes to normally compile an NCAR Graphics program. You could then copy and paste this information for compiling your own NCAR Graphics program.</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">I shouldn't have confused you by asking you to run "ncargf77".</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">Instead, I should have just simply had you type this:</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;"><font face="monospace, monospace">ncargex agex01 -clean -W pdf</font></div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">because "ncargex" actually calls "ncargf77" to compile the program, and it also echoes the compile line. </div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default" style="font-size:small;">When you ran that command, you told me the output was:</div><div class="yiv4391828166gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166gmail_default"><div class="yiv4391828166gmail_default"><font face="monospace, monospace">NCAR Graphics Fortran Example <agex01></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"> Copying agex01.f</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">Compiling and linking...</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o agex01 agex01.f -L/lustre/local/ncl_ncarg-6.4.0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">Executing <agex01>...</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">Warning: ieee_inexact is signaling</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">FORTRAN STOP</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace">cairo PDF file is named agex01.pdf.</font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif">This output indicates to me that the program compiled and executed successfully, and produced a file called "agex01.pdf". I also don't see any error messages. There is a warning, but I don't think is a problem.</font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif">Please use the same compile line to try compiling your own NCAR Graphics program, but replace "agex01" and "agex01.f" with the name of your own program and executable name. For example, if your program is called "testprogram.f", then try compiling it with:</font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><span style="font-family:monospace, monospace;">pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o testprogram testprogram.f -L/lustre/local/ncl_ncarg-6.4.0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2</span><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif">If the above produces an error, then please include the compile line that you are using and the errors that follow.</font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="arial, helvetica, sans-serif">--Mary</font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div><div class="yiv4391828166gmail_default"><font face="monospace, monospace"><br clear="none"></font></div></div><div class="yiv4391828166gmail_default" style="font-size:small;"><span style="color:rgb(0,0,0);"><br clear="none"></span></div></div><div class="yiv4391828166yqt5715844028" id="yiv4391828166yqt02741"><div class="yiv4391828166gmail_extra"><br clear="none"><div class="yiv4391828166gmail_quote">On Wed, Jun 28, 2017 at 11:08 AM, brown wrap <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:gramos@yahoo.com" target="_blank" href="mailto:gramos@yahoo.com">gramos@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv4391828166gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5811">I guess I am not making myself clear. I was able to produce the Cairo pdf, but still have the original error:</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5810"><br clear="none"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5856">/lustre/local/ncl_ncarg-6.4.0- pgi/lib/libncarg_gks.a( crodisplay.o): In function `croActivateX11':</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5857">/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:350: undefined reference to `cairo_xlib_surface_get_ display'</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5858">/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:350: undefined reference to `cairo_xlib_surface_get_ drawable'</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5859">/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:359: undefined reference to `cairo_surface_flush'</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_5860">/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:399: undefined reference to `cairo_xlib_surface_set_size'</div><div class="yiv4391828166m_-1595355180258620516signature" id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_3792"><div id="yiv4391828166m_-1595355180258620516yui_3_16_0_1_1498669392728_3802" style="color:rgb(255,0,0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:italic;font-weight:bold;"><br clear="none"></div></div> <div class="yiv4391828166m_-1595355180258620516qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yahoo_quoted" style="display:block;"> <div style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><span class="yiv4391828166"> </span><div dir="ltr"><font size="2" face="Arial"> On Wednesday, June 28, 2017 9:59 AM, Mary Haley <<a rel="nofollow" shape="rect" ymailto="mailto:haley@ucar.edu" target="_blank" href="mailto:haley@ucar.edu">haley@ucar.edu</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="yiv4391828166m_-1595355180258620516y_msg_container"><div id="yiv4391828166m_-1595355180258620516yiv4128500760"><div><span class="yiv4391828166"></span><div dir="ltr"><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">Are you able to open the agex01.pdf file? It should like like the file that is attached.</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">I don't know what "ieee_inexact is signaling" is. This is a PGI error. I just googled it, and it seems to come from the STOP statement in agex01.f. You can try this:</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">ncargex agex01 -W pdf -n</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">This simply copies the program to your current directory, but doesn't run it.</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">Then, edit the agex01.f file and remove the STOP line.</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">Compile and run the agex01.f program with:</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">ncargf77 -o agex01 agex01.f</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">./agex01</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">This should produce a cairo1.pdf file (not an agex01.pdf) file. Have a look at this file and see if it looks like the file I attached.</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">If you want to see if an X11 window output works, try this:</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">
<div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail-p1"><span class="yiv4391828166m_-1595355180258620516yiv4128500760gmail-s1"> ncargex agex01 -W x11 -clean</span></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail-p1"><span class="yiv4391828166m_-1595355180258620516yiv4128500760gmail-s1">Instead of a PDF file, you should see a window pop up with a plot that looks like the agex02.pdf file. To make this "x11" window go away, click on it with your left mouse button.</span></div></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;">--Mary</div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_default" style="font-size:small;"><br clear="none"></div></div><div class="yiv4391828166m_-1595355180258620516yiv4128500760yqt9268439164" id="yiv4391828166m_-1595355180258620516yiv4128500760yqt97342"><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_extra"><br clear="none"><div class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_quote"><span class="yiv4391828166">On Wed, Jun 28, 2017 at 10:50 AM, brown wrap <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:gramos@yahoo.com" target="_blank" href="mailto:gramos@yahoo.com">gramos@yahoo.com</a>></span> wrote:<br clear="none"></span><blockquote class="yiv4391828166m_-1595355180258620516yiv4128500760gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><span class="yiv4391828166"></span><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_9210"><span>OK, I modified </span>ncargf90 and ncargf77 and I was able to produce cpex08 and the Cairo pdf, but I still get the original error':</div><span class="yiv4391828166m_-1595355180258620516yiv4128500760"></span><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_9210"><br clear="none"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11137">ncargex agex01 -W pdf -clean</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11138"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11139"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11140">NCAR Graphics Fortran Example <agex01></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11141"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11142"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11143"> Copying agex01.f</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11144"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11145"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11146">Compiling and linking...</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11147">pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o agex01 agex01.f -L/lustre/local/ncl_ncarg-6.4. 0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2</div><span class="yiv4391828166"></span><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11148"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11149"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11150">Executing <agex01>...</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11151">Warning: ieee_inexact is signaling</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11152">FORTRAN STOP</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11153"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11154"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11155">cairo PDF file is named agex01.pdf.</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11156"><br clear="none" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11157"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11158">ramos@grace:~></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11158"><br clear="none"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11158">We don't have an X11 directory. I substituted /lustre/local/lib for the X11 directory and it worked. But as I mentioned, I still have the original error.</div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11158"><br clear="none"></div><div dir="ltr" id="yiv4391828166m_-1595355180258620516yiv4128500760m_-8817897382994490822yui_3_16_0_1_1498667672888_11158">Greg</div></div></div></blockquote></div><br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></blockquote></div><br clear="none"></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>