Package: anymeal
Version: 0.30-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 anymeal_0.30-1 on coconut0 by sbuild/ia64 0.49
...
> /usr/share/qt3/include/qpushbutton.h:91: warning: conversion to 'unsigned 
> char:1' from 'int' may alter its value
> In file included from destroyDialog.cc:31:
> /usr/share/qt3/include/qimage.h: In member function 'bool 
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/share/qt3/include/qimage.h:58: warning: suggest parentheses around && 
> within ||
> In file included from destroyDialog.cc:34:
> ./destroyDialog.ui.h: In member function 'virtual void DestroyDialog::init()':
> ./destroyDialog.ui.h:15: error: 'getenv' was not declared in this scope
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
> make[3]: *** [destroyDialog.o] Error 1
> make[3]: Leaving directory `/build/tbm/anymeal-0.30/src'

--- src/destroyDialog.ui.h~     2007-04-01 14:35:42.000000000 +0000
+++ src/destroyDialog.ui.h      2007-04-01 14:36:12.000000000 +0000
@@ -7,6 +7,8 @@
 ** place of a destructor.
 *****************************************************************************/
 
+#include <cstdlib>
+
 
 void DestroyDialog::init()
 {

-- 
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