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

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



Package: klineakconfig
Version: 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 from unstable.

> Automatic build of klineakconfig_0.9-4 on coconut0 by sbuild/ia64 0.49
...
> klineakdef.cpp: In member function 'virtual bool KlineakDef::x11Event(XEvent*)':
> klineakdef.cpp:63: warning: conversion to 'int' from 'unsigned int' may alter its value
> klineakdef.cpp: In member function 'QString KlineakDef::hashKbIdent()':
> klineakdef.cpp:160: error: 'getenv' was not declared in this scope
> klineakdef.cpp: In member function 'virtual QString KlineakDef::saveDefFile()':
> klineakdef.cpp:172: error: 'getenv' was not declared in this scope
> klineakdef.cpp: In member function 'virtual void KlineakDef::onSubmitButtonClicked()':
> klineakdef.cpp:294: error: 'getenv' was not declared in this scope
> klineakdef.cpp: In member function 'void KlineakDef::parseUserDef()':
> klineakdef.cpp:327: error: 'getenv' was not declared in this scope


--- klineakconfig/klineakdef.cpp~	2007-04-02 09:29:18.000000000 +0000
+++ klineakconfig/klineakdef.cpp	2007-04-02 09:29:26.000000000 +0000
@@ -22,6 +22,7 @@
 #include "klmailclient.h"
 #include <qpushbutton.h>
 #include <qstring.h>
+#include <cstdlib>
 #include <iostream>
 #include <lineak/lkbd.h>
 #include <lineak/saver.h>

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



Reply to: