Re: Mac OS 10.5, compiling and links to right libraries

From: Doug Angus <d.angus_at_nyahnyahspammersnyahnyah>
Date: Fri, 10 Oct 2008 14:29:47 +0100

Great - thanks. Actually, the recompiling with g77 was easier.

Cheers - Doug

On 10-Oct-08, at 1:38 PM, Mary Haley wrote:

>
> On Oct 10, 2008, at 6:06 AM, Doug Angus wrote:
>
>> Hi,
>>
>> I've managed to install NCAR 5.0.0 on my Mac laptop (Leopard OS
>> 10.5) and the installation seems fine with the test command ng4ex
>> xy01n -clean. However, I can't seem to compile my earlier
>> versions of plotting routines from my other operating systems (Mac
>> OS Panther and even older Redhat linux). Basically I get errors
>> like:
>>
>> "__g95_st_read_done", referenced from :
>> _gesc_ in libncarg_gks.a(gesc.o)
>> .
>> .
>> .
>> .
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>>
>> using the following compilor command
>>
>> g77 -O -o plot Src/Plot.f -L/usr/local/lib -L/usr/X11R6/lib -
>> lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lgcc
>>
>> I seem to remember always having to fiddle with the links in the
>> compiling command whenever I change OS .. but through trial and
>> error.
>>
>> Any suggestions?
>>
>> Thanks - Doug
>>
>>
>
> Hi Doug,
>
> You are linking against a version of NCAR Graphics/NCL that was
> built with the g95 compiler, and hence it is referencing some g95
> system routines ("_g95_st_read_done" is one).
>
> You have a few options:
>
> - You can install g95 (there are binaries available), and then
> link in the "f95" library that comes with it.
>
> To download: http://g95.org/downloads.shtml
>
> Scroll down to the stable version, 0.91, and get either the "x86
> OSX" or "PowerPC OSX" version, depending on what kind of system you
> have. ("uname -a" will give you this info.)
>
> - You can build NCAR Graphics from source code, using your g77
> compiler.
>
> I think the first option might be easier!
>
>
> --Mary
>
>>
>> _______________________________________________
>> ncl-install mailing list
>> ncl-install_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>

_____________________________
Dr. Doug Angus
Research Associate

Dept. of Earth Sciences,
Wills Memorial Building,
University of Bristol,
Bristol, BS8 1RJ, UK
Email: d.angus_at_bristol.ac.uk
Web: www1.gly.bris.ac.uk/~doug/
W:+44 (0)117 954-5245
M:+44 07825771240
_____________________________
Received on Fri Oct 10 2008 - 07:29:47 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 10 2008 - 11:24:05 MDT