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

Bug#525712: FTBFS with GCC 4.4: missing #include



Package: fldigi
Version: 3.10-1
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of fldigi_3.10-1 on em64t by sbuild/amd64 0.53
...
> mv -f .deps/fl_digi.Tpo .deps/fl_digi.Po
> g++ -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/usr/share/locale\" -I. -I./include -I./irrxml -I./fileselector   -DNDEBUG  -pthread   -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -pipe -Wall -fexceptions -O2 -ffast-math -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:200: error: 'snprintf' was not declared in this scope
> make[3]: *** [font_browser.o] Error 1
> make[3]: Leaving directory `/build/tbm/fldigi-3.10/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/build/tbm/fldigi-3.10/src'

--- src/dialogs/font_browser.cxx~	2009-04-26 17:33:32.000000000 +0000
+++ src/dialogs/font_browser.cxx	2009-04-26 17:34:00.000000000 +0000
@@ -30,6 +30,7 @@
 #include <config.h>
 
 #include <string>
+#include <cstdio>
 #include <cstdlib>
 #include <cstring>
 
--- src/misc/socket.cxx~	2009-04-26 17:43:21.000000000 +0000
+++ src/misc/socket.cxx	2009-04-26 17:43:34.000000000 +0000
@@ -37,6 +37,7 @@
 #include <sstream>
 #include <cerrno>
 #include <cstring>
+#include <cstdio>
 #include <cstdlib>
 #include <cmath>
 

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



Reply to: