[GRASS-dev] [bug #5185] (grass) shared libraries problem (Solaris2.9/Sparc)

Paul Kelly paul-grass at stjohnspoint.co.uk
Sat May 12 09:04:35 EDT 2007


On Sat, 12 May 2007, Markus Neteler wrote:

> On Sat, May 12, 2007 at 01:09:59PM +0100, Glynn Clements wrote:
>>
>> Markus Neteler via RT wrote:
>>
>>> https://intevation.de/rt/webrt?serial_num=5185
>>>
>>> RT wrote:
>>>> Sorry to say, but the problem persists. Did a CVS update today, and the
>>>> configure-script still sets include/Make/Platform.make:
>>>>
>>>> SHLIB_LD = /usr/ccs/bin/ld -G -z text
>>>>
>>>> which is not able to link anything during the compilation. When changed
>>>> to:
>>>>
>>>> SHLIB_LD = CC -G -z text
>>>>
>>>> compilation runs ok.
>>>>
>>>> If I can provide you with some other related files etc. please let me
>>>> know.
>>>>
>>>> Harri K.
>>>
>>> Any idea how to fix this?
>>
>> Change lines 1158, 1207 of aclocal.m4.
>
> Is attached patch right? I wonder about CC version $CC. Have
> used $CC in the patch.

CC is the Solaris native C++ compiler I think. I see there is a separate 
section in aclocal.m4 for building with GNU gcc on Solaris. I don't have 
access to any machines using the native Solaris compilers to test it, but 
I suppose it sounds reasonable. Seems weird to have to use the C++ 
compiler for linking when GRASS is almost all C though. Maybe Glynn is on 
to something about GDAL. So many parts of GRASS indirectly depend on GDAL 
now - I wonder though is there anything that links properly using the 
Solaris ld?

Paul




More information about the grass-dev mailing list