Ticket #1102 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

Missing dependency on containers package

Reported by: guest Owned by: axel
Priority: normal Milestone:
Component: general (Gtk+, Glib) Version: 0.9.12
Keywords: SPLIT_BASE Cc: as49@…


Building programs leads to a link error due to missing dependency on the containers package.

Gtk2hs version is that comes with fedora8

GHC version: 6.8.1

Symptom: loading a Gtk2Hs file on the command line (without specifying a package) leads to:

Loading package base ... linking ... done. [1 of 1] Compiling Main ( main.hs, interpreted )

Ok, modules loaded: Main.

*Main> main

Loading package mtl- ... linking ... done. Loading package glib- ... linking ... done. Loading package cairo- ... linking ... done. Loading package gtk- ... linking ... <interactive>: /usr/lib/ghc/6.8.1/gtk2hs/HSgtk.o: unknown symbol 'containerszm0zi1zi0zi0_DataziSequence_zgzl_info' ghc-6.8.1: unable to load package 'gtk-'

It works if you add -package containers to the command line.

What happens is that ./configure sets @GTK_SPLITBASE_DEPENDS@ for ghc >=6.8 such that 'containers-VERSION' is in this variable. On the target system containers. is present, which should probably read containers- Yet, this library does not find its way into the dependency field of gtk2hs' package description: on the target system:

ghc-pkg field gtk- depends depends: base- mtl- glib- cairo-

I guess we should check if containers and its version detected correctly during ./configure.

Change History

Changed 9 years ago by anonymous

  • cc as49@… added

Changed 9 years ago by axel

  • owner changed from somebody to axel

Changed 9 years ago by anonymous

I can confirm this bug and the fix: adding -package containers to the GHCi command line in Fedora 8 package: ghc682-gtk2hs-0,9.12.1-6.fc8.i386 with the ghc682-6.8.2-8.fc8.i386 GHC package.

Changed 8 years ago by pgavin

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

Probably fixed now, marking as fixed.

Note: See TracTickets for help on using tickets.