[QGIS-trac] Re: [Quantum GIS] #3215: qgsclipper code causes trunk
to fail to build on OSX
Quantum GIS
qgis at qgis.org
Thu Nov 18 14:50:47 EST 2010
#3215: qgsclipper code causes trunk to fail to build on OSX
---------------------------------------------------------+------------------
Reporter: jctull | Owner: jef
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 |
---------------------------------------------------------+------------------
Description changed by jef:
Old description:
> 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
New description:
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: <http://trac.osgeo.org/qgis/ticket/3215#comment:6>
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