[postgis-users] Fwd: PostGIS on Solaris

Paul Ramsey pramsey at refractions.net
Sat Aug 20 15:31:48 PDT 2005


I am forwarding this to the list for archival purposes.

Begin forwarded message:

> From: Martin Spott <Martin.Spott at mgras.net>
> Date: August 20, 2005 3:03:35 PM PDT (CA)
> To: Paul Ramsey <pramsey at refractions.net>
> Subject: Re: PostGIS on Solaris
>
>
> Hello Paul,
>
> On Sun, Aug 14, 2005 at 02:30:02PM +0200, Martin Spott wrote:
>
>
>> After further research I found a hint: At least under certain
>> circumstances in order to link 'lwgeom/liblwgeom.so.1.0' with the
>> Solaris linker you need additional linker flags.
>> I have libproj and libgeos _only_ as static libs and PostGIS builds a
>> shared liblwgeom by default. Now when I use 'gcc -shared' to link
>> liblwgeom I have to add '-mimpure-text' after '-shared'. Now the line
>> looks like "gcc [CFLAGS] -shared -mimpure-text -h liblwgeom.so.1  
>> [...]"
>> I'll see if this is really sufficient to build binary that works  :-)
>>
>
> It depends  :-)
> This is actually sufficient for 32 bit binaries on Solaris with
> GCC-3.4.2. For 64 bit binaries on a similar platform I had to
> explicitly link libgcc, simply by adding '-lgcc' to the linker line,
> because '__eprintf' doesn't get resolved. Don't ask me why it works on
> the 32 bit platform. Maybe it's a good idea to add libgcc in any case
> for Solaris.
> It would be nice if you add an appropriate workaround when you start
> adding autoconfiguration for PostGIS.
>
> Cheers,
>     Martin.
> -- 
>  Unix _IS_ user friendly - it's just selective about who its  
> friends are !
> ---------------------------------------------------------------------- 
> ----
>




More information about the postgis-users mailing list