Package: qgis Version: 0.7.4-5 Usertags: ftbfs-gcc-4.3 Tags: patch Your package fails to build with GCC 4.3. Version 4.3 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. In GCC 4.3, the C++ header dependencies have been cleaned up. The advantage of this is that programs will compile faster. The downside is that you actually need to directly #include everything you use (but you really should do this anyway, otherwise your program won't work with any compiler other than GCC). Some background of this can be found at http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot (20070326-1 or higher) from unstable. > Automatic build of qgis_0.7.4-5 on em64t by sbuild/amd64 0.53 ... > x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPREFIX=\"/usr\" > -DPLUGINPATH=\"/usr/lib/qgis\" -DPKGDATAPATH=\"/usr/share/qgis\" > -I/usr/include -g -O2 -I/usr/share/qt3/include -D_REENTRANT > -DQT_THREAD_SUPPORT -I/usr/include/postgresql -DNO_DEBUG -I/usr/include > -I../widgets/projectionselector/ -g -O2 -MT libqgis_la-qgscomposition.lo -MD > -MP -MF .deps/libqgis_la-qgscomposition.Tpo -c qgscomposition.cpp -fPIC > -DPIC -o .libs/libqgis_la-qgscomposition.o > qgscomposition.cpp: In member function 'void > QgsComposition::contentsMouseMoveEvent(QMouseEvent*)': > qgscomposition.cpp:369: error: 'abs' was not declared in this scope > make[5]: *** [libqgis_la-qgscomposition.lo] Error 1 > make[5]: Leaving directory `/build/tbm/qgis-0.7.4/src' --- src/qgscomposition.cpp~ 2007-04-02 21:40:22.000000000 +0000 +++ src/qgscomposition.cpp 2007-04-02 21:40:28.000000000 +0000 @@ -13,6 +13,7 @@ * (at your option) any later version. * * * ***************************************************************************/ +#include <cstdlib> #include <iostream> #include <qwidget.h> --- providers/grass/qgsgrass.cpp~ 2007-04-02 22:14:42.000000000 +0000 +++ providers/grass/qgsgrass.cpp 2007-04-02 22:14:48.000000000 +0000 @@ -13,6 +13,7 @@ * (at your option) any later version. * * * ***************************************************************************/ +#include <cstdlib> #include <iostream> #include "qstring.h" --- providers/postgres/qgspostgisbox2d.cpp~ 2007-04-02 22:12:13.000000000 +0000 +++ providers/postgres/qgspostgisbox2d.cpp 2007-04-02 22:12:19.000000000 +0000 @@ -17,6 +17,7 @@ ***************************************************************************/ /* $Id: qgspostgisbox2d.cpp,v 1.1 2005/03/10 05:38:27 gsherman Exp $ */ +#include <cstdlib> #include <fstream> #include <qstring.h> --- providers/postgres/qgspostgisbox3d.cpp~ 2007-04-02 22:12:48.000000000 +0000 +++ providers/postgres/qgspostgisbox3d.cpp 2007-04-02 22:12:56.000000000 +0000 @@ -17,6 +17,7 @@ ***************************************************************************/ /* $Id: qgspostgisbox3d.cpp,v 1.1 2005/03/10 05:38:27 gsherman Exp $ */ +#include <cstdlib> #include <fstream> #include <qstring.h> --- providers/postgres/qgspostgresextentthread.cpp~ 2007-04-02 22:13:25.000000000 +0000 +++ providers/postgres/qgspostgresextentthread.cpp 2007-04-02 22:13:31.000000000 +0000 @@ -17,6 +17,7 @@ ***************************************************************************/ /* $Id: qgspostgresextentthread.cpp,v 1.1 2005/03/10 05:38:27 gsherman Exp $ */ +#include <cstdlib> #include <fstream> #include <qevent.h> #include <qapplication.h> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]