[Pkg-kde-extras] Bug#421209: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Fri Apr 27 07:55:50 UTC 2007
Package: basket
Version: 1.0.2-1
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 (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 the near
future.)
> Automatic build of basket_1.0.2-1 on em64t by sbuild/amd64 0.53
...
> bnpview.cpp: In member function 'QPopupMenu* BNPView::popupMenu(const QString&)':
> bnpview.cpp:1551: error: 'exit' was not declared in this scope
--- src/bnpview.cpp~ 2007-04-27 07:41:33.000000000 +0000
+++ src/bnpview.cpp 2007-04-27 07:41:43.000000000 +0000
@@ -49,6 +49,7 @@
#include <kkeydialog.h>
#include <dcopclient.h>
#include <kdebug.h>
+#include <cstdlib>
#include <iostream>
#include "bnpview.h"
#include "basket.h"
--- src/backup.cpp~ 2007-04-27 07:46:52.000000000 +0000
+++ src/backup.cpp 2007-04-27 07:47:02.000000000 +0000
@@ -43,6 +43,7 @@
#include <kfiledialog.h>
#include <kprogress.h>
#include <kmessagebox.h>
+#include <cstdlib>
#include <unistd.h> // usleep()
/**
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-kde-extras
mailing list