[postgis-users] Error installing postgis 2.1.2 on postgresql 9.2.8 on solaris 10 (x86)
Phillip Ross
phillip.w.g.ross+postgis-users at gmail.com
Mon Apr 21 18:05:18 PDT 2014
Hi Kedar...
I had a similar issue with Solaris 11. I think the config scripts need
some work to properly detect the isfinite situation with Solaris
environments. I've not had the time to work through the config scripts,
but I'll attach the patch that I use to get it to build on solaris 11.
This might also work on solaris 10.
Also, I'm not sure what the implications of doing it this way are, but it
seems to be stable for my environments thus far.
Hope it helps!
- Phillip
On Mon, Apr 21, 2014 at 4:39 PM, Tambade, Kedar <ktambade at cghtech.com>wrote:
> Thank you Strk for the quick response... Following are the answers to
> your question
>
> Does your libm have "isfinite" ?
> No, " nm -D /usr/lib/libm.so | grep -i isfinite" did not return any result.
>
> what's available function/macro to check for finiteness ?
> did not understand what should I check, can you please let me know what
> exactly should I check.
>
> Note that ./configure script should be checking for isfinite, defining or
> not a HAVE_ISFINITE macro in postgis/postgis_config.h What does it say ?
> Postgis/postgis_config.h file does not contain HAVE_ISFINITE.
>
>
> Thanks & Regards,
>
> Kedar Tambade
>
> -----Original Message-----
> From: postgis-users-bounces at lists.osgeo.org [mailto:
> postgis-users-bounces at lists.osgeo.org] On Behalf Of Sandro Santilli
> Sent: Friday, April 18, 2014 10:53 AM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] Error installing postgis 2.1.2 on postgresql
> 9.2.8 on solaris 10 (x86)
>
> On Thu, Apr 17, 2014 at 07:12:13PM +0000, Tambade, Kedar wrote:
> >
> > Hello all,
> >
> > While installating the postgis 2.1.2 on solaris 10 (5.10
> Generic_147441-05 i86pc i386 i86pc), I am getting the following error while
> doing gmake can someone please help :
> >
>
> [..]
>
> > libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
> -I../rt_core -I../../liblwgeom -I/opt/postgres/gis928/include
> -I/opt/postgres/gis928/include -I/opt/postgres/gis928/include
> raster2pgsql.o -o .libs/raster2pgsql ../rt_core/librtcore.a
> -L/opt/postgres/gis928/lib ../../liblwgeom/.libs/liblwgeom.so
> -L/usr/sfw/lib /opt/postgres/gis928/lib/libproj.so
> /opt/postgres/gis928/lib/libjson.so /opt/postgres/gis928/lib/libgdal.so
> -L/usr/lib -L/usr/local/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
> -L/usr/X11R6/lib -L/usr/local/BerkeleyDB.4.7/lib -L/usr/local/mysql/lib
> -lpq -lrt -ldl -lxml2 -lz -lpthread -lsocket -lnsl
> /opt/postgres/gis928/lib/libgeos_c.so /opt/postgres/gis928/lib/libgeos.so
> /usr/sfw/lib/libstdc++.so -lgcc_s /usr/local/lib/libiconv.so -lm
> -R/usr/local/lib -R/opt/postgres/gis928/lib -R/usr/sfw/lib -R/usr/lib
> > Undefined first referenced
> > symbol in file
> > isfinite ../../liblwgeom/.libs/liblwgeom.so
> > ld: fatal: symbol referencing errors. No output written to
> > .libs/raster2pgsql
> > collect2: ld returned 1 exit status
> > gmake[2]: *** [raster2pgsql] Error 1
> > gmake[2]: Leaving directory
> `/opt/postgres/repository/postgresql_9.2.8/postgis-2.1.2/raster/loader'
>
> [...]
>
> > following is the gcc version:
> >
> > $ gcc --version
> > gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004
> > Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions. There
> > is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Does your libm have "isfinite" ?
> Or what's available function/macro to check for finiteness ?
>
> Note that ./configure script should be checking for isfinite, defining or
> not a HAVE_ISFINITE macro in postgis/postgis_config.h What does it say ?
>
> Then there's code around the codebase using that macro to do different
> thing. Take a look. Patch is welcome once you figure out.
>
> --strk;
>
> () ASCII ribbon campaign -- Keep it simple !
> /\ http://strk.keybit.net/rants/ascii_mails.txt
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140421/f0807539/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postgis-2.1.2-use-finite-instead-of-isfinite-for-solaris.patch
Type: application/octet-stream
Size: 3069 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140421/f0807539/attachment.obj>
More information about the postgis-users
mailing list