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

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



Package: openmovieeditor
Version: 0.0.20080102-2.2
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 openmovieeditor_0.0.20080102-2.2 on em64t by sbuild/amd64 0.53
...
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -D__STDC_CONSTANT_MACROS -ggdb         -I/usr/include/lqt     -DAVCODEC   -DLIBMPEG3   -DSWSCALE -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -DINSTALL_PREFIX="\"/usr\"" -I../icons -I../src -I../src/tinyxml -I../src/sl -I/usr/include/lqt     -DAVCODEC   -DLIBMPEG3   -DSWSCALE -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT  -g -O2 -MT fl_font_browser.o -MD -MP -MF ".deps/fl_font_browser.Tpo" -c -o fl_font_browser.o fl_font_browser.cpp; \
> 	then mv -f ".deps/fl_font_browser.Tpo" ".deps/fl_font_browser.Po"; else rm -f ".deps/fl_font_browser.Tpo"; exit 1; fi
> fl_font_browser.cpp: In function 'void cb_FontName_Selected(Fl_Widget*, void*)':
> fl_font_browser.cpp:259: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp:263: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp:277: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp:292: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp: In member function 'int Fl_Font_Browser::GetFontNr(const char*)':
> fl_font_browser.cpp:411: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp:413: error: 'sprintf' was not declared in this scope
> fl_font_browser.cpp: In constructor 'Fl_Font_Browser::Fl_Font_Browser()':
> fl_font_browser.cpp:505: warning: deprecated conversion from string constant to 'char*'
> fl_font_browser.cpp:528: error: 'sprintf' was not declared in this scope
> make[4]: *** [fl_font_browser.o] Error 1
> make[4]: Leaving directory `/build/tbm/openmovieeditor-0.0.20080102/src'

--- src/fl_font_browser.cpp~	2009-04-29 16:12:05.000000000 +0000
+++ src/fl_font_browser.cpp	2009-04-29 16:12:15.000000000 +0000
@@ -28,6 +28,7 @@
 

 

 #include "fl_font_browser.h"

+#include <cstdio>

 #include <cstdlib>

 #include <cstring>

 using namespace std;


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



Reply to: