Here is a new patch and an explanation for this problem which you
can forward upstream along with the patch.

In GCC 4.3, the C++ header dependencies have been cleaned up.  The
advantage of this is that programs will compile faster.  The downside
is that you actually need to directly #include everything you use (but
you really should do this anyway, otherwise your program won't work
with any compiler other than GCC).  Some background of this can be
found at http://gcc.gnu.org/PR28080

For the maintainer: You can reproduce this problem with gcc-snapshot
(20070326-1 or higher) from unstable. (Currently not available for
i386, but for amd64, powerpc and ia64.  I hope to have i386 binaries
in the archive in ~3 weeks.)  In any case, the patch I sent is tested.
The header dependencies have been cleaned up some more since I sent
the last patch, but I think this work is done now, so please apply
this patch and send it upstream.


--- apt-front/cache/entity/tag.h~       2007-04-05 08:08:01.000000000 +0000
+++ apt-front/cache/entity/tag.h        2007-04-05 08:08:10.000000000 +0000
@@ -27,8 +27,9 @@
 
 #include <tagcoll/OpSet.h>
 
-#if 0
 #include <string>
+
+#if 0
 #include <debtags/fdecls.h>
 #endif
 
--- apt-front/cache/component/history.h~        2007-04-05 08:06:31.000000000 
+0000
+++ apt-front/cache/component/history.h 2007-04-05 08:06:36.000000000 +0000
@@ -6,6 +6,7 @@
 #include <apt-front/cache/cache.h>
 #include <apt-front/cache/component/base.h>
 #include <apt-front/error.h>
+#include <algorithm>
 #include <deque>
 #include <iostream>
 
--- apt-front/cache/cache.h~    2007-04-05 08:03:19.000000000 +0000
+++ apt-front/cache/cache.h     2007-04-05 08:03:25.000000000 +0000
@@ -2,6 +2,7 @@
  * @file cache/cache.h
  * @author Peter Rockai <[EMAIL PROTECTED]>
  */
+#include <cstdlib>
 #include <map>
 #include <set>
 
--- apt-front/updater.cpp~      2007-04-05 08:08:48.000000000 +0000
+++ apt-front/updater.cpp       2007-04-05 08:08:55.000000000 +0000
@@ -1,5 +1,6 @@
 #include <apt-front/updater.h>
 #include <sys/types.h>
+#include <cstdlib>
 #include <pwd.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