<div dir="ltr">ghci in 7.6 and older uses its own special linker.This is responsible to many many linking bugs in ghci<div><br></div><div style>try GHC head (and soon ghc 7.8) and see if the problem goes away. GHCi in HEAD / 7.7 uses the system linker. </div>

<div style>Otherwise please please please file a ticket on GHC Trac so it can be fixed asap.</div><div style><br></div><div style>NB: there may or may not be problems with one of the *BSD dynamic linkers, I don't recall. But if you hit troubles with GHC head, please report them and the ghc devs will work with you to figure out a fix.</div>

<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 1:43 AM, Alexander Pakhomov <span dir="ltr"><<a href="mailto:ker0sin@yandex.ru" target="_blank">ker0sin@yandex.ru</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. Trying to runhaskell following:<br>
<br>
import Graphics.UI.Gtk<br>
<br>
main = print "OK"<br>
<br>
I got<br>
GHCi runtime linker: fatal error: I found a duplicate definition for symbol<br>
   locale_charset<br>
whilst processing object file<br>
   /usr/local/lib/libintl.a<br>
This could be caused by:<br>
   * Loading two different object files which export the same symbol<br>
   * Specifying the same object file twice on the GHCi command line<br>
   * An incorrect `package.conf' entry, causing some object to be<br>
     loaded twice.<br>
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.<br>
<br>
ghc works fine and creates working executable. In ghci "import Graphics.UI.Gtk" works too.<br>
<br>
What is the difference between runhaskell, ghci interactive and ghc linkers?<br>
ghc 7.6.3 running on OpenBSD. It is built from ports system with default patches. I don't see any patch that touches GHCi linker.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>