<div dir="ltr"><div>I don't know for sure if the standard C library on Solaris has the "isfinite" macro or not. When I grepped around header files on solaris, I found the following references (though I don't know if they're relevant or not):</div>
<br>gcc/4.5/include/c++/4.5.2/tr1_impl/cmath: using std::isfinite;<br>gcc/4.5/include/c++/4.5.2/cmath:#undef isfinite<br>gcc/4.5/include/c++/4.5.2/cmath: isfinite(_Tp __f)<br>gcc/4.5/include/c++/4.5.2/cmath: return __builtin_isfinite(__type(__f));<br>
<br><div>include/iso/math_c99.h:#undef isfinite<br>include/iso/math_c99.h:#define isfinite(x) __extension__( \<br>include/iso/math_c99.h: { __typeof(x) __x_r = (x); isfinite(__x_r) && \<br>include/iso/math_c99.h:#undef isfinite<br>
include/iso/math_c99.h:#define isfinite(x) __builtin_isfinite(x)</div><div><br></div><div>And if I query the manpages I find the following (and I hope I'm not violating any ORCL copyright agreements by pasting this:</div>
<div><br></div>Mathematical Library Functions isfinite(3M)<br>NAME<br> isfinite - test for finite value<br>SYNOPSIS<br> c99 [ flag... ] file... -lm [ library... ]<br> #include <math.h><br>
int isfinite(real-floating x);<br>DESCRIPTION<br> The isfinite() macro determines whether its argument has a<br> finite value (zero, subnormal, or normal, and not infinite<br> or NaN). First, an argument represented in a format wider<br>
than its semantic type is converted to its semantic type.<br> Then determination is based on the type of the argument.<br>RETURN VALUES<br> The isfinite() macro returns a non-zero value if and only if<br> its argument has a finite value.<div>
<br></div><div>And also... GEOS does compile, and I'm using geos 3.4.2 for this.</div><div><br></div><div>Thanks for your continued help!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 5:06 AM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Mar 07, 2014 at 03:42:23PM -0500, Phillip Ross wrote:<br>
> Hello,<br>
><br>
> I continue to attempt to get postgis 2.1.1 built on Solaris 11.1, but I run<br>
> into problems during the linking stage for raster2pgsql.<br>
><br>
> The following error occurs:<br>
><br>
> libtool: link: gcc -m64 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core<br>
> -I../../liblwgeom -I/export/home/pgsql/pgsql/include<br>
> -I/export/home/pgsql/pgsql-9.3.3/include<br>
> -I/export/home/pgsql/pgsql-9.3.3/include raster2pgsql.o -m64 -o<br>
> .libs/raster2pgsql ../rt_core/librtcore.a<br>
> ../../liblwgeom/.libs/liblwgeom.so -L/export/home/pgsql/pgsql-9.3.3/lib<br>
> -L/export/home/pgsql/pgsql/lib<br>
> /export/home/pgsql/pgsql-9.3.3/lib/libproj.so<br>
> /export/home/pgsql/pgsql-9.3.3/lib/libjson-c.so<br>
> /export/home/pgsql/pgsql-9.3.3/lib/libgdal.so -L/usr/lib -lsqlite3 -lexpat<br>
> -ljpeg -lpng -lpq -lpthread -lrt -ldl -lcurl -lidn -lsldap -lldap -lsocket<br>
> -lnsl -lgss -lssl -lcrypto -lz -lxml2<br>
> /export/home/pgsql/pgsql-9.3.3/lib/libgeos_c.so<br>
> /export/home/pgsql/pgsql-9.3.3/lib/libgeos.so -lc -lm<br>
> -R/export/home/pgsql/pgsql/lib -R/export/home/pgsql/pgsql-9.3.3/lib<br>
><br>
> Undefined first referenced<br>
> symbol in file<br>
> isfinite ../../liblwgeom/.libs/liblwgeom.so<br>
> ld: fatal: symbol referencing errors. No output written to<br>
> .libs/raster2pgsql<br>
> collect2: ld returned 1 exit status<br>
> gmake[2]: *** [raster2pgsql] Error 1<br>
><br>
> I found a similar problem report here:<br>
> <a href="http://lists.osgeo.org/pipermail/postgis-tickets/2013-November/003188.html" target="_blank">http://lists.osgeo.org/pipermail/postgis-tickets/2013-November/003188.html</a><br>
><br>
> As an expirement, I attempted the workaround listed there even though the<br>
> report is for RHEL5, but it doesn't workaround the problem on Solaris 11.1<br>
><br>
> Does anyone have any insight or suggestions of how to work around this<br>
> problem on Solaris?<br>
<br>
Does the standard C library on Solaris have "isfinite" macro ?<br>
grep HAVE_ISFINITE postgis_config.h<br>
Does it have "finite" ?<br>
With GEOS we use our own macro for that. Does GEOS compile ?<br>
<br>
--strk;<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div>