Re: ncargex cpex08 error when linking

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun, 17 Aug 2008 09:02:41 -0600 (MDT)

On Sun, 17 Aug 2008, Mald MM5 wrote:

> Hi there,
>
> I have just now compiled the NCL/NCARGRAPHIC version 5.0.0.
> I tested the commands ncl -V and it works fine.
>
> when I invoke the command > ng4ex gsun01n it brings up the test graph window
> too. Flipped through all the other profiels was OK and it closes fine. But
> giving this warning--" warning:Unable to load System Resource File
> /usr/local/ncarg/lib/ncarg/sysresfile"

Hi Mald,

It would be unusual for ncl to be working fine, but the sysresfile to
not have been installed. This leads me to believe that maybe your
NCARG_ROOT environment variable is not set correctly.

If you do a "which ncl", does it report being in /usr/local/ncarg/bin,
or somewhere else? If it is somewhere else, then your NCARG_ROOT is
not set correctly.

> When I execute > ncargex cpex08 it gives me the following error
>
> NCAR Graphics Fortran Example <cpex08>
>
> Copying cpex08.f
>
> Copying cpexcc.f
>
> Compiling and linking...
> ifort -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
> -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11
> -lXext
> ifort: command line warning #10006: ignoring unknown option
> '-fno-second-underscore'
> /usr/local/ncarg/lib/libncarg_gks.a(gziqwk.o): In function `gziqwk_':
> gziqwk.f:(.text+0x17a): undefined reference to `ggkwdr_'
> ...
> The compile and link failed.
>
> For sure something must be wrong. Am not sure what. Does this means the NCAR
> graphics is installed fine?....For the installaiton I used only the HDF and
> NETCDF packages. I did not use the other packages since I dont need them
> now.

Something is puzzling here. It looks like your GKS library didn't
build properly, but yet, your "ncl" executable seems to be working,
and this depends on a properly built NCL for this to work.

The error message above indicates that the file
$NCARG/ncarg2d/src/libncarg_gks/cdrivers/fort_c.o didn't get built
into the "libncarg_gks.a" library.

Do you by chance have multiple versions of NCL/NCAR Graphics installed
on your system, but NCARG_ROOT wasn't updated to point to the new
version?

--Mary

> Am compiling this on Acer Extensa, Duo Core 2.1 GHz, 2Gb RAM, OpenSuse Linux
> 11.0 2.6.25.5-1.1-pae #1 i686 i686 i386 GNU/Linux.
>
> Any suggestion any one?...
>
> Thank you
> Mald
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Sun Aug 17 2008 - 09:02:41 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 05 2008 - 15:16:02 MDT