Package: aria2
Version: 0.14.0-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 aria2_0.14.0-1 on em64t by sbuild/amd64 0.53
...
> mv -f .deps/HttpConnection.Tpo .deps/HttpConnection.Po
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I../lib -I../intl
> -I../intl -I/usr/include -I/usr/include -I/usr/include/libxml2
> -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -g -O2
> -MT FtpConnection.o -MD -MP -MF .deps/FtpConnection.Tpo -c -o FtpConnection.o
> FtpConnection.cc
> FtpConnection.cc: In member function 'aria2::SocketHandle
> aria2::FtpConnection::sendPort() const':
> FtpConnection.cc:123: error: 'sscanf' was not declared in this scope
> FtpConnection.cc: In member function 'unsigned int
> aria2::FtpConnection::getStatus(const std::string&) const':
> FtpConnection.cc:157: error: 'sscanf' was not declared in this scope
> FtpConnection.cc: In member function 'unsigned int
> aria2::FtpConnection::receiveSizeResponse(uint64_t&)':
> FtpConnection.cc:245: error: 'sscanf' was not declared in this scope
> FtpConnection.cc: In member function 'unsigned int
> aria2::FtpConnection::receivePasvResponse(std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, short unsigned int>&)':
> FtpConnection.cc:264: error: 'sscanf' was not declared in this scope
> make[3]: *** [FtpConnection.o] Error 1
> make[3]: Leaving directory `/build/tbm/aria2-0.14.0/src'
--- src/FtpConnection.cc~ 2008-11-09 08:44:36.000000000 +0000
+++ src/FtpConnection.cc 2008-11-09 08:46:21.000000000 +0000
@@ -47,6 +47,7 @@
#include "DlAbortEx.h"
#include "Socket.h"
#include "A2STR.h"
+#include <cstdio>
namespace aria2 {
--- src/Util.cc~ 2008-11-09 08:46:06.000000000 +0000
+++ src/Util.cc 2008-11-09 08:46:15.000000000 +0000
@@ -50,6 +50,7 @@
#include <cerrno>
#include <cassert>
#include <cstring>
+#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <sstream>
--- src/File.cc~ 2008-11-09 08:47:27.000000000 +0000
+++ src/File.cc 2008-11-09 08:47:37.000000000 +0000
@@ -36,6 +36,7 @@
#include "Util.h"
#include "A2STR.h"
#include <cstring>
+#include <cstdio>
#include <stdlib.h>
#include <deque>
--- src/MetaFileUtil.cc~ 2008-11-09 08:51:29.000000000 +0000
+++ src/MetaFileUtil.cc 2008-11-09 08:51:39.000000000 +0000
@@ -40,6 +40,7 @@
#include "DlAbortEx.h"
#include "message.h"
#include <cstring>
+#include <cstdio>
#include <cstdlib> // <-- TODO remove this if strtoul is replaced with
Util::parseUInt()
namespace aria2 {
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]