<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" color="#000000">Hi everyone,<br><br>Thanks for the variety of suggestions - I resolved this by uninstalling the Haskell-platform DMG based package and using the one from macports. I then, as mentioned elsewhere, manually modified my hsc2hs shell script to ensure the correct code was generated.<br><br>However, I see that the cabal install for version 11 contains no Glade modules. I saw there was a patch posted by Andy Stewart for it a while back, is there any ETA for it for the public?<br><br>I am, (so sad for me:) a bit hooped as I was going to give a demo of a program in a couple of days, but my code depends heavily on Glade and I can't seem to get the prior version of Gtk2HS (0.10.1) to compile at all. &nbsp;(Issues with x86_64 vs i386 - but I have tried for three hours to get the magic combination of modifications to the ghc script, the hsc2hs script and environment variable to no avail).<br><br>If anyone has had luck on getting the 10.1 version to build (on a brand new install of OSx v10.6.3, macports Haskell Platform meaning GHC is 6.10.4, I'd love to hear how you did it.<br><br>(I did check out the variety of tickets related to this, especially <a href="http://hackage.haskell.org/trac/ghc/ticket/3400">http://hackage.haskell.org/trac/ghc/ticket/3400</a> and the recent conversations on this list between Chris K. and Axel.<br></font></div><blockquote type="cite"><div><br><br>On Jun 11,2010, at 2:40 AM, Axel Simon wrote:<br><br><blockquote type="cite">Hi Brett,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 11.06.2010, at 04:53, Brett Giles wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi Folks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I seem to have Gtk2HS 0.11 installed, but not quite working. Interestingly, I can run a demo, such as the hello/World.hs example, directly in ghci. However, when I try to do a ghc --make on any code containing gtk2hs I get a link error like this:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Undefined symbols:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">"_iconv_close", referenced from:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;_hs_iconv_close in libHSbase-4.2.0.0.a(iconv.o)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;(maybe you meant: _hs_iconv_close)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">"_iconv", referenced from:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;_hs_iconv in libHSbase-4.2.0.0.a(iconv.o)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;(maybe you meant: _hs_iconv_open, _hs_iconv , _hs_iconv_close )<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">"_iconv_open", referenced from:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;_hs_iconv_open in libHSbase-4.2.0.0.a(iconv.o)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;(maybe you meant: _hs_iconv_open)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ld: symbol(s) not found<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I do have libiconv installed as a universal library via macports. gtk, glade etc., are also universal installed via macports.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">I downloaded the OSX Haskell Platform package and am running ghc 6.12.1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The iconv issue is usually that you also have a libiconv that Apple ships. The platform ghc probably links against that while macports (and thus Gtk+) uses its own. I have no idea who's to blame here but I guess you should be trying to change your LD_LIBRARY_PATH or your DYLD_LIBRARY_PATH to /opt/sw since that contains the more complete version.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">Axel<br></blockquote></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Brett Giles</div><div>Grad Student, Formal Methods, Category Theory,</div><div>University of Calgary</div><div><a href="mailto:brett.giles@ucalgary.ca">brett.giles@ucalgary.ca</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>