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

Sandro Santilli strk at keybit.net
Mon Mar 10 02:06:20 PDT 2014


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;


More information about the postgis-users mailing list