Re: WRAPIT question, several subroutines

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 19 2011 - 18:00:33 MDT

Hi Larry,

I think that "-fPIC" should be the default if you are using NCL 5.2.0 or later.

How are you invoking WRAPIT? Can you add "-d" to the WRAPIT line so we can see the full output? This might give some clues.

As Rick eluded to below, this is hard to debug without seeing your code.

--Mary

On Apr 16, 2011, at 3:41 PM, shea@ucar.edu wrote:

> I am in Australia.
>
> Maybe
>
> %> WRAPIT -fPIC foo.f
>
>
>> Hi Larry,
>>
>> I'm not an expert on the use of WRAPIT, but I'll offer a couple of
>> comments:
>>
>> - The examples on the web site indicate that it is not necessary to place
>> your subroutines in separate files.
>>
>> - There's some discussion on the WRAPIT page about dealing with missing
>> symbols. Without have your code to examine, I can't tell where the symbol
>> "end_" is originating nor how to resolve it, but perhaps those
>> troubleshooting hints will help you:
>>
>> http://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#TroubleShooting
>>
>> Hope that helps...
>> Rick
>>
>> On Apr 15, 2011, at 11:33 AM, Larry McDaniel wrote:
>>
>>> Hi
>>>
>>> I'm trying to used WRAPIT and my .so file compiles but then running the
>>> ncl script I get
>>>
>>> warning:An error occurred loading the external file ./narccapHW.so, file
>>> not loaded
>>> ./narccapHW.so: undefined symbol: end_
>>>
>>> I suspect this is a meaningless error but who knows?
>>>
>>> I'm bring 8 subroutines in to my ncl I wrapped each subroutine in the
>>> C NCLFORTSTART
>>> .
>>> .
>>> .
>>> C NCLEND
>>> and when I complie with WRAPIT it compiles. But when I run the ncl
>>> script it chokes.
>>>
>>> The first subroutine calls the others and possibly one of the others
>>> will call another. My question is do I have to make a separate .so file
>>> for each subroutine?
>>>
>>> thanks
>>> Larry
>>>
>>> --
>>> Larry R. McDaniel mcdaniel@ucar.edu Phone: 303 497 8128
>>> Institute for Mathematics Applied to Geosciences (IMAGe)
>>> NCAR P.O. Box 3000
>>> Boulder, CO 80307
>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> 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 Apr 20 10:01:39 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:02 MDT