[Pkg-kde-extras] Bug#417316: FTBFS with GCC 4.3: missing #includes

Martin Michlmayr tbm at cyrius.com
Mon Apr 2 10:25:54 UTC 2007


Package: klibido
Version: 0.2.5-3
Usertags: ftbfs-gcc-4.3
Tags: patch

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, 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

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of klibido_0.2.5-3 on em64t by sbuild/amd64 0.53
...
> /build/tbm/klibido-0.2.5/./src/grouplist.cpp:801: warning: conversion to 'int' from 'u_int32_t' may alter its value
> /build/tbm/klibido-0.2.5/./src/grouplist.cpp:812: error: 'exit' was not declared in this scope
> /build/tbm/klibido-0.2.5/./src/grouplist.cpp:831: error: 'free' was not declared in this scope

--- src/grouplist.cpp~	2007-04-02 10:09:18.000000000 +0000
+++ src/grouplist.cpp	2007-04-02 10:09:24.000000000 +0000
@@ -22,6 +22,7 @@
 #include "grouplist.h"
 #include "binheader.h"
 #include <kmessagebox.h>
+#include <cstdlib>
 #include <assert.h>
 #include <kiconloader.h>
 #include "progress.h"
--- src/headerlist.cpp~	2007-04-02 10:12:28.000000000 +0000
+++ src/headerlist.cpp	2007-04-02 10:12:34.000000000 +0000
@@ -24,6 +24,7 @@
 #include <kmessagebox.h>
 #include <klocale.h>
 #include "progress.h"
+#include <cstdlib>
 #include <errno.h>
 #include <kprogress.h>
 #include <qregexp.h>
--- src/hlistviewitem.cpp~	2007-04-02 10:14:54.000000000 +0000
+++ src/hlistviewitem.cpp	2007-04-02 10:14:59.000000000 +0000
@@ -21,6 +21,7 @@
 #include "newsgroup.h"
 #include <qpainter.h>
 #include <klocale.h>
+#include <cstdlib>
 /*
 static const char *patterns[] = { "\\d+\\.(?:avi|mpg|mpeg|wmv)",  //.nn.avi
 	"(?:avi|mpg|mpeg|wmv)\\.\\d+)",  //.avi.nn
--- src/nntpthreadsocket.cpp~	2007-04-02 10:15:35.000000000 +0000
+++ src/nntpthreadsocket.cpp	2007-04-02 10:15:41.000000000 +0000
@@ -22,6 +22,7 @@
 #include "nntpthreadsocket.h"
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <cstdlib>
 #include <assert.h>
 #include <netdb.h>
 #include <sys/poll.h>
--- src/queueparts.cpp~	2007-04-02 10:16:09.000000000 +0000
+++ src/queueparts.cpp	2007-04-02 10:16:15.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include "queueparts.h"
 #include <qfileinfo.h>
+#include <cstdlib>
 
 
 
--- src/qmgr.cpp~	2007-04-02 10:17:13.000000000 +0000
+++ src/qmgr.cpp	2007-04-02 10:17:20.000000000 +0000
@@ -29,6 +29,7 @@
 #include <qdatetime.h>
 #include "nzbform.h"
 #include "mylistview.h"
+#include <cstdlib>
 
 
 extern bool g_qResume;
--- src/updatedb.cpp~	2007-04-02 10:18:26.000000000 +0000
+++ src/updatedb.cpp	2007-04-02 10:18:31.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include "updatedb.h"
 #include "binheader.h"
+#include <cstdlib>
 
 //CACHE PARAMETERS
 #define CACHESIZE 503

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




More information about the pkg-kde-extras mailing list