Package: apt Version: 0.6.46.4-0.1 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 apt_0.6.46.4-0.1 on coconut0 by sbuild/ia64 0.49 ... > contrib/strutl.cc: In function 'std::string URItoFileName(const > std::string&)': > contrib/strutl.cc:361: error: 'replace' was not declared in this scope > make[2]: *** [../build/obj/apt-pkg/strutl.opic] Error 1 > make[2]: Leaving directory `/build/tbm/apt-0.6.46.4/apt-pkg' --- apt-pkg/contrib/strutl.cc~ 2007-04-01 14:41:02.000000000 +0000 +++ apt-pkg/contrib/strutl.cc 2007-04-01 14:42:26.000000000 +0000 @@ -27,6 +27,7 @@ #include <ctype.h> #include <string.h> +#include <algorithm> #include <stdio.h> #include <unistd.h> #include <regex.h> --- apt-pkg/contrib/fileutl.cc~ 2007-04-01 14:42:59.000000000 +0000 +++ apt-pkg/contrib/fileutl.cc 2007-04-01 14:43:05.000000000 +0000 @@ -24,6 +24,7 @@ #include <apti18n.h> +#include <cstdlib> #include <iostream> #include <unistd.h> #include <fcntl.h> --- apt-pkg/algorithms.cc~ 2007-04-01 14:44:04.000000000 +0000 +++ apt-pkg/algorithms.cc 2007-04-01 14:44:19.000000000 +0000 @@ -24,6 +24,8 @@ #include <apti18n.h> +#include <cstdlib> +#include <algorithm> #include <iostream> /*}}}*/ using namespace std; --- apt-pkg/init.cc~ 2007-04-01 14:44:49.000000000 +0000 +++ apt-pkg/init.cc 2007-04-01 14:44:58.000000000 +0000 @@ -14,6 +14,7 @@ #include <apti18n.h> #include <config.h> +#include <cstdlib> #include <sys/stat.h> /*}}}*/ --- apt-pkg/cdrom.cc~ 2007-04-01 14:45:33.000000000 +0000 +++ apt-pkg/cdrom.cc 2007-04-01 14:45:53.000000000 +0000 @@ -18,6 +18,7 @@ #include <dirent.h> #include <unistd.h> #include <stdio.h> +#include <algorithm> #include "indexcopy.h" --- cmdline/apt-sortpkgs.cc~ 2007-04-01 14:49:56.000000000 +0000 +++ cmdline/apt-sortpkgs.cc 2007-04-01 14:50:00.000000000 +0000 @@ -162,7 +162,7 @@ } /*}}}*/ -int main(unsigned int argc,const char *argv[]) +int main(int argc,const char *argv[]) { CommandLine::Args Args[] = { {'h',"help","help",0}, --- ftparchive/apt-ftparchive.cc~ 2007-04-01 14:50:40.000000000 +0000 +++ ftparchive/apt-ftparchive.cc 2007-04-01 14:50:50.000000000 +0000 @@ -24,6 +24,7 @@ #include <apti18n.h> #include <algorithm> +#include <climits> #include <sys/time.h> #include <regex.h> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]