Package: libtorrent
Version: 0.11.9-1.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 libtorrent_0.11.9-1.1 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../.. -g -O2 -g -Wall 
> -fno-strict-aliasing -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 
> -I/usr/lib/sigc++-2.0/include -c extensions.cc  -fPIC -DPIC -o 
> .libs/extensions.o
> extensions.cc: In member function 'torrent::DataBuffer 
> torrent::ProtocolExtension::generate_handshake_message()':
> extensions.cc:113: warning: suggest parentheses around comparison in operand 
> of '&'
> extensions.cc:114: warning: suggest parentheses around comparison in operand 
> of '&'
> extensions.cc: In static member function 'static torrent::DataBuffer 
> torrent::ProtocolExtension::generate_toggle_message(torrent::ProtocolExtension::MessageType,
>  bool)':
> extensions.cc:137: error: 'snprintf' was not declared in this scope
> extensions.cc: In static member function 'static torrent::DataBuffer 
> torrent::ProtocolExtension::generate_ut_pex_message(const 
> std::vector<torrent::SocketAddressCompact, 
> std::allocator<torrent::SocketAddressCompact> >&, const 
> std::vector<torrent::SocketAddressCompact, 
> std::allocator<torrent::SocketAddressCompact> >&)':
> extensions.cc:157: error: 'sprintf' was not declared in this scope
> make[4]: *** [extensions.lo] Error 1
> make[4]: Leaving directory `/build/tbm/libtorrent-0.11.9/src/protocol'

--- src/protocol/extensions.cc~ 2008-11-11 20:30:34.000000000 +0000
+++ src/protocol/extensions.cc  2008-11-11 20:30:39.000000000 +0000
@@ -36,6 +36,7 @@
 
 #include "config.h"
 
+#include <cstdio>
 #include <limits>
 #include <sstream>
 
--- src/tracker/tracker_udp.cc~ 2008-11-11 20:32:20.000000000 +0000
+++ src/tracker/tracker_udp.cc  2008-11-11 20:32:27.000000000 +0000
@@ -36,6 +36,8 @@
 
 #include "config.h"
 
+#include <cstdio>
+
 #include <sigc++/adaptors/bind.h>
 #include <torrent/connection_manager.h>
 

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to