Package: swac-get Version: 0.3-2 User: [EMAIL PROTECTED] Usertags: ftbfs-gcc-4.4 Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. GCC 4.4 cleaned up some more C++ headers. You always have to #include headers directly and cannot rely for things to be included indirectly. You can reproduce this problem with gcc-snapshot from unstable. > Automatic build of swac-get_0.3-2 on em64t by sbuild/amd64 0.53 ... > mv -f .deps/main.Tpo .deps/main.Po > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"swac-get\" > -DVERSION=\"0.3\" -I. -I/usr/include/libxml2 -g -O2 -MT basic.o -MD -MP > -MF .deps/basic.Tpo -c -o basic.o basic.cc > basic.cc: In function 'void color(int)': > basic.cc:68: error: 'printf' was not declared in this scope > basic.cc: In function 'void print_action(std::string)': > basic.cc:80: error: 'stdout' was not declared in this scope > basic.cc:80: error: 'fflush' was not declared in this scope > make[2]: *** [basic.o] Error 1 --- src/basic.cc~ 2008-11-13 19:21:21.000000000 +0000 +++ src/basic.cc 2008-11-13 19:21:26.000000000 +0000 @@ -20,6 +20,7 @@ +#include <cstdio> #include <sstream> #include <iostream> #include "basic.hh" --- src/db.cc~ 2008-11-13 19:22:15.000000000 +0000 +++ src/db.cc 2008-11-13 19:22:19.000000000 +0000 @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <cstdio> #include <iostream> #include <string> --- src/posix.cc~ 2008-11-13 19:22:28.000000000 +0000 +++ src/posix.cc 2008-11-13 19:22:35.000000000 +0000 @@ -21,6 +21,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <pwd.h> +#include <cstdio> #include <unistd.h> #include <dirent.h> #include <string> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]