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

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



Package: openmovieeditor
Version: 0.0.20080102-2.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 openmovieeditor_0.0.20080102-2.1 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/lib/gavl/include/   -I/usr/include/lqt   -I/usr/include/ffmpeg   -DAVCODEC -I/usr/include/ffmpeg   -DLIBMPEG3 -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -DINSTALL_PREFIX="\"/usr\"" -I../icons -I../src -I../src/tinyxml -I../src/sl -I/usr/lib/gavl/include/   -I/usr/include/lqt   -I/usr/include/ffmpeg   -DAVCODEC -I/usr/include/ffmpeg   -DLIBMPEG3 -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT  -g -O2 -MT JackPlaybackCore.o -MD -MP -MF ".deps/JackPlaybackCore.Tpo" -c -o JackPlaybackCore.o JackPlaybackCore.cxx; \
> 	then mv -f ".deps/JackPlaybackCore.Tpo" ".deps/JackPlaybackCore.Po"; else rm -f ".deps/JackPlaybackCore.Tpo"; exit 1; fi
> JackPlaybackCore.cxx: In function 'void nle::open_jack(void*)':
> JackPlaybackCore.cxx:154: error: 'snprintf' was not declared in this scope
> make[4]: *** [JackPlaybackCore.o] Error 1
> make[4]: Leaving directory `/build/tbm/openmovieeditor-0.0.20080102/src'

--- src/JackPlaybackCore.cxx~	2008-11-09 08:34:37.000000000 +0000
+++ src/JackPlaybackCore.cxx	2008-11-09 08:34:50.000000000 +0000
@@ -39,6 +39,7 @@
 #include "ErrorDialog/IErrorHandler.H"
 #include <iostream>
 
+#include <cstdio>
 #include <cstdlib>
 #include <cstring>
 
--- src/WaveForm.H~	2008-11-09 08:37:42.000000000 +0000
+++ src/WaveForm.H	2008-11-09 08:37:55.000000000 +0000
@@ -20,6 +20,8 @@
 #include "global_includes.H"
 #include "IdleHandler.H"
 
+#include <stdint.h>
+
 namespace nle
 {
 
--- src/AddCommand.cxx~	2008-11-09 08:38:29.000000000 +0000
+++ src/AddCommand.cxx	2008-11-09 08:38:40.000000000 +0000
@@ -23,6 +23,8 @@
 #include "Timeline.H"
 #include "VideoTrack.H"
 
+#include <cstdio>
+
 namespace nle
 {
 
--- src/MediaBrowser.cxx~	2008-11-09 08:39:04.000000000 +0000
+++ src/MediaBrowser.cxx	2008-11-09 08:39:13.000000000 +0000
@@ -19,6 +19,7 @@
 
 #include <iostream>
 #include <cstring>
+#include <cstdio>
 #include <cstdlib>
 
 #include <FL/Fl.H>
--- src/DiskCache.H~	2008-11-09 08:40:51.000000000 +0000
+++ src/DiskCache.H	2008-11-09 08:40:58.000000000 +0000
@@ -20,6 +20,8 @@
 #ifndef _DISK_CACHE_H_
 #define _DISK_CACHE_H_
 
+#include <stdint.h>
+
 #include "global_includes.H"
 namespace nle
 {
--- src/fl_font_browser.cpp~	2008-11-09 08:41:25.000000000 +0000
+++ src/fl_font_browser.cpp	2008-11-09 08:41:32.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: