Ticket #3215 (closed bug: fixed)
qgsclipper code causes trunk to fail to build on OSX
| Reported by: | jctull | Owned by: | jef |
|---|---|---|---|
| Priority: | critical: causes crash or data corruption | Milestone: | Version 1.7.0 |
| Component: | Build/Install | Version: | Trunk |
| Keywords: | build fail isnan osx qgsclipper | Cc: | |
| Platform Version: | 10.6.5 | Platform: | OS X |
| Must Fix for Release: | Yes | Awaiting user input: | no |
Description (last modified by jef) (diff)
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
