Bug#417720: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Wed Apr 4 12:17:34 UTC 2007
Package: synfig
Version: 0.61.05-8
Usertags: ftbfs-gcc-4.3
Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). Some background of this can be found at
http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64. I hope to have i386 binaries in the archive in ~3 weeks.)
> Automatic build of synfig_0.61.05-8 on em64t by sbuild/amd64 0.53
..
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I../.. -I../.. -I../../src -I../../libltdl -I/usr/include/libxml++-2.6 -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 -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc/synfig\" -DNDEBUG -g -O1 -W -Wall -Wno-unused-parameter -fpermissive -MT libsynfig_la-gradient.lo -MD -MP -MF .deps/libsynfig_la-gradient.Tpo -c gradient.cpp -fPIC -DPIC -o .libs/libsynfig_la-gradient.o
> In file included from /usr/include/ETL/stringf:31,
> from general.h:30,
> from gradient.cpp:33:
> /usr/include/ETL/_stringf.h: In function 'std::string etl::vstrprintf(const char*, __va_list_tag*)':
> /usr/include/ETL/_stringf.h:86: error: 'free' was not declared in this scope
> gradient.cpp: In member function 'void synfig::Gradient::sort()':
> gradient.cpp:75: error: 'stable_sort' was not declared in this scope
--- src/synfig/gradient.cpp~ 2007-04-04 11:54:58.000000000 +0000
+++ src/synfig/gradient.cpp 2007-04-04 11:55:10.000000000 +0000
@@ -33,6 +33,7 @@
#include "general.h"
#include <stdexcept>
#include "exception.h"
+#include <algorithm>
#include <ETL/misc>
#endif
--- src/synfig/time.cpp~ 2007-04-04 12:00:04.000000000 +0000
+++ src/synfig/time.cpp 2007-04-04 12:00:13.000000000 +0000
@@ -35,6 +35,7 @@
#include "general.h"
#include <cmath>
#include <cassert>
+#include <algorithm>
#include <ctype.h>
#include <math.h>
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-synfig-devel
mailing list