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

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



Package: qsstv
Version: 5.3c-5
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 qsstv_5.3c-5 on coconut0 by sbuild/ia64 0.49
...
> /usr/share/qt3/include/qpushbutton.h: In member function 'virtual void QPushButton::setIsMenuButton(bool)':
> /usr/share/qt3/include/qpushbutton.h:91: warning: conversion to 'unsigned char:1' from 'int' may alter its value
> repeater.cpp: In member function 'void repeater::restartImageTimer()':
> repeater.cpp:54: error: 'atoi' was not declared in this scope

--- qsstv/repeater.cpp~	2007-04-02 21:36:17.000000000 +0000
+++ qsstv/repeater.cpp	2007-04-02 21:36:24.000000000 +0000
@@ -5,6 +5,8 @@
 #include "thumbwindow.h"
 #include "configdiag.h"
 
+#include <cstdlib>
+
 bool brepeater;
 bool brepGetPicture;
 

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



Reply to: