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

> Automatic build of kshutdown_0.8.2-1 on em64t by sbuild/amd64 0.53
...
> /build/tbm/kshutdown-0.8.2/./kshutdown/systemconfig.cpp: In static member 
> function 'static bool SystemConfig::canShutDown()':
> /build/tbm/kshutdown-0.8.2/./kshutdown/systemconfig.cpp:40: error: '::getenv' 
> has not been declared
> /build/tbm/kshutdown-0.8.2/./kshutdown/systemconfig.cpp: In member function 
> 'void SystemConfig::checkKDE()':
> /build/tbm/kshutdown-0.8.2/./kshutdown/systemconfig.cpp:136: error: 
> '::getenv' has not been declared
> /usr/share/qt3/include/qmemarray.h: In member function 'uint 
> QMemArray<type>::size() const [with type = char]':
> /usr/share/qt3/include/qcstring.h:123:   instantiated from here
> /usr/share/qt3/include/qmemarray.h:66: warning: conversion to 'uint' from 
> 'long unsigned int' may alter its value
> /usr/share/qt3/include/qmemarray.h: In member function 'QMemArray<type>& 
> QMemArray<type>::duplicate(const type*, uint) [with type = char]':
> /usr/share/qt3/include/qcstring.h:252:   instantiated from here
> /usr/share/qt3/include/qmemarray.h:85: warning: conversion to 'uint' from 
> 'long unsigned int' may alter its value
> make[3]: *** [systemconfig.o] Error 1


--- kshutdown/systemconfig.cpp~ 2007-04-02 09:43:04.000000000 +0000
+++ kshutdown/systemconfig.cpp  2007-04-02 09:43:10.000000000 +0000
@@ -27,6 +27,8 @@
 #include <klistview.h>
 #include <klocale.h>
 
+#include <cstdlib>
+
 // private
 
 int SystemConfig::_canShutDown = -1;

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to