Package: groundhog Version: 1.4-8 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 from unstable. > Automatic build of groundhog_1.4-8 on coconut0 by sbuild/ia64 0.49 ... > game.cc: In member function 'void Game::Shuffle()': > game.cc:474: error: 'srand' was not declared in this scope > make[3]: *** [game.o] Error 1 > make[3]: Leaving directory `/build/tbm/groundhog-1.4/src' --- src/game.cc~ 2007-04-01 20:36:23.000000000 +0000 +++ src/game.cc 2007-04-01 20:36:31.000000000 +0000 @@ -18,6 +18,7 @@ #include <config.h> +#include <cstdlib> #include <iostream> #include <sstream> #include <string> --- src/highscore.cc~ 2007-04-01 20:37:12.000000000 +0000 +++ src/highscore.cc 2007-04-01 20:37:17.000000000 +0000 @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <cstdlib> #include <fstream> using namespace std; --- src/new_highscore_dialog.cc~ 2007-04-01 20:37:37.000000000 +0000 +++ src/new_highscore_dialog.cc 2007-04-01 20:37:43.000000000 +0000 @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <cstdlib> #include <pwd.h> #include <unistd.h> --- src/tube_pair.cc~ 2007-04-01 20:37:58.000000000 +0000 +++ src/tube_pair.cc 2007-04-01 20:38:04.000000000 +0000 @@ -20,6 +20,8 @@ #include "tube.h" #include "tube_pair.h" +#include <cstdlib> + TubePair::TubePair(GtkWidget* table, int row, int col) : _right_pair(0), _bottom_pair(0) { -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]