[ncl-install] Compiling cpex08 on a Sun Solaris 10 system

Mary Haley haley at ucar.edu
Wed Apr 29 09:08:32 MDT 2009


On Tue, 28 Apr 2009, Craig Miller wrote:

> We are currently trying to install NCL on a Sun Solaris 10 system as
> part of a larger WRF installation. We have downloaded the pre-compiled
> NCL 5.1.0 binaries for the Solaris 10 from the ESG website, unpacked the
> files into the directory we want them in, and set the NCARG_ROOT
> environment variable and search path to point to the appropriate
> directory. In testing our installation we have successfully executed the
> command ng4ex gsun01n, which would suggest that NCL is working
> correctly, but we are running into problems when we try to test NCAR
> Graphics using the command ncargex cpex08 which is failing on a number
> of undefined symbols in the library files libncarg.a, ibncarg_c.a, and
> libncarg_gks.a, as seen below. We get similar errors in the same library
> files when we try to compile several of the utility programs that are
> included with WPS, the WRF pre-processor system, and which use also NCAR
> Graphics. We are using the standard Fortran compiler that came with our
> Sun Solaris 10 system.

Hi Craig,

I'm surprised that "f77" is invoked, because I'm pretty sure
the Sun version of "ncargex" should be invoking "f90".

Can you double-check that you are using the 5.1.0 version of ncargex
and ncargf77:

    which ncargex
    which ncarg77

I believe this should echo back "/wrf/ncl/bin/ncargex".

You can also try to force it to use the f90 compiler, just to see
if it works:

     ncargex cpex08 -n
     f90 -O -o cpex08 cpexcc.f cpex08.f -L/wrf/ncl/lib -L/usr/openwin/lib \
        -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
     ./cpex08
     ctrans -d X11 gmeta

--Mary

> NCAR Graphics Fortran  Example <cpex08>
>
> Copying cpex08.f
>
> Copying cpexcc.f
>
> Compiling and linking...
> f77 -O -o cpex08 cpexcc.f cpex08.f -L/wrf/ncl/lib -L/usr/openwin/lib
> -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
> cpexcc.f:
>   gendat:
>   fran:
>   capsap:
>   labtop:
>   bndary:
>   dfclrs:
> cpex08.f:
> MAIN cpex08:
>   colram:
>   colrcl:
>   colrll:
>   colra2:
>   colrc2:
>   colrl2:
> Undefined            first referenced
> symbol                  in file
> __f90_sfw_i4                        /wrf/ncl/lib/libncarg.a(cpgiws.o)
> __f90_sfw_ch                        /wrf/ncl/lib/libncarg.a(plchhq.o)
> __f90_sfw_r4                        /wrf/ncl/lib/libncarg.a(pj11sp.o)
> __f90_sfw_r8                        /wrf/ncl/lib/libncarg.a(pj11dp.o)
> __f90_slw_i4                        /wrf/ncl/lib/libncarg_c.a(i1mach.o)
> __f90_slw_ch                        /wrf/ncl/lib/libncarg.a(pcffgd.o)
> __f90_stop_int                      /wrf/ncl/lib/libncarg_c.a(i1mach.o)
> __f90_ifw_i4                        /wrf/ncl/lib/libncarg.a(pcfcls.o)
> __f90_ifw_r4                        /wrf/ncl/lib/libncarg.a(cpnumb.o)
> __f90_ifr_i4                        /wrf/ncl/lib/libncarg_gks.a(gesc.o)
> __f90_ifr_r4                        /wrf/ncl/lib/libncarg_gks.a(gesc.o)
> __f90_parse_format                  /wrf/ncl/lib/libncarg.a(cpnumb.o)
> __f95_signf                         /wrf/ncl/lib/libncarg.a(cptrev.o)
> __f90_sifr                          /wrf/ncl/lib/libncarg_gks.a(gesc.o)
> __f90_sifw                          /wrf/ncl/lib/libncarg.a(cpnumb.o)
> __f90_ssfw                          /wrf/ncl/lib/libncarg.a(cpgiws.o)
> __f90_sslw                          /wrf/ncl/lib/libncarg.a(pcffgd.o)
> __f90_stop                          /wrf/ncl/lib/libncarg.a(cpgiws.o)
> __f90_esfw                          /wrf/ncl/lib/libncarg.a(cpgiws.o)
> __f90_eslw                          /wrf/ncl/lib/libncarg.a(pcffgd.o)
> __f90_eifr                          /wrf/ncl/lib/libncarg_gks.a(gesc.o)
> __f90_eifw                          /wrf/ncl/lib/libncarg.a(cpnumb.o)
> __f95_sign                          /wrf/ncl/lib/libncarg.a(mdpint.o)
> ld: fatal: Symbol referencing errors. No output written to cpex08
> Linking:
>
> The compile and link failed.
>
> Is it just a simple case of missing some library files in our Fortran
> installation, or is there something else going on?
>
> Any suggestions would be greatly received.
>
> Thanks
>
> Craig Miller
>
>
>
>
> -- 
> Craig Miller, Ph.D.
> Assistant Professor
> The University of Western Ontario
> Department of Civil and Environmental Engineering
> London, Ontario, Canada N6A 5B9
> Tel: +1 519 661 3338; Fax: +1 519 661 3339
> E-mail: cam at blwtl.uwo.ca; Internet: www.blwtl.uwo.ca
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>


More information about the ncl-install mailing list