Bug#504910: FTBFS with GCC 4.4: missing #include
Package: fldigi
Version: 2.10.3-1
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 cleaned up some more C++ headers. You always have to #include
headers directly and cannot rely for things to be included indirectly.
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of fldigi_2.10.3-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./irrxml -DNDEBUG -pthread -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -pipe -Wall -O2 -ffast-math -fexceptions -finline-functions -g -O2 -MT font_browser.o -MD -MP -MF .deps/font_browser.Tpo -c -o font_browser.o `test -f 'dialogs/font_browser.cxx' || echo './'`dialogs/font_browser.cxx
> dialogs/font_browser.cxx: In constructor 'Font_Browser::Font_Browser(const char*)':
> dialogs/font_browser.cxx:196: error: 'snprintf' was not declared in this scope
> make[3]: *** [font_browser.o] Error 1
> make[3]: Leaving directory `/build/tbm/fldigi-2.10.3/src'
> make[2]: *** [all] Error 2
--- src/dialogs/font_browser.cxx~ 2008-11-07 21:11:38.000000000 +0000
+++ src/dialogs/font_browser.cxx 2008-11-07 21:11:43.000000000 +0000
@@ -30,6 +30,7 @@
#include <config.h>
#include <string>
+#include <cstdio>
#include <cstdlib>
#include <cstring>
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: