[Haskell-cafe] Link errors in Gtk2Hs are more general than I thought.

Jeff Heard jefferson.r.heard at gmail.com
Sat Apr 4 16:16:43 EDT 2009


I tried to get yi to run on my Mac earlier and I get the following errors:

dyld: lazy symbol binding failed: Symbol not found:
_cairo_quartz_font_face_create_for_atsu_font_id
  Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib
  Expected in: /opt/local/lib/libcairo.2.dylib

dyld: Symbol not found: _cairo_quartz_font_face_create_for_atsu_font_id
  Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib
  Expected in: /opt/local/lib/libcairo.2.dylib

Trace/BPT trap

The commands I used to install gtk2hs (which gave me no errors were)

$ sudo port selfupdate
$ sudo port install gtk2 cairo librsvg libglade2 gtksourceview2 gtkglext
$ sudo port install gtk-chtheme gtk2-clearlooks && sudo port -k
install ghc gtk2hs hs-cabal
$ cabal install yi

Running OS X 10.5.6 (Leopard) on a MacBook 2.4 gHz Core 2 Duo

-- Jeff

---------- Forwarded message ----------
From: Jeff Heard <jefferson.r.heard at gmail.com>
Date: Sat, Apr 4, 2009 at 2:01 PM
Subject: Leksah+Gtk2Hs link error on Mac OS X Leopard
To: Haskell Cafe <haskell-cafe at haskell.org>


I tried installing leskah on OS X using the x11 version of gtk2hs
(because I use gtkglext a lot in my work, and need it, therefore the
quartz build won't work for me)  I get these errors.  Is this leksah
specific or is this a more general problem with gtk2hs?

Linking dist/build/leksah/leksah ...
ld warning: atom sorting error for
_ghczm6zi10zi1_LibFFI_Czuffizutype_closure_tbl and
_ghczm6zi10zi1_LibFFI_Czuffizucif_closure_tbl in
/opt/local/lib/ghc-6.10.1/ghc-6.10.1/libHSghc-6.10.1.a(LibFFI.o)
ld warning: atom sorting error for
_ghczm6zi10zi1_LibFFI_Czuffizutype_closure_tbl and
_ghczm6zi10zi1_LibFFI_Czuffizucif_closure_tbl in
/opt/local/lib/ghc-6.10.1/ghc-6.10.1/libHSghc-6.10.1.a(LibFFI.o)

$ ~/.cabal/bin/leksah

dyld: lazy symbol binding failed: Symbol not found:
_cairo_quartz_font_face_create_for_atsu_font_id
 Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib
 Expected in: /opt/local/lib/libcairo.2.dylib

dyld: Symbol not found: _cairo_quartz_font_face_create_for_atsu_font_id
 Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib
 Expected in: /opt/local/lib/libcairo.2.dylib

Trace/BPT trap


More information about the Haskell-Cafe mailing list