On Sun, Jan 20, 2008 at 11:05:10AM +0100, Martin Michlmayr wrote:
> Package: aria
> Version: 1.0.0-16
> Usertags: ftbfs-gcc-4.3
> 
> Your package fails to build with GCC 4.3.  Version 4.3 has not been
> released yet but I'm building with a snapshot in order to find errors
> and give people an advance warning.  In GCC 4.3, pre-iso c++ headers
> will no longer be present, but your application makes use of them.
> 
> You can reproduce this problem with gcc-4.3 or gcc-snapshot from
> unstable.
> 
> > Automatic build of aria_1.0.0-16 on em64t by sbuild/amd64 0.53
> ...
> > make[4]: Entering directory 
> > `/build/tbm/aria-1.0.0/build-tree/aria-1.0.0/src'
> > g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -Wno-deprecated 
> > -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share\" -I../intl 
> > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
> > -D_REENTRANT -c main.cc
> > In file included from main.cc:46:
> > ItemList.h:34:18: error: pair.h: No such file or directory
> > make[4]: *** [main.o] Error 1
> > make[4]: Leaving directory `/build/tbm/aria-1.0.0/build-tree/aria-1.0.0/src'
> > make[3]: *** [all-recursive] Error 1

I've looked into fixing this. Two patches are attached, fixing the error
above and a later error, where memcpy is undefined.

However, with these applied the configure script runs into the overflow
problem described in this bug: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425544

The configure script needs to be regenerated, but I'm not sure how to do this
with dbs in a sane way.

Cheers,
        Moritz
diff -Naur aria-1.0.0.orig/src/ItemList.h aria-1.0.0/src/ItemList.h
--- aria-1.0.0.orig/src/ItemList.h      2002-03-16 15:13:00.000000000 +0100
+++ aria-1.0.0/src/ItemList.h   2008-03-20 00:18:20.000000000 +0100
@@ -31,7 +31,7 @@
 #include <string>
 #include <fstream>
 //#include <map>
-#include <pair.h>
+#include <utility>
 #include "aria.h"
 #include "utils.h"
 #include "ProxyList.h"
diff -Naur aria-1.0.0.orig/src/RetrieveFTP.h aria-1.0.0/src/RetrieveFTP.h
--- aria-1.0.0.orig/src/RetrieveFTP.h   2002-02-13 13:09:24.000000000 +0100
+++ aria-1.0.0/src/RetrieveFTP.h        2008-03-20 00:18:36.000000000 +0100
@@ -27,7 +27,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <fstream>
-#include <pair.h>
+#include <utility>
 #include "aria.h"
 #include "FTPcontainer.h"
 #include "ItemCell.h"
diff -Naur aria-1.0.0.orig/src/gui_download.cc aria-1.0.0/src/gui_download.cc
--- aria-1.0.0.orig/src/gui_download.cc 2002-10-01 17:32:00.000000000 +0200
+++ aria-1.0.0/src/gui_download.cc      2008-03-20 00:18:49.000000000 +0100
@@ -24,7 +24,7 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <pair.h>
+#include <utility>
 #include <list>
 #include <algorithm>
 #include "aria.h"
diff -aur aria-1.0.0.orig/src/md5check.h aria-1.0.0/src/md5check.h
--- aria-1.0.0.orig/src/md5check.h      2001-10-20 10:56:18.000000000 +0200
+++ aria-1.0.0/src/md5check.h   2008-03-20 00:26:21.000000000 +0100
@@ -25,6 +25,7 @@
 #include <iostream>
 #include <fstream>
 #include <string>
+#include <cstring>
 #include <stdio.h>
 
 using namespace std;
Only in aria-1.0.0/src: md5check.h~

Reply via email to