[Pkg-kde-extras] Bug#417505: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Mon Apr 2 21:44:31 UTC 2007
Package: qsynaptics
Version: 0.22.0-6.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 (20070326-1 or higher)
from unstable.
> Automatic build of qsynaptics_0.22.0-6.1 on em64t by sbuild/amd64 0.53
...
> g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o qsynaptics.o qsynaptics.cpp
> qsynaptics.cpp: In function 'int main(int, char**)':
> qsynaptics.cpp:51: error: 'exit' was not declared in this scope
> qsynaptics.cpp:62: error: 'exit' was not declared in this scope
> make[2]: *** [qsynaptics.o] Error 1
--- src/qsynaptics.cpp~ 2007-04-02 21:38:17.000000000 +0000
+++ src/qsynaptics.cpp 2007-04-02 21:38:23.000000000 +0000
@@ -22,6 +22,7 @@
#include "syntp.h"
+#include <cstdlib>
#include <map>
#include <string>
#include <iostream>
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-kde-extras
mailing list