Opened 11 years ago

Closed 11 years ago

#2542 closed defect (fixed)

isfinite needs _GNU_SOURCE defined on EL-5

Reported by: darkpanda Owned by: pramsey
Priority: medium Milestone: PostGIS 2.1.2
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

isfinite needs _GNU_SOURCE to be defined before including math.h on EL-5 or you'll get linker errors when linking liblwgeom. Adding the following to the top of g_box.c will fix the problem:

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

It seems the version of gcc on EL-5 is old enough that isfinite won't be included by default unless _GNU_SOURCE is defined, as the isfinite macro is a C99 feature.

Change History (2)

comment:1 by pramsey, 11 years ago

Patched in 2.1 at r12124

comment:2 by pramsey, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.