Hey Benoit,

I got this error trying to compile inkscape on -current
(inkscape does not show up in snapshot packages currently,
likely because of this problem):

-------------------------------------------
===>  Building for inkscape-0.46p6
gmake  all-recursive
gmake[1]: Entering directory `/usr/obj/inkscape-0.46p6/inkscape-0.46'
Making all in src
gmake[2]: Entering directory `/usr/obj/inkscape-0.46p6/inkscape-0.46/src'
depbase=`echo widgets/sp-xmlview-attr-list.o | sed 
's|[^/]*$|.deps/&|;s|\.o$||'`;\
        c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/X11R6/include/freetype2 
-I/usr/X11R6/include     -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 
-I/usr/local/include/poppler -I/usr/local/include/poppler/glib 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/cairo -I/usr/X11R6/include/pixman-1 
-I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/libpng 
-I/usr/local/include/poppler -DPOTRACE=\"potrace\" 
-I/usr/local/include/gtkmm-2.4 -I/usr/local/lib/gtkmm-2.4/include 
-I/usr/local/include/giomm-2.4 -I/usr/local/lib/giomm-2.4/include 
-I/usr/local/include/gdkmm-2.4 -I/usr/local/lib/gdkmm-2.4/include 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/pangomm-1.4 -I/usr/local/include/cairomm-1.0 
-I/usr/local/include/atkmm-1.6 -I/usr/local/include/glibmm-2.4 
-I/usr/local/lib/glibmm-2.4/include -I/usr/local/include 
-I/usr/local/include/libxml2 -I/usr/local/include/sigc++-2.0 
-I/usr/local/lib/sigc++-2.0/include -I/usr/local/include/gtkspell-2.0 
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/local/include/atk-1.0 -I/usr/local/include/cairo 
-I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include/freetype2 -pthread 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/libpng -I../cxxtest  -I/usr/local/include 
-I/usr/X11R6/include  -I/usr/local/include/libpng  
-I/usr/local/include/ImageMagick  -Wall -Wformat-security -W -Wpointer-arith 
-Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 
-Wno-unused-parameter -O2 -pipe -MT widgets/sp-xmlview-attr-list.o -MD -MP -MF 
$depbase.Tpo -c -o widgets/sp-xmlview-attr-list.o 
widgets/sp-xmlview-attr-list.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:222,
                 from /usr/local/include/gtk-2.0/gtk/gtksignal.h:32,
                 from /usr/local/include/gtk-2.0/gtk/gtkclist.h:34,
                 from widgets/sp-xmlview-attr-list.h:16,
                 from widgets/sp-xmlview-attr-list.cpp:21:
/usr/local/include/gtk-2.0/gtk/gtkctree.h:110: error: 'GtkCList' is used as a 
   type, but is not defined as a type.
/usr/local/include/gtk-2.0/gtk/gtkctree.h:127: error: 'GtkCListClass' is used 
   as a type, but is not defined as a type.
/usr/local/include/gtk-2.0/gtk/gtkctree.h:149: error: 'GtkCListRow' is used as 
   a type, but is not defined as a type.
/usr/local/include/gtk-2.0/gtk/gtkctree.h:342: error: syntax error before `*' 
   token
gmake[2]: *** [widgets/sp-xmlview-attr-list.o] Error 1
gmake[2]: Leaving directory `/usr/obj/inkscape-0.46p6/inkscape-0.46/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/inkscape-0.46p6/inkscape-0.46'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/graphics/inkscape (line 2172 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/graphics/inkscape (line 1947 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
-------------------------------------------


The patch below fixes this problem for me.
Can I commit this?

Thanks,
Stefan


Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/graphics/inkscape/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    11 Jan 2009 22:59:42 -0000      1.8
+++ Makefile    24 Jan 2009 12:31:12 -0000
@@ -3,7 +3,7 @@
 COMMENT=       SVG vector drawing application
 
 DISTNAME=      inkscape-0.46
-PKGNAME=       ${DISTNAME}p6
+PKGNAME=       ${DISTNAME}p7
 CATEGORIES=    graphics
 
 MAINTAINER=    Benoit Chesneau <[email protected]>
Index: patches/patch-src_widgets_sp-xmlview-attr-list_h
===================================================================
RCS file: patches/patch-src_widgets_sp-xmlview-attr-list_h
diff -N patches/patch-src_widgets_sp-xmlview-attr-list_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_widgets_sp-xmlview-attr-list_h    24 Jan 2009 12:26:10 
-0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/widgets/sp-xmlview-attr-list.h.orig    Sat Jan 24 12:24:43 2009
++++ src/widgets/sp-xmlview-attr-list.h Sat Jan 24 12:26:02 2009
+@@ -13,7 +13,7 @@
+  */
+ 
+ #include <stdio.h>
+-#include <gtk/gtkclist.h>
++#include <gtk/gtk.h>
+ #include "../xml/repr.h"
+ 
+ #include <glib.h>

Reply via email to