<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Kip,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you just need to use ncl, then it's not important that the "cpex08" program compile successfully. This test is for people who are still using the NCAR Graphics Fortran or C libraries to do their graphics.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you need to get the compilation working, then it looks like you have an older version of the cairo library. The NCL V6.2.1 libraries were built against cairo 1.12.16. You may need to upgrade your system cairo, or else build it yourself from source code. You can see the instructions at:<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml#cairo">http://www.ncl.ucar.edu/Download/build_from_src.shtml#cairo</a><br></div><div class="gmail_default" style><br></div><div class="gmail_default" style>Good luck,</div><div class="gmail_default" style><br></div><div class="gmail_default" style>--Mary</div><div class="gmail_default" style><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 8:26 AM, Smith, Kip <span dir="ltr"><<a href="mailto:kip.smith@nv.doe.gov" target="_blank">kip.smith@nv.doe.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">After downloading and installing NCL version 6.2.1 I tried to run the tests:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ng4ex gsun01n -clean <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">and <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ncargex cpex08 -clean<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The first run with no problems but the second didn't link because of an undefined reference. See below.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">NCAR Graphics Fortran Example <cpex08><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> Copying cpex08.f<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> Copying cpexcc.f<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Compiling and linking...<u></u><u></u></p>
<p class="MsoNormal">gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -Wall -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
-lz -lpthread -lXrender -lbz2<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ncl/lib/libncarg_gks.a(cro.o): In function `cro_ClearWorkstation':<u></u><u></u></p>
<p class="MsoNormal">cro.c:(.text+0x17eb): undefined reference to `cairo_recording_surface_create'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ncl/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':<u></u><u></u></p>
<p class="MsoNormal">cro.c:(.text+0x24e9): undefined reference to `cairo_recording_surface_create'<u></u><u></u></p>
<p class="MsoNormal">collect2: error: ld returned 1 exit status<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The compile and link failed.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">How do I fix this?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The old version of NCL (version 6.1.2) runs both tests with no errors.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kip Smith<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>