[QGIS-trac] [Quantum GIS] #3215: qgsclipper code causes trunk to fail to build on OSX

Quantum GIS qgis at qgis.org
Sun Nov 14 20:45:38 EST 2010


#3215: qgsclipper code causes trunk to fail to build on OSX
---------------------------------------------------------+------------------
   Reporter:  jctull                                     |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.7.0
  Component:  Build/Install                              |            Version:  Trunk        
   Keywords:  build fail isnan osx qgsclipper            |   Platform_version:  10.6.5       
   Platform:  OS X                                       |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 In the current trunk, there is a problem with either cmath or isnan,
 perhaps a non-portable use of isnan, that makes qgis fail to build on OS X
 systems. This is the current error during the make process:

 [  8%] Building CXX object
 src/core/CMakeFiles/qgis_core.dir/qgsclipper.cpp.o
 In file included from
 /Users/jctull/sources/qgis/trunk/src/core/qgsclipper.cpp:21:
 /Users/jctull/sources/qgis/trunk/src/core/qgsclipper.h: In static member
 function ‘static QgsPoint QgsClipper::intersect(double, double, double,
 double, QgsClipper::Boundary)’:
 /Users/jctull/sources/qgis/trunk/src/core/qgsclipper.h:271: error: call of
 overloaded ‘abs(double&)’ is ambiguous
 /usr/include/stdlib.h:146: note: candidates are: int abs(int)
 /usr/include/c++/4.2.1/cstdlib:143: note:                 long int
 std::abs(long int)
 /usr/include/c++/4.2.1/cstdlib:174: note:                 long long int
 __gnu_cxx::abs(long long int)
 /Users/jctull/sources/qgis/trunk/src/core/qgsclipper.h:271: error: call of
 overloaded ‘abs(double&)’ is ambiguous
 /usr/include/stdlib.h:146: note: candidates are: int abs(int)
 /usr/include/c++/4.2.1/cstdlib:143: note:                 long int
 std::abs(long int)
 /usr/include/c++/4.2.1/cstdlib:174: note:                 long long int
 __gnu_cxx::abs(long long int)
 make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgsclipper.cpp.o] Error 1
 make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
 make: *** [all] Error 2

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3215>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list