[ncl-talk] WRAPIT warnings

Bill Ladwig ladwig at ucar.edu
Wed Jun 8 09:48:25 MDT 2016


In your fortran code, you have this line:

meanqc(inb*ixend+i,(jnb-1)*jyend+j,m)=*cld*(p,m,i,j)

Where is the cld function located?  This is what the dll loader is
complaining about.  If this is in another library, you need to add that
linking information to the WRAPIT command.  For example:

WRAPIT myfile.f -L /home/foo/lib -l foo

Refer to
http://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#FixingCommonProblems

Hope this helps,

Bill



On Tue, Jun 7, 2016 at 1:20 PM, Michael Buban - NOAA Affiliate <
michael.buban at noaa.gov> wrote:

> Hello,
>
> I'm having a problem using WRAPIT.  I've tried to run the example and get
> the following warning:
>
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> /Users/bubanm/IDEAL_COMMAS/nclplots 217> WRAPIT ex.f
>
> WRAPIT Version: 120209
> WRAPIT.c:47:2: warning: implicit declaration of function 'ex_' is invalid
> in C99 [-Wimplicit-function-declaration]
>         NGCALLF(ex,EX)(II,XX);
>         ^
> /usr/local/ncl-6.3.0/include/ncarg/c.h:31:29: note: expanded from macro
> 'NGCALLF'
> #define NGCALLF(reg,caps)   reg##_
>                             ^
> <scratch space>:300:1: note: expanded from here
> ex_
> ^
> 1 warning generated.
> COMPILING ex.f
> LINKING
> END WRAPIT
>
> /Users/bubanm/IDEAL_COMMAS/nclplots 218> ncl ex.ncl
>  Copyright (C) 1995-2015 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.3.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> (0) before i = 5
> (0) before x = 1.3
> (0) after i = 10
> (0) after x = -11.045
> /Users/bubanm/IDEAL_COMMAS/nclplots 219>
>
> output from uname -a
>
> Darwin Michael-Bubans-Mac-Pro.local 15.4.0 Darwin Kernel Version 15.4.0:
> Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>
> I get the WRAPIT warning but the ncl script seems to work for this
> example.  However I get the same warning from WRAPIT from the script I'm
> trying to run, but the ncl fails with the following:
>
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> WRAPIT Version: 120209
> WRAPIT.c:125:2: warning: implicit declaration of function 'cldsi_' is
> invalid in C99
>       [-Wimplicit-function-declaration]
>         NGCALLF(cldsi,CLDSI)(clds,ntime,nz,ny,nx,ixend,jyend,tm);
>         ^
> /usr/local/ncl-6.3.0/include/ncarg/c.h:31:29: note: expanded from macro
> 'NGCALLF'
> #define NGCALLF(reg,caps)   reg##_
>                             ^
> <scratch space>:300:1: note: expanded from here
> cldsi_
> ^
> 1 warning generated.
> COMPILING sizes2.f
> LINKING
> END WRAPIT
>
> /Users/bubanm/IDEAL_COMMAS/vi_ideal/vrun11 236> ncl cloud_dist2.ncl
>  Copyright (C) 1995-2015 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.3.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 ./sizes2.so, file not
> loaded
> dlopen(./sizes2.so, 2): Symbol not found: _cld_
>   Referenced from: ./sizes2.so
>   Expected in: flat namespace
>  in ./sizes2.so
> warning:error at line 14 in file cloud_dist2.ncl
>
> fatal:syntax error: line 56 in file cloud_dist2.ncl before or near :
>    SIZES2:
> ---------^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
> fatal:error at line 124 in file cloud_dist2.ncl
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
>
> I've also attached the file that I'm trying to run WRAPIT on.
>
> Any help would be much appreciated.
>
> Thanks,
>
>
> Mike
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160608/d1df2197/attachment.html 


More information about the ncl-talk mailing list