Your message dated Thu, 29 Oct 2009 22:51:37 +0300
with message-id <[email protected]>
and subject line FTBFS with GCC 4.4: missing #include
has caused the Debian Bug report #505355,
regarding FTBFS with GCC 4.4: missing #include
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
505355: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505355
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
Hi, Martin Michlmayr
Today I've done a building test for this package with the latest
gcc-snapshot, it builds fine.
So, I'm closing the bugreport.
Thank You for Your attention to our package.
$ g++ (Debian 20091010-1) 4.5.0 20091010 (experimental) [trunk revision 152615]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
--
... mpd is off
. ''`. Dmitry E. Oboukhov
: :’ : email: [email protected] jabber://[email protected]
`. `~’ GPGKey: 1024D / F8E26537 2006-11-21
`- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
signature.asc
Description: Digital signature
--- End Message ---