Package: inkscape
Version: 0.46-3
User: [EMAIL PROTECTED]
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 inkscape_0.46-3 on em64t by sbuild/amd64 0.53
...
>       x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   
> -I/usr/include/freetype2  -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 
> -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 
> -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
>  -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int 
> __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' 
> -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int 
> __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }'   
> -DHAVE_SSL -I/usr/include/libwpg-0.1 -I/usr/include/libwpd-0.8   
> -I/usr/include/freetype2   -I/usr/include/poppler   -D_REENTRANT 
> -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 
> -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 
> -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1   
> -DPOTRACE=\"potrace\" -D_REENTRANT -pthread -I/usr/include/gdkmm-2.4 
> -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 
> -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 
> -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/pango-1.0 
> -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb 
> -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gtkmm-2.4 
> -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 
> -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0   -I../cxxtest    -Wall -g 
> -O2   -MT conn-avoid-ref.o -MD -MP -MF $depbase.Tpo -c -o conn-avoid-ref.o 
> conn-avoid-ref.cpp &&\
>       mv -f $depbase.Tpo $depbase.Po
> In file included from ./libavoid/graph.h:30,
>                  from libavoid/router.h:30,
>                  from conn-avoid-ref.cpp:20:
> ./libavoid/vertices.h:60: error: 'stdout' was not declared in this scope
> ./libavoid/vertices.h: In member function 'void Avoid::VertInfList::stats()':
> ./libavoid/vertices.h:103: error: 'printf' was not declared in this scope
> make[3]: *** [conn-avoid-ref.o] Error 1
> make[3]: Leaving directory `/build/tbm/inkscape-0.46/src'

--- src/xml/event.cpp~  2008-11-14 08:27:20.000000000 +0000
+++ src/xml/event.cpp   2008-11-14 08:27:26.000000000 +0000
@@ -14,6 +14,7 @@
  */
 
 #include <glib.h> // g_assert()
+#include <cstdio>
 
 #include "event.h"
 #include "event-fns.h"
--- src/io/inkscapestream.h~    2008-11-14 08:02:53.000000000 +0000
+++ src/io/inkscapestream.h     2008-11-14 08:03:00.000000000 +0000
@@ -12,6 +12,7 @@
  */
 
 
+#include <cstdio>
 #include <glibmm.h>
 
 namespace Inkscape
--- src/io/sys.cpp~     2008-11-14 08:04:54.000000000 +0000
+++ src/io/sys.cpp      2008-11-14 08:05:11.000000000 +0000
@@ -22,6 +22,8 @@
 #include <glibmm/ustring.h>
 #include <gtk/gtkmessagedialog.h>
 
+#include <cstdio>
+
 #include "prefs-utils.h"
 #include "sys.h"
 
--- src/dom/io/domstream.h~     2008-11-14 07:51:18.000000000 +0000
+++ src/dom/io/domstream.h      2008-11-14 07:51:28.000000000 +0000
@@ -33,6 +33,8 @@
 
 #include <dom/dom.h>
 
+#include <cstdio>
+
 namespace org
 {
 namespace w3c
--- src/dom/svg/svgtypes.h~     2008-11-14 07:53:23.000000000 +0000
+++ src/dom/svg/svgtypes.h      2008-11-14 07:53:32.000000000 +0000
@@ -47,6 +47,7 @@
 #include "dom/smil.h"
 
 
+#include <cstdio>
 #include <math.h>
 
 
--- src/dom/domimpl.cpp~        2008-11-14 07:49:10.000000000 +0000
+++ src/dom/domimpl.cpp 2008-11-14 07:49:18.000000000 +0000
@@ -30,6 +30,8 @@
 
 #include "domimpl.h"
 
+#include <cstdio>
+
 namespace org
 {
 namespace w3c
--- src/dom/xpathtoken.h~       2008-11-14 07:52:27.000000000 +0000
+++ src/dom/xpathtoken.h        2008-11-14 07:52:36.000000000 +0000
@@ -35,6 +35,7 @@
 
 #include <math.h>
 
+#include <cstdio>
 #include <vector>
 
 namespace org
--- src/libavoid/vertices.h~    2008-11-14 07:14:36.000000000 +0000
+++ src/libavoid/vertices.h     2008-11-14 07:14:41.000000000 +0000
@@ -23,6 +23,7 @@
 #ifndef AVOID_VERTICES_H
 #define AVOID_VERTICES_H
 
+#include <cstdio>
 #include <list>
 #include <set>
 #include <map>
--- src/libnr/nr-matrix-fns.cpp~        2008-11-14 08:16:43.000000000 +0000
+++ src/libnr/nr-matrix-fns.cpp 2008-11-14 08:16:48.000000000 +0000
@@ -1,5 +1,7 @@
 #include <libnr/nr-matrix-fns.h>
 
+#include <cstdio>
+
 namespace NR {
 
 Matrix elliptic_quadratic_form(Matrix const &m) {
--- src/libnr/nr-matrix.cpp~    2008-11-14 08:19:20.000000000 +0000
+++ src/libnr/nr-matrix.cpp     2008-11-14 08:19:26.000000000 +0000
@@ -11,6 +11,7 @@
  * This code is in public domain
  */
 
+#include <cstdio>
 #include <cstdlib>
 #include "nr-matrix.h"
 
--- src/2geom/svg-path-parser.h~        2008-11-14 08:06:45.000000000 +0000
+++ src/2geom/svg-path-parser.h 2008-11-14 08:06:51.000000000 +0000
@@ -32,6 +32,7 @@
 #ifndef SEEN_SVG_PATH_PARSER_H
 #define SEEN_SVG_PATH_PARSER_H
 
+#include <cstdio>
 #include <vector>
 #include <iterator>
 #include <stdexcept>
--- src/2geom/sbasis-math.cpp~  2008-11-14 08:29:42.000000000 +0000
+++ src/2geom/sbasis-math.cpp   2008-11-14 08:31:32.000000000 +0000
@@ -38,11 +38,11 @@
 //#define ZERO 1e-3
 
 
-namespace Geom {
+#include <math.h>
+#include <cstdio>
 
+namespace Geom {
 
-#include <stdio.h>
-#include <math.h>
 
 //-|x|-----------------------------------------------------------------------
 Piecewise<SBasis> abs(SBasis const &f){
--- src/streams-handles.cpp~    2008-11-14 07:41:07.000000000 +0000
+++ src/streams-handles.cpp     2008-11-14 07:41:14.000000000 +0000
@@ -12,6 +12,7 @@
 #include "streams-handles.h"
 #include "uri.h"
 
+#include <cstdio>
 #include <iostream>
 
 namespace Inkscape {
--- src/streams-zlib.cpp~       2008-11-14 07:41:24.000000000 +0000
+++ src/streams-zlib.cpp        2008-11-14 07:41:30.000000000 +0000
@@ -9,6 +9,7 @@
  * Released under GNU LGPL, read the file 'COPYING.LIB' for more information
  */
 
+#include <cstdio>
 #include <cstring>
 #include <string>
 #include <string.h>

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



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to