<div dir="ltr"><div class="gmail_default" style="font-size:small">What&#39;s likely happening here is that the GKS library didn&#39;t get built fully, and this can happen if it can&#39;t find the required cairo or png libraries.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you send me the make-output file from your build? I can usually tell right away if the GKS library didn&#39;t get built.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 1:02 PM, Mr. Darwin G. Adams (Contractor) <span dir="ltr">&lt;<a href="mailto:adamsdg.ctr@afrl.hpc.mil" target="_blank">adamsdg.ctr@afrl.hpc.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have built ncl_ncarg-6.2.1 for the PGI compilers on a Cray XC30 HPC<br>
machine.<br>
<br>
I also had to build szip/2.1, and undunits/<a href="http://2.2.17." target="_blank">2.2.17.</a><br>
<br>
<br>
I am getting an unrecognized reference when I try to test the code.<br>
<br>
<br>
adamsdg@armstrong06:/app/ncar/examples&gt; ncargex cpex08<br>
<br>
NCAR Graphics Fortran  Example &lt;cpex08&gt;<br>
<br>
   Copying cpex08.f<br>
<br>
   Copying cpexcc.f<br>
<br>
Compiling and linking...<br>
pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64<br>
-D_LARGEFILE_SOURCE -mp -O -o cpex08 cpexcc.f cpex08.f<br>
-L/app/ncar/ncl_ncarg/6.2.1-pgi/lib -L/usr/lib64 -lncarg -lncarg_gks<br>
-lncarg_c -lX11 -lxcb -lxcb-xlib -lXau -ldl -lcairo -lfontconfig<br>
-lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2<br>
cpexcc.f:<br>
cpex08.f:<br>
/app/ncar/ncl_ncarg/6.2.1-pgi/lib/libncarg_gks.a(gziqwk.o): In function<br>
`gziqwk_&#39;:<br>
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gziqwk.f:40:<br>
undefined reference to `ggkwdr_&#39;<br>
/app/ncar/ncl_ncarg/6.2.1-pgi/lib/libncarg_gks.a(gztowk.o): In function<br>
`gztowk_&#39;:<br>
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:67:<br>
undefined reference to `ggkwdr_&#39;<br>
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:161:<br>
undefined reference to `ggkwdr_&#39;<br>
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:227:<br>
undefined reference to `ggkwdr_&#39;<br>
<br>
The compile and link failed.<br>
<br>
<br>
<br>
On the &quot;How to build NCL and NCAR Graphics from source code&quot; page.<br>
<br>
<a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml#Troubleshooting" target="_blank">http://www.ncl.ucar.edu/Download/build_from_src.shtml#Troubleshooting</a><br>
<br>
<br>
Option #3<br>
If you get the following errors when you try to compile a Fortran or C<br>
NCAR Graphics program:<br>
<br>
  /usr/local/ncarg/lib/libncarg_gks.a(gziqwk.o): In function `gziqwk_&#39;:<br>
  gziqwk.f:(.text+0x187): undefined reference to `ggkwdr_&#39;<br>
  /usr/local/ncarg/lib/libncarg_gks.a(gztowk.o): In function `gztowk_&#39;:<br>
  gztowk.f:(.text+0x295): undefined reference to `ggkwdr_&#39;<br>
  gztowk.f:(.text+0x7d7): undefined reference to `ggkwdr_&#39;<br>
  gztowk.f:(.text+0xc30): undefined reference to `ggkwdr_&#39;<br>
<br>
then try this:<br>
<br>
    cd $NCARG/ncarg2d/src/libncarg_gks<br>
    rm awi/ggkwdr_stub.o<br>
    make all install<br>
<br>
<br>
Which I did and still get the exact same error.<br>
<br>
<br>
<br>
<br>
DG<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>
</blockquote></div><br></div>