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

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



Package: kdemultimedia
Version: 4:3.5.5-2
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 kdemultimedia_4:3.5.5-2 on em64t by sbuild/amd64 0.53
...
> /build/tbm/kdemultimedia-3.5.5/./arts/gui/kde/kgraph.cpp:181: warning: conversion to 'float' from 'int' may alter its value
> /build/tbm/kdemultimedia-3.5.5/./arts/gui/kde/kgraph.cpp:183: error: 'abs' was not declared in this scope


--- juk/artsplayer.cpp~	2007-04-02 08:43:27.000000000 +0000
+++ juk/artsplayer.cpp	2007-04-02 08:43:40.000000000 +0000
@@ -31,6 +31,7 @@
 #include <kplayobject.h>
 #include <kplayobjectfactory.h>
 
+#include <cstdlib>
 #include <sys/wait.h>
 
 #include <kmessagebox.h>
--- arts/gui/kde/kgraph.cpp~	2007-04-02 08:34:50.000000000 +0000
+++ arts/gui/kde/kgraph.cpp	2007-04-02 08:34:56.000000000 +0000
@@ -25,6 +25,7 @@
 #include "kgraphline_impl.h"
 #include "qpainter.h"
 
+#include <cstdlib>
 #include <math.h>
 
 using namespace Arts;
--- mpeglib_artsplug/mpeglibartsplay.cpp~	2007-04-02 09:20:15.000000000 +0000
+++ mpeglib_artsplug/mpeglibartsplay.cpp	2007-04-02 09:20:22.000000000 +0000
@@ -23,6 +23,7 @@
 #include <vector>
 #include <string>
 #include <iostream>
+#include <climits>
 
 using namespace std;
 
--- noatun/modules/artseffects/extrastereo_impl.cc~	2007-04-02 09:09:51.000000000 +0000
+++ noatun/modules/artseffects/extrastereo_impl.cc	2007-04-02 09:10:00.000000000 +0000
@@ -8,6 +8,7 @@
 #include <convert.h>
 #include "debug.h"
 #include <connect.h>
+#include <cstdlib>
 
 using namespace Arts;
 

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



Reply to: