Package: multiget
Version: 1.2.0-1
User: debian-...@lists.debian.org
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 multiget_1.2.0-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I. -I.. 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread 
> -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
> -DPACKAGE_DATA_DIR=\""/usr/share"\" -D_REENTRANT -I/usr/include/gtk-2.0 
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 
> -I/usr/include/pixman-1 -I/usr/include/libglade-2.0 -I/usr/include/libxml2    
>   -g -O2 -g -Wall -O2 -c -o batch.o batch.cpp
> batch.cpp: In constructor 'CBatch::CBatch(std::string)':
> batch.cpp:153: error: 'sprintf' was not declared in this scope
> batch.cpp:176: error: 'sprintf' was not declared in this scope
> make[3]: *** [batch.o] Error 1
> make[3]: Leaving directory `/build/tbm/multiget-1.2.0/src'

--- src/batch.cpp~      2009-01-04 09:14:43.000000000 +0000
+++ src/batch.cpp       2009-01-04 09:15:00.000000000 +0000
@@ -24,6 +24,7 @@
 

 #include "batch.h"

 #include "common.h"

+#include <cstdio>

 #include <cstdlib>

 #include <iostream>

 

--- src/mgftpbase.cpp~  2009-01-04 09:17:50.000000000 +0000
+++ src/mgftpbase.cpp   2009-01-04 09:18:17.000000000 +0000
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

  */

 

+#include <cstdio>

 #include <cstdlib>

 

 using namespace std;

--- src/mghttpbase.cpp~ 2009-01-04 09:20:32.000000000 +0000
+++ src/mghttpbase.cpp  2009-01-04 09:20:41.000000000 +0000
@@ -47,6 +47,7 @@
 #endif

 

 #include "mghttpbase.h"

+#include <cstdio>

 #include <iostream>

 

 using namespace std;


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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to