I'm getting a build error on CentOS 5.10 using the stock gcc 4.1.2
concerning an undefined reference to isfinite:

../liblwgeom/.libs/liblwgeom.so: undefined reference to `isfinite'

The specific file that references isfinite that is causing the issue
is liblwgeom/g_box.c. Adding the following to the top of the file will
resolve the issue:

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

Apparently this version of gcc is old enough that isfinite will not be
defined in math.h without _GNU_SOURCE being defined first.

Should I start up a ticket for this?
_______________________________________________
postgis-users mailing list
[email protected]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

Reply via email to