Resolving dependencies... Downloading glib-0.12.1... [1 of 2] Compiling SetupWrapper ( /tmp/glib-0.12.1-2027/glib-0.12.1/SetupWrapper.hs, /tmp/glib-0.12.1-2027/glib-0.12.1/dist/setup/SetupWrapper.o ) [2 of 2] Compiling Main ( /tmp/glib-0.12.1-2027/glib-0.12.1/Setup.hs, /tmp/glib-0.12.1-2027/glib-0.12.1/dist/setup/Main.o ) Linking /tmp/glib-0.12.1-2027/glib-0.12.1/dist/setup/setup ... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring glib-0.12.1... Building glib-0.12.1... Preprocessing library glib-0.12.1... [ 1 of 21] Compiling System.Glib.Attributes ( System/Glib/Attributes.hs, dist/build/System/Glib/Attributes.o ) [ 2 of 21] Compiling System.Glib.Flags ( System/Glib/Flags.hs, dist/build/System/Glib/Flags.o ) [ 3 of 21] Compiling System.Glib.FFI ( System/Glib/FFI.hs, dist/build/System/Glib/FFI.o ) [ 4 of 21] Compiling System.Glib.Types ( dist/build/System/Glib/Types.hs, dist/build/System/Glib/Types.o ) [ 5 of 21] Compiling System.Glib.GString ( dist/build/System/Glib/GString.hs, dist/build/System/Glib/GString.o ) [ 6 of 21] Compiling System.Glib.GList ( dist/build/System/Glib/GList.hs, dist/build/System/Glib/GList.o ) [ 7 of 21] Compiling System.Glib.GType ( dist/build/System/Glib/GType.hs, dist/build/System/Glib/GType.o ) [ 8 of 21] Compiling System.Glib.GValue ( dist/build/System/Glib/GValue.hs, dist/build/System/Glib/GValue.o ) [ 9 of 21] Compiling System.Glib.GParameter ( dist/build/System/Glib/GParameter.hs, dist/build/System/Glib/GParameter.o ) [10 of 21] Compiling System.Glib.GTypeConstants ( dist/build/System/Glib/GTypeConstants.hs, dist/build/System/Glib/GTypeConstants.o ) [11 of 21] Compiling System.Glib.UTFString ( System/Glib/UTFString.hs, dist/build/System/Glib/UTFString.o ) [12 of 21] Compiling System.Glib.GObject ( dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o ) System/Glib/GObject.chs:130:1: Unacceptable result type in foreign declaration: IO (FunPtr (Ptr () -> IO ())) When checking declaration: foreign import ccall safe "wrapper" mkDestroyNotifyPtr :: IO () -> IO DestroyNotify Failed to install glib-0.12.1 cabal: Error: some packages failed to install: glib-0.12.1 failed during the building phase. The exception was: ExitFailure 1