[postgis-users] Compile problem on solaris11: Undefined symbol - isfinite

Phillip Ross phillip.w.g.ross+postgis-users at gmail.com
Mon Mar 10 10:16:08 PDT 2014


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):

gcc/4.5/include/c++/4.5.2/tr1_impl/cmath:  using std::isfinite;
gcc/4.5/include/c++/4.5.2/cmath:#undef isfinite
gcc/4.5/include/c++/4.5.2/cmath:    isfinite(_Tp __f)
gcc/4.5/include/c++/4.5.2/cmath:      return
__builtin_isfinite(__type(__f));

include/iso/math_c99.h:#undef   isfinite
include/iso/math_c99.h:#define  isfinite(x)     __extension__( \
include/iso/math_c99.h:                 { __typeof(x) __x_r = (x);
isfinite(__x_r) && \
include/iso/math_c99.h:#undef   isfinite
include/iso/math_c99.h:#define  isfinite(x)     __builtin_isfinite(x)

And if I query the manpages I find the following (and I hope I'm not
violating any ORCL copyright agreements by pasting this:

Mathematical Library Functions                       isfinite(3M)
NAME
     isfinite - test for finite value
SYNOPSIS
     c99 [ flag... ] file... -lm [ library... ]
     #include <math.h>
     int isfinite(real-floating x);
DESCRIPTION
     The isfinite() macro determines whether its argument  has  a
     finite  value  (zero, subnormal, or normal, and not infinite
     or NaN). First, an argument represented in  a  format  wider
     than  its  semantic  type is converted to its semantic type.
     Then determination is based on the type of the argument.
RETURN VALUES
     The isfinite() macro returns a non-zero value if and only if
     its argument has a finite value.

And also... GEOS does compile, and I'm using geos 3.4.2 for this.

Thanks for your continued help!


On Mon, Mar 10, 2014 at 5:06 AM, Sandro Santilli <strk at keybit.net> wrote:

> On Fri, Mar 07, 2014 at 03:42:23PM -0500, Phillip Ross wrote:
> > Hello,
> >
> > I continue to attempt to get postgis 2.1.1 built on Solaris 11.1, but I
> run
> > into problems during the linking stage for raster2pgsql.
> >
> > The following error occurs:
> >
> > libtool: link: gcc -m64 -fPIC -DPIC -Wall -Wmissing-prototypes
> -I../rt_core
> > -I../../liblwgeom -I/export/home/pgsql/pgsql/include
> > -I/export/home/pgsql/pgsql-9.3.3/include
> > -I/export/home/pgsql/pgsql-9.3.3/include raster2pgsql.o -m64 -o
> > .libs/raster2pgsql  ../rt_core/librtcore.a
> > ../../liblwgeom/.libs/liblwgeom.so -L/export/home/pgsql/pgsql-9.3.3/lib
> > -L/export/home/pgsql/pgsql/lib
> > /export/home/pgsql/pgsql-9.3.3/lib/libproj.so
> > /export/home/pgsql/pgsql-9.3.3/lib/libjson-c.so
> > /export/home/pgsql/pgsql-9.3.3/lib/libgdal.so -L/usr/lib -lsqlite3
> -lexpat
> > -ljpeg -lpng -lpq -lpthread -lrt -ldl -lcurl -lidn -lsldap -lldap
> -lsocket
> > -lnsl -lgss -lssl -lcrypto -lz -lxml2
> > /export/home/pgsql/pgsql-9.3.3/lib/libgeos_c.so
> > /export/home/pgsql/pgsql-9.3.3/lib/libgeos.so -lc -lm
> > -R/export/home/pgsql/pgsql/lib -R/export/home/pgsql/pgsql-9.3.3/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
> >
> > I found a similar problem report here:
> >
> http://lists.osgeo.org/pipermail/postgis-tickets/2013-November/003188.html
> >
> > As an expirement, I attempted the workaround listed there even though the
> > report is for RHEL5, but it doesn't workaround the problem on Solaris
> 11.1
> >
> > Does anyone have any insight or suggestions of how to work around this
> > problem on Solaris?
>
> Does the standard C library on Solaris have "isfinite" macro ?
> grep HAVE_ISFINITE postgis_config.h
> Does it have "finite" ?
> With GEOS we use our own macro for that. Does GEOS compile ?
>
> --strk;
> _______________________________________________
> 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/20140310/df905607/attachment.html>


More information about the postgis-users mailing list