[postgis-tickets] [PostGIS] #2542: isfinite needs _GNU_SOURCE defined on EL-5

PostGIS trac at osgeo.org
Mon Nov 11 13:06:07 PST 2013


#2542: isfinite needs _GNU_SOURCE defined on EL-5
-----------------------+----------------------------------------------------
 Reporter:  darkpanda  |       Owner:  pramsey      
     Type:  defect     |      Status:  new          
 Priority:  medium     |   Milestone:  PostGIS 2.1.2
Component:  postgis    |     Version:  2.1.x        
 Keywords:             |  
-----------------------+----------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2542>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list