difficulty getting cabal and macports to play nice

Hello, I'm not sure if theres a more specialized list for which this might be appropriate, but cabal (up to date) on snow leopard can't seem to find libraries installed by macports even if i show it where they are (which i have in fact installed the most up to date version of with the macports +universal variant) the version info thats relevant is cabal-install version 0.6.4 using version 1.6.0.3 of the Cabal library here is an example transcript sudo cabal install --extra-lib-dirs=/opt/local/lib --extra-include-dirs=/opt/local/include hieroglyph chart Resolving dependencies... cabal: cannot configure Hieroglyph-3.89. It requires cairo -any, glib -any, gtk >=0.10.0 and gtkglext -any There is no available version of cairo that satisfies -any There is no available version of glib that satisfies -any There is no available version of gtk that satisfies >=0.10.0 There is no available version of gtkglext that satisfies -any is there something obvious that i'm overlooking or is this a funny unfixed corner of cabal?

On Mar 14, 2010, at 01:53 , Carter Schonwald wrote:
sudo cabal install --extra-lib-dirs=/opt/local/lib --extra-include- dirs=/opt/local/include hieroglyph chart Resolving dependencies... cabal: cannot configure Hieroglyph-3.89. It requires cairo -any, glib -any, gtk >=0.10.0 and gtkglext -any There is no available version of cairo that satisfies -any There is no available version of glib that satisfies -any There is no available version of gtk that satisfies >=0.10.0 There is no available version of gtkglext that satisfies -any
Those are not MacPorts libraries, but Haskell libraries. And they're all provided by the Haskell gtk2hs package, which at the moment isn't Cabal-ized, so Cabal can't find them unless gtk2hs has been installed manually. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

hrm... I'm encounter a whole slew of problems getting gtk2hs to build now, might be snow leopard related glib/System/Glib.hs:13:0: Failed to load interface for `System.Glib.UTFString': Use -v to see a list of the files searched for. make: *** [glib/System/Glib.o] Error 1 is the relevant message at the end. I think i'm going to call it a night On Sun, Mar 14, 2010 at 5:25 AM, Brandon S. Allbery KF8NH < allbery@ece.cmu.edu> wrote:
On Mar 14, 2010, at 01:53 , Carter Schonwald wrote:
sudo cabal install --extra-lib-dirs=/opt/local/lib --extra-include-dirs=/opt/local/include hieroglyph chart Resolving dependencies... cabal: cannot configure Hieroglyph-3.89. It requires cairo -any, glib -any, gtk >=0.10.0 and gtkglext -any There is no available version of cairo that satisfies -any There is no available version of glib that satisfies -any There is no available version of gtk that satisfies >=0.10.0 There is no available version of gtkglext that satisfies -any
Those are not MacPorts libraries, but Haskell libraries. And they're all provided by the Haskell gtk2hs package, which at the moment isn't Cabal-ized, so Cabal can't find them unless gtk2hs has been installed manually.
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

so the solution turns out to be (for those who are macports users) to build of the macports stuff related gtk2 et al as the variants +universal (sadly parts of +quartz and +no_x11 seems to be slightly broken), to make sure that macports also has built gtksourceview2 (somehow trying to use gtksourceview would break things) and also follow the directions in http://www.haskell.org/haskellwiki/Gtk2Hs#Using_MacPorts_and_Snow_Leopard which help a bit despite being complicated... (oh and the macports directory mentioned in that link it should be /opt/local/etc/macports/variants.conf rather than /opt/local/macports/variants.conf) so that On Sun, Mar 14, 2010 at 6:46 AM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
hrm... I'm encountering a whole slew of problems getting gtk2hs to build now, might be snow leopard related
glib/System/Glib.hs:13:0: Failed to load interface for `System.Glib.UTFString': Use -v to see a list of the files searched for. make: *** [glib/System/Glib.o] Error 1
is the relevant message at the end. I think i'm going to call it a night
On Sun, Mar 14, 2010 at 5:25 AM, Brandon S. Allbery KF8NH < allbery@ece.cmu.edu> wrote:
On Mar 14, 2010, at 01:53 , Carter Schonwald wrote:
sudo cabal install --extra-lib-dirs=/opt/local/lib --extra-include-dirs=/opt/local/include hieroglyph chart Resolving dependencies... cabal: cannot configure Hieroglyph-3.89. It requires cairo -any, glib -any, gtk >=0.10.0 and gtkglext -any There is no available version of cairo that satisfies -any There is no available version of glib that satisfies -any There is no available version of gtk that satisfies >=0.10.0 There is no available version of gtkglext that satisfies -any
Those are not MacPorts libraries, but Haskell libraries. And they're all provided by the Haskell gtk2hs package, which at the moment isn't Cabal-ized, so Cabal can't find them unless gtk2hs has been installed manually.
--
electrical and computer engineering, carnegie mellon university KF8NH
with my original install info being cabal-install version 0.6.4
using version 1.6.0.3 of the Cabal library
here is an example transcript
sudo cabal install --extra-lib-dirs=/opt/local/lib --extra-include-dirs=/opt/local/include hieroglyph chart
Resolving dependencies...
cabal: cannot configure Hieroglyph-3.89. It requires cairo -any, glib
-any,
gtk >=0.10.0 and gtkglext -any
There is no available version of cairo that satisfies -any
There is no available version of glib that satisfies -any
There is no available version of gtk that satisfies >=0.10.0
There is no available version of gtkglext that satisfies -any
is there something obvious that i'm overlooking or is this a funny unfixed corner of cabal?

On Mar 14, 2010, at 06:46 , Carter Schonwald wrote:
hrm... I'm encounter a whole slew of problems getting gtk2hs to build now, might be snow leopard related
glib/System/Glib.hs:13:0: Failed to load interface for `System.Glib.UTFString': Use -v to see a list of the files searched for. make: *** [glib/System/Glib.o] Error 1
That means some earlier module failed to compile; you'll need to search back to see what went wrong with System.Glib.UTFString, and possibly further back if it also failed with that kind of error. Note that you may need to patch/wrap c2hs to make sure it uses -m32 on Snow Leopard. Other than that I can't help much, as I'm still on Leopard for compatibility reasons unrelated to ghc. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (2)
-
Brandon S. Allbery KF8NH
-
Carter Schonwald