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 <jefferson.r.heard@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@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
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 <jeff@nokrev.com> 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