Ticket #1256 (closed defect: fixed)

Opened 3 years ago

Last modified 19 months ago

Compiling glib with GHC 7.4.1 (on ArchLinux)

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc:

Description

Recently I've worked on getting GHC 7.4.1 into the ArchLinux? distro and in doing so I've had to patch up a few of the libraries, among them is glib (0.12.2). I have not made any attempts to find out whether you've already fixed the issue. If you have then I'd encourage you to make a release that includes the fix. Otherwise I hope you find the patch useful.

Attachments

glib.source (0.7 kB) - added by guest 3 years ago.

Change History

Changed 3 years ago by guest

Changed 3 years ago by guest

This has been fixed upstream. Could we please push out a new release?

Changed 3 years ago by guest

The provided patch is not enough. glib-0.12.2/System/Glib/hsgclosure.c line 110 yields warnings when compiling and for good reason -- the types don't match.

This fixes things for me:

/* perform the call */ rts_evalIO(&cap, rts_apply(CAP (HaskellObj?)runIO_closure, call),&ret);

but I don't know how to fix this for the case when GHC_RTS_USES_CAPABILITY is not defined (and hence not CAP), so I won't provide a patch.

This bug causes gtk2hs programs that uses callbacks to segfault.

Changed 19 months ago by dmwit

  • status changed from new to closed
  • resolution set to fixed

This has been fixed for a while now, so closing. Thanks for the report, and the patch.

Note: See TracTickets for help on using tickets.