Error from attempting to load a DSO

From: Andrew Mai <mai_at_nyahnyahspammersnyahnyah>
Date: Thu, 21 Feb 2008 10:53:23 -0700

Output from ncl command:

     Copyright (C) 1995-2007 - All Rights Reserved
     University Corporation for Atmospheric Research
     NCAR Command Language Version 5.0.0
     The use of this software is governed by a License Agreement.
     See http://www.ncl.ucar.edu/ for more details.
    warning:An error occurred loading the external file ./nc2hs052.so,
    file not loaded
    ./nc2hs052.so: undefined symbol: NclGetArgValue
    warning:error at line 4 in file nc2hs052.ncl

NCL command:

    % ncl -n nc2hs052.ncl

Beginning of NCL program nc2hs052.ncl (note that line 4 is the attempted
load of the DSO):

    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
    load "$HOME/ncl/functions/genFileNames.ncl"

    external NC2HS052 "./nc2hs052.so"

    begin

    ; ..User settable variable initializations
      nmoStrt = 01
      ndyStrt = 01
      nfDayi = 30 ; # days/file input
      nfDayo = 365 ; # days/file output
      NC2HS052::initlwrap()

Possibly helpful additional info:

    % uname -a
    Linux davinci 2.6.5-7.283-sn2 #1 SMP Wed Nov 29 16:55:53 UTC 2006
    ia64 ia64 ia64 GNU/Linux
    % WRAPIT -in -r8 -L /usr/common/homes/m/mai/lib -l mai nc2hs052.stub
    nc2hs052.f90 initlwrap.f
     
    WRAPIT Version: 051007
    /usr/common/intel/fc/10.0.026/bin/ifort
    COMPILING nc2hs052.f90
    COMPILING initlwrap.f
    LINKING
    END WRAPIT
     
    % cat nc2hs052.stub
    C NCLFORTSTART
          subroutine gd2sp3d(grid3d,ntim,coef3d)
          integer ntim
          real grid3d(128,64,ntim)
          real coef3d(512,ntim)
    C NCLEND
    C NCLFORTSTART
          subroutine gd2sp4d(grid4d,nlev,ntim,coef4d)
          integer nlev,ntim
          real grid4d(128,64,nlev,ntim)
          real coef4d(512,nlev,ntim)
    C NCLEND
    C NCLFORTSTART
          subroutine uv2vd4d(u4d,v4d,nlev,ntim,vor4d,div4d)
          integer nlev,ntim
          real u4d(128,64,nlev,ntim),v4d(128,64,nlev,ntim)
          real vor4d(512,nlev,ntim),div4d(512,nlev,ntim)
    C NCLEND
    C NCLFORTSTART
          subroutine gd2sp(grid,coef,kind,icos,laplac)
          integer kind,icos,laplac
          double precision grid(130,64)
          double precision coef(1892)
    C NCLEND
    C NCLFORTSTART
          subroutine uv2vd(u,v,vor,div)
          real u(128,64),v(128,64)
          double precision vor(1892),div(1892)
    C NCLEND
    C NCLFORTSTART
          subroutine expand(grd,nfour2,nlat,nfour,grid)
          integer nfour2,nlat,nfour
          real grd(nfour2,nlat)
          double precision grid(nfour,nlat)
    C NCLEND
    C NCLFORTSTART
          subroutine truncm(t42,r15)
          double precision t42(1892)
          double precision r15(512)
    C NCLEND

Does the error message indicate an incorrect installation of NCL? Note
that NclGetArgValue is not a name in any of my code.

Andy

-- 
                        Andrew W. Mai
      ---  __o          National Center for Atmospheric Research
   ----  _`\<,_         Boulder, CO 80307 USA       mai_at_ucar.edu
    --- (*)/ (*)        http://www.cgd.ucar.edu/cdp/mai/mai.html

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Feb 21 2008 - 10:53:23 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 26 2008 - 16:44:49 MST