Bug#504949: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Sat Nov 8 06:49:37 UTC 2008
Package: synfig
Version: 0.61.08-3
User: debian-gcc at 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 synfig_0.61.08-3 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I../.. -I../../src -I../../libltdl -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -DSYNFIG_NO_DEPRECATED -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc/synfig\" -DNDEBUG -g -O2 -W -Wall -MT libsynfig_la-time.lo -MD -MP -MF .deps/libsynfig_la-time.Tpo -c time.cpp -fPIC -DPIC -o .libs/libsynfig_la-time.o
> time.cpp: In constructor 'synfig::Time::Time(const synfig::String&, float)':
> time.cpp:105: error: 'sscanf' was not declared in this scope
> make[4]: *** [libsynfig_la-time.lo] Error 1
> make[4]: Leaving directory `/build/tbm/synfig-0.61.08/src/synfig'
--- src/synfig/time.cpp~ 2008-11-08 06:35:14.000000000 +0000
+++ src/synfig/time.cpp 2008-11-08 06:35:26.000000000 +0000
@@ -35,6 +35,7 @@
#include <ETL/misc>
#include "general.h"
#include <cmath>
+#include <cstdio>
#include <cassert>
#include <algorithm>
#include <ctype.h>
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-synfig-devel
mailing list