Bug#504893: FTBFS with GCC 4.4: missing #include
Package: rosegarden
Version: 1:1.7.1-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 rosegarden_1:1.7.1-1 on em64t by sbuild/amd64 0.53
...
> [ 21%] Building CXX object RGbuild/CMakeFiles/RosegardenCommon.dir/base/Instrument.o
> /build/tbm/rosegarden-1.7.1/src/base/Instrument.cpp: In member function 'virtual std::string Rosegarden::Buss::getName() const':
> /build/tbm/rosegarden-1.7.1/src/base/Instrument.cpp:608: error: 'sprintf' was not declared in this scope
> make[3]: *** [RGbuild/CMakeFiles/RosegardenCommon.dir/base/Instrument.o] Error 1
> make[3]: Leaving directory `/build/tbm/rosegarden-1.7.1'
--- src/base/Instrument.cpp~ 2008-11-07 19:16:15.000000000 +0000
+++ src/base/Instrument.cpp 2008-11-07 19:16:37.000000000 +0000
@@ -25,6 +25,7 @@
#include <sstream>
#endif
+#include <cstdio>
namespace Rosegarden
{
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: