[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#417369: FTBFS with GCC 4.3: missing #includes



Package: lineak-kdeplugins
Version: 2:0.9-4
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.

> Automatic build of lineak-kdeplugins_2:0.9-4 on coconut0 by sbuild/ia64 0.49
...
> kmixclient.cpp: In member function 'int KMIXClient::volumeUp(int, std::string)':
> kmixclient.cpp:80: error: 'abs' was not declared in this scope
> kmixclient.cpp: In member function 'int KMIXClient::volumeDown(int, std::string)':
> kmixclient.cpp:98: error: 'abs' was not declared in this scope
> kmixclient.cpp: In member function 'int KMIXClient::mute(std::string)':
> kmixclient.cpp:119: error: 'atoi' was not declared in this scope

--- kmix_plugin/kmixclient.cpp~	2007-04-02 13:14:33.000000000 +0000
+++ kmix_plugin/kmixclient.cpp	2007-04-02 13:14:44.000000000 +0000
@@ -28,6 +28,7 @@
 #include <kurl.h>

 #include <kapplication.h>

 #include <dcopclient.h>

+#include <cstdlib>

 #include <iostream>

 #include <lineak/lineak_core_functions.h>

 #include "kmixclient.h"


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



Reply to: