Link errors in Gtk2Hs are more general than I thought.

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

Jeff Heard wrote:
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
This looks like the quartz backend was disabled in the cairo C library, not like a gtk2hs problem. I don't know how ports work, but http://trac.macports.org/browser/trunk/dports/graphics/cairo/Portfile defines a 'quartz' variant that enables that backend. Another idea is to reinstall pango. HTH, Bertram

On Sun, 2009-04-05 at 07:12 +0200, Bertram Felgenhauer wrote:
This looks like the quartz backend was disabled in the cairo C library, not like a gtk2hs problem. I don't know how ports work, but
http://trac.macports.org/browser/trunk/dports/graphics/cairo/Portfile
defines a 'quartz' variant that enables that backend. Another idea is to reinstall pango.
I installed Gtk2Hs on a similar machine earlier tonight, with much success, even with Yi. I did not use MacPorts, and instead followed the instructions on the HaskellWiki [1] under "Using the GTK+ OS X Framework" (including compiling pkg-config from src). I'm not sure how having attempted the installation through MacPorts may have littered your system, unfortunately. After that installation has succeeded, compiling Yi normally and running `yi -fpango` to launch the GTK UI should work. Earlier tonight, though, I reported an issue that causes only the first line of any buffer in the Pango Yi UI to be visible [2], which makes this much less useful. Jeff Wheeler [1] http://www.haskell.org/haskellwiki/Gtk2Hs [2] http://code.google.com/p/yi-editor/issues/detail?id=261

"Jeff" == Jeff Wheeler
writes:
Jeff> I installed Gtk2Hs on a similar machine earlier tonight, Jeff> with much success, even with Yi. Jeff> I did not use MacPorts, and instead followed the Jeff> instructions on the HaskellWiki [1] under "Using the GTK+ OS Jeff> X Framework" (including compiling pkg-config from src). I'm Jeff> not sure how having attempted the installation through Jeff> MacPorts may have littered your system, unfortunately. A lot I think (I tried the Framework install once, and spent a LOT of time cleaning up, and the same when I reverted macports). -- Colin Adams Preston Lancashire
participants (4)
-
Bertram Felgenhauer
-
Colin Paul Adams
-
Jeff Heard
-
Jeff Wheeler