This may be a little off-topic, but if someone could help me, I&#39;d be grateful.<div>I am trying to get to a working gtk2hs environment in MacOSX Snow Leopard<br><div><br></div><div>I have a Macbook Pro 2.1 with Snow Leopard. </div>
<div>While I had Leopard, I had the Haskell Platform installed, and it worked fine.</div><div><br></div><div>I also had the MacPorts edition of gtk, and compiled gtk2hs by hand.</div><div><br></div><div>After I got Snow Leopard, I installed the Haskell Platform. I have made the necessary changes to make it compile (flags to ghc), and it compiles normal programs.</div>
<div><br></div><div>I installed the standalone version of the GTK+ platform, and then tried to compile gtk2hs from /gtk2hs .</div><div><br></div><div>./configure works, but make results in this:</div><div><br></div><div><div>
adhmac:gtk2hs arne$ make</div><div>make  all-am</div><div>rm -rf gtk/Graphics/UI/Gtk/Types.o gtk/Graphics/UI/Gtk/Types_split/; mkdir -p gtk/Graphics/UI/Gtk/Types_split</div><div>/usr/bin/ghc +RTS -RTS -split-objs -c gtk/Graphics/UI/Gtk/Types.hs -o gtk/Graphics/UI/Gtk/Types.o -O -XForeignFunctionInterface -fglasgow-exts -igtk -package-conf package.conf.inplace -hide-all-packages -ignore-package gtk -package base-4.1.0.0 -package mtl-1.1.0.2 -package containers-0.2.0.1 -package array-0.2.0.0 -package glib-0.10.1 -package cairo-0.10.1 -package-name gtk-0.10.1 &#39;-#include&lt;gtk/hsgtk.h&gt;&#39; -I/Library/Frameworks/GLib.framework/Headers -I/Library/Frameworks/Cairo.framework/Headers -I/Library/Frameworks/Gtk.framework/Headers -I.</div>
<div><br></div><div>/var/folders/G8/G8LY9MSBEGuyatB+JjSWq++++TI/-Tmp-/ghc4162_0/ghc4162_0.split__2870.s:35:0:</div><div>    invalid character &#39;_&#39; in mnemonic</div><div><br></div><div>/var/folders/G8/G8LY9MSBEGuyatB+JjSWq++++TI/-Tmp-/ghc4162_0/ghc4162_0.split__2870.s:953:0:</div>
<div>    FATAL:Symbol L_gtk_misc_get_type$stub already defined.</div><div>make[1]: *** [gtk/Graphics/UI/Gtk/Types.o] Error 1</div><div>make: *** [all] Error 2</div><div><br></div><div>I also have gtk installed via macports recently, but I am not sure whether this makes a difference.</div>
<div><br></div><div>I don&#39;t think there is any point currently in trying to go MacPorts all the way, and install ghc+gtk2hs via MacPorts.</div><div><br></div><div>Does anyone have a recipe for getting ghc + gtk2hs + gtk working on MacOSX Snow Leopard?</div>
<div><br></div><div>Best regards, </div><div>Arne D Halvorsen</div><div><br></div></div><div><br></div></div>