[postgis-users] PostGIS 2.1.1 Released

J Smith dark.panda+lists at gmail.com
Mon Nov 11 12:12:38 PST 2013


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?


More information about the postgis-users mailing list