Package: apt-cacher-ng Version: 0.3.2-1 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 apt-cacher-ng_0.3.2-1 on em64t by sbuild/amd64 0.53 ... > g++ -c -Wall -g -O2 "-I/build/tbm/apt-cacher-ng-0.3.2/include" > source/conserver.cc -o conserver.o > source/conserver.cc: In function 'void conserver::CreateUnixSocket()': > source/conserver.cc:200: error: 'perror' was not declared in this scope > source/conserver.cc: In function 'void conserver::Setup()': > source/conserver.cc:274: error: 'perror' was not declared in this scope > source/conserver.cc:278: error: 'perror' was not declared in this scope > source/conserver.cc:282: error: 'perror' was not declared in this scope > source/conserver.cc:290: error: 'perror' was not declared in this scope > source/conserver.cc: In function 'int conserver::Run()': > source/conserver.cc:334: error: 'perror' was not declared in this scope > source/conserver.cc:367: error: 'printf' was not declared in this scope > source/conserver.cc: In function 'void conserver::Shutdown()': > source/conserver.cc:391: error: 'printf' was not declared in this scope > make[1]: *** [conserver.o] Error 1 --- fs/httpfs.cc~ 2008-11-11 22:36:50.000000000 +0000 +++ fs/httpfs.cc 2008-11-11 22:36:58.000000000 +0000 @@ -29,6 +29,7 @@ #include <errno.h> #include <signal.h> +#include <cstdio> #include <algorithm> #include <iostream> #include <list> --- source/conserver.cc~ 2008-11-11 22:32:56.000000000 +0000 +++ source/conserver.cc 2008-11-11 22:33:34.000000000 +0000 @@ -17,6 +17,7 @@ #include <netdb.h> +#include <cstdio> #include <list> #include <map> #include <iostream> --- source/dljob.cc~ 2008-11-11 22:33:53.000000000 +0000 +++ source/dljob.cc 2008-11-11 22:34:03.000000000 +0000 @@ -4,6 +4,8 @@ #include "dljob.h" #include "dlcon.h" +#include <cstdio> + using namespace MYSTD; tDlJob::tDlJob(dlcon *p, tFileItemPtr pFi, const string & sHost, @@ -347,4 +349,4 @@ } return R_ERROR_REMOTE; -} \ No newline at end of file +} --- source/fileitem.cc~ 2008-11-11 22:34:23.000000000 +0000 +++ source/fileitem.cc 2008-11-11 22:34:32.000000000 +0000 @@ -9,6 +9,7 @@ #include "acfg.h" #include "acbuf.h" +#include <cstdio> #include <iostream> #include <sstream> #include <utime.h> --- source/header.cc~ 2008-11-11 22:35:02.000000000 +0000 +++ source/header.cc 2008-11-11 22:35:08.000000000 +0000 @@ -8,6 +8,7 @@ #include "config.h" #include <acbuf.h> +#include <cstdio> #include <time.h> #include <iostream> #include <string.h> --- source/job.cc~ 2008-11-11 22:35:27.000000000 +0000 +++ source/job.cc 2008-11-11 22:35:39.000000000 +0000 @@ -3,6 +3,7 @@ #include "debug.h" #include "job.h" +#include <cstdio> #include <stdexcept> #include <limits> using namespace MYSTD; --- source/meta.cc~ 2008-11-11 22:36:16.000000000 +0000 +++ source/meta.cc 2008-11-11 22:36:22.000000000 +0000 @@ -6,6 +6,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#include <cstdio> #include <iostream> using namespace MYSTD; -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]