--- Begin Message ---
Package: rtorrent
Version: 0.7.9-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 rtorrent_0.7.9-2 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../..
> -I/usr/include/ncursesw -g -O2 -g -Wall -fno-strict-aliasing -g -DDEBUG
> -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include -c
> -o utils.o utils.cc
> In file included from utils.cc:59:
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*)':
> utils.h:86: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&) [with Arg1 = int, Arg2 = int, Arg3 =
> int]':
> utils.cc:80: instantiated from here
> utils.h:128: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&) [with Arg1 = const char*]':
> utils.cc:128: instantiated from here
> utils.h:100: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&) [with Arg1 = double]':
> utils.cc:141: instantiated from here
> utils.h:100: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&) [with Arg1 = double, Arg2 = double]':
> utils.cc:145: instantiated from here
> utils.h:114: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&) [with Arg1 = double, Arg2 = double,
> Arg3 = double]':
> utils.cc:150: instantiated from here
> utils.h:128: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&) [with Arg1 = char, Arg2 = char, Arg3 =
> double]':
> utils.cc:165: instantiated from here
> utils.h:128: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&) [with Arg1 = uint32_t]':
> utils.cc:189: instantiated from here
> utils.h:100: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&) [with Arg1 = uint32_t, Arg2 =
> uint32_t, Arg3 = const char*]':
> utils.cc:195: instantiated from here
> utils.h:128: error: 'snprintf' was not declared in this scope
> In file included from utils.cc:59:
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&, const Arg4&, const Arg5&) [with Arg1 =
> const char*, Arg2 = char, Arg3 = char, Arg4 = char, Arg5 = char]':
> utils.cc:238: instantiated from here
> utils.h:156: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&, const Arg4&) [with Arg1 = const char*,
> Arg2 = char, Arg3 = char, Arg4 = char]':
> utils.cc:243: instantiated from here
> utils.h:142: error: 'snprintf' was not declared in this scope
> In file included from utils.cc:59:
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&) [with Arg1 = int32_t]':
> utils.cc:254: instantiated from here
> utils.h:100: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&) [with Arg1 = uint32_t, Arg2 = uint32_t]':
> utils.cc:289: instantiated from here
> utils.h:114: error: 'snprintf' was not declared in this scope
> utils.h: In function 'char* display::print_buffer(char*, char*, const char*,
> const Arg1&, const Arg2&, const Arg3&) [with Arg1 = uint32_t, Arg2 =
> uint32_t, Arg3 = uint32_t]':
> utils.cc:302: instantiated from here
> utils.h:128: error: 'snprintf' was not declared in this scope
> make[4]: *** [utils.o] Error 1
> make[4]: Leaving directory `/build/tbm/rtorrent-0.7.9/src/display'
--- src/display/utils.h~ 2008-11-07 20:58:27.000000000 +0000
+++ src/display/utils.h 2008-11-07 20:58:35.000000000 +0000
@@ -37,6 +37,7 @@
#ifndef RTORRENT_DISPLAY_UTILS_H
#define RTORRENT_DISPLAY_UTILS_H
+#include <cstdio>
#include <ctime>
#include <string>
--- src/rpc/parse.cc~ 2008-11-07 21:00:11.000000000 +0000
+++ src/rpc/parse.cc 2008-11-07 21:00:20.000000000 +0000
@@ -37,6 +37,7 @@
#include "config.h"
#include <locale>
+#include <cstdio>
#include <cstring>
#include <rak/path.h>
#include <torrent/exceptions.h>
--- src/rpc/scgi_task.cc~ 2008-11-07 21:01:13.000000000 +0000
+++ src/rpc/scgi_task.cc 2008-11-07 21:01:22.000000000 +0000
@@ -36,6 +36,7 @@
#include "config.h"
+#include <cstdio>
#include <rak/error_number.h>
#include <sys/types.h>
#include <sys/socket.h>
--- src/utils/lockfile.cc~ 2008-11-07 21:02:36.000000000 +0000
+++ src/utils/lockfile.cc 2008-11-07 21:02:44.000000000 +0000
@@ -39,6 +39,7 @@
#include <algorithm>
#include <cctype>
#include <cerrno>
+#include <cstdio>
#include <cstring>
#include <sstream>
#include <fcntl.h>
--- src/command_network.cc~ 2008-11-07 21:03:40.000000000 +0000
+++ src/command_network.cc 2008-11-07 21:04:54.000000000 +0000
@@ -36,6 +36,7 @@
#include "config.h"
+#include <cstdio>
#include <functional>
#include <rak/address_info.h>
#include <rak/file_stat.h>
--- src/command_ui.cc~ 2008-11-07 21:04:32.000000000 +0000
+++ src/command_ui.cc 2008-11-07 21:04:41.000000000 +0000
@@ -36,6 +36,7 @@
#include "config.h"
+#include <cstdio>
#include <ctime>
#include <rak/functional.h>
--
Martin Michlmayr
http://www.cyrius.com/
--- End Message ---