Ticket #1209 (new defect)

Opened 3 years ago

Last modified 3 years ago

gtk-0.12.0 fails to install on my setup

Reported by: guest Owned by: somebody
Priority: blocker Milestone: 0.12.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc: d.kahlenberg@…, gtk2hs-bug-tracker@…

Description

I applied this workaround manually to the other dependees to compile either, but then saw those

System\GIO\Volumes\Drive.chs:59:5:
    Not in scope: type constructor or class `DriveStartStopType'

System\GIO\Volumes\Drive.chs:60:5:
    Not in scope: type constructor or class `DriveStartFlags'

errors when building package gio.

Attachments

build-gio-0.12.0-ghc-7.0.2-mingw.log (128.5 kB) - added by guest 3 years ago.
gio.log
ci.log (34.3 kB) - added by guest 3 years ago.
cabal-install-gtk.log

Change History

Changed 3 years ago by guest

gio.log

Changed 3 years ago by guest

cabal-install-gtk.log

in reply to: ↑ description   Changed 3 years ago by guest

  • cc gtk2hs-bug-tracker@… added

I've got the same problem. I fixed the problem and attached the patch below.

--- old-gtk2hs/gio/System/GIO/Volumes/Drive.chs	2011-06-10 05:35:57.000000000 +0900
+++ new-gtk2hs/gio/System/GIO/Volumes/Drive.chs	2011-06-10 05:35:58.000000000 +0900
@@ -56,8 +56,10 @@
     DriveClass,
 
 -- * Enums,
+#if GLIB_CHECK_VERSION(2,22,0)
     DriveStartStopType (..),
     DriveStartFlags (..),
+#endif
 
 -- * Methods
     driveGetName,

Both DriveStartStopType and DriveStartFlags are defined in System/GIO/Enums.chs, if the version of the GLib library is same as or newer than 2.22.0

Note: See TracTickets for help on using tickets.