id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
1100,Build fails with gtk2-2.4.14  - patch included,guest,somebody,"I have a seriously old version of gtk2: 2.4.14 (from Fedora Core 2 - yes I know I should upgrade!).
Building gtk2hs-0.9.12.1 fails like this:

{{{
/usr/local/bin/ghc +RTS -RTS -split-objs -c gtk/Graphics/UI/Gtk/ModelView/CellLayout.hs -o gtk/Graphics/UI/Gtk/ModelView/CellLayout.o -O -fffi -igtk: -package-conf package.conf.inplace -hide-all-packages -ignore-package gtk -package base -package mtl-1.0 -package glib-0.9.12.1 -package-name gtk-0.9.12.1 '-#include<gtk/gtk.h>' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0
 
gtk/Graphics/UI/Gtk/ModelView/CellLayout.chs.pp:78:25:
    Not in scope: type constructor or class `CellView'
 
gtk/Graphics/UI/Gtk/ModelView/CellLayout.chs.pp:82:25:
    Not in scope: type constructor or class `IconView'
}}}

Problem seems to be CellView and IconView are only built if you have gtk2-2.6.0, but the #if in CellLayout.chs.pp only checks for gtk2-2.4.0.

The (trivial) patch attached fixes the problem for me.

Tim Goodwin (info@libra-aries-books.co.uk)",defect,closed,normal,,"general (Gtk+, Glib)",0.9.12,fixed,,
