Ticket #1189 (closed defect: fixed)
gtk package fails to build on debian stable
|Reported by:||guest||Owned by:||somebody|
|Component:||general (Gtk+, Glib)||Version:||0.11.0|
cabal install gtk installs a couple of packages fine (glib, gio, cairo, pango), then fails with the following error message:
Configuring gtk-0.11.0... Preprocessing library gtk-0.11.0... gtk2hsC2hs: Errors during expansion of binding hooks: ./Graphics/UI/Gtk/Builder.chs:165: (column 18) [ERROR] >>> Unknown identifier! Cannot find a definition for `builder_add_objects_from_file' in the header file. ./Graphics/UI/Gtk/Builder.chs:186: (column 18) [ERROR] >>> Unknown identifier! Cannot find a definition for `builder_add_objects_from_string' in the header file.
I checked the GTK+ API doc, and these two functions only appear in version >= 2.14. Debian stable (lenny) still has libgtk version 2.12
http://haskell.org/gtk2hs/download/ claims that building gtk2hs requires GTK+ >= 2.8, which apparently is not the whole truth.
The source code of the offending file (Builder.chs) says "All functions in this module are only available in Gtk 2.12 or higher", which is also not quite true.