Re: WRAPIT -- error while running ncl script

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 13 2013 - 09:24:11 MST

Hi Basit,

It is not necessary to set NCL_DEF_LIB_DIR. This is only if you want the *.so file to be loaded automatically.

But, I don't think that's the source of your problem.

Can you run the following, and email the output back to ncl-talk:

    WRAPIT -d ex01.f
    nm ex01.so | grep arcln

If you are running WRAPIT with any addtional options, then please include them on the line above as well. I will need to know exactly how you are invoking WRAPIT.

Thanks,

--Mary

On Feb 13, 2013, at 1:12 AM, BasitAli Khan wrote:

> Hi there,
>
> Sorry, if the same email is posted before. i had problem with email system and i am not sure if my first email reached its destination.
>
> I am trying to use WRAPIT to use some fortran code with ncl. I am using ncl 6.0. and started with example 1 i.e. http://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#Example_1
> Step 1 and 2 were ok and I got the shared object file ex01.so nice and clean. I then set the envi variable NCL_DEF_LIB_DIR as advised, however, when I ran ncl script (step 3) i got the following errors:
>
> -bash-4.1$ ncl abc.ncl
> fatal:Could not open (/home/khanb/junk/shared/ex01.so): /home/khanb/junk/shared/ex01.so: undefined symbol: arcln_.
> warning:An error occurred loading the external file ./ex01.so, file not loaded
> ./ex01.so: undefined symbol: arcln_
> warning:error at line 1 in file abc.ncl
>
> fatal:syntax error: line 10 in file abc.ncl before or near :
> EX01:
> -------^
>
> fatal:error in statement
> fatal:syntax error: line 19 in file abc.ncl before or near :
> arclen = EX01:
> ----------------^
>
> fatal:Syntax Error in block, block not executed
> fatal:error at line 23 in file abc.ncl
>
>
> I guess, i am making some small silly mistake. Would greatly appreciate if somebody could help me getting through this.
>
> Best regards,
> ----
> Basit A. Khan, Ph.D.
> Postdoctoral Research Fellow
> Division of Physical Sciences & Engineering
> Office# 3204, Level 3, Building 1,
> King Abdullah University of Science & Technology
> 4700 King Abdullah Blvd, Box 2753, Thuwal 23955 6900,
> Kingdom of Saudi Arabia.
>
> Office: +966(0)2 808 0276, Mobile: +966(0)5 0860 3617
> E-mail: basitali.khan@kaust.edu.sa
> Skype name: basit.a.khan
>
>
> This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 13 09:24:34 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 13 2013 - 09:25:58 MST