[ncl-talk] WRAPIT warnings

Michael Buban - NOAA Affiliate michael.buban at noaa.gov
Tue Jun 7 13:20:10 MDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160607/faa7f03f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sizes2.f
Type: application/octet-stream
Size: 3761 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160607/faa7f03f/attachment.obj 


More information about the ncl-talk mailing list