That worked beautifully. Thanks. <br>
<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 7:00 PM, Blake Rain <span dir="ltr">&lt;<a href="mailto:blake.rain@gmail.com">blake.rain@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I too had a the same problem with duplicate symbols from libHSghc, and<br>
it seems to be a problem with yesod&#39;s dynamic server (or perhaps with<br>
Hint).<br>
<br>
My solution was first to remove the dependency on wai-handler-devel in<br>
the yesod package by using the &#39;production&#39; flag, like so:<br>
<br>
$ cabal install yesod -fproduction<br>
<br>
For running a dynamic server, the wai-handler-devel package installs an<br>
executable called wai-handler-devel. You can use this rather than the<br>
&quot;runhaskell devel-server.hs&quot; by providing the port, module and function<br>
from your &quot;devel-server.hs&quot; file as arguments:<br>
<br>
$ wai-handler-devel 3000 MySiteModule withMySite<br>
<br>
The dynamic recompilation of wai-handler-devel is very useful, and I<br>
hope this helps.<br>
<div><div></div><div class="h5"><br>
On Wed, 2011-03-23 at 14:22 -0400, Rick Richardson wrote:<br>
&gt; I removed all but network-2.2.1.0 and rebuilt everything, still no<br>
&gt; luck. But I&#39;m sure you have set me on the right track, I will<br>
&gt; experiment with other permutations.<br>
&gt;<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 23, 2011 at 1:27 PM, Anton Cheshkov &lt;<a href="mailto:acheshkov@gmail.com">acheshkov@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         Hi Rick! I got the the same error day ago on my server.<br>
&gt;         Probably it happens because you have two network packages in<br>
&gt;         you system.<br>
&gt;<br>
&gt;         Try to compile all your packages  only on  network-2.2.1.10,<br>
&gt;         and delete package network-2.3<br>
&gt;<br>
&gt;<br>
&gt;         Hope it helps you<br>
&gt;<br>
&gt;<br>
&gt;         2011/3/23 Rick Richardson &lt;<a href="mailto:rick.richardson@gmail.com">rick.richardson@gmail.com</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 I just installed the generic 7.0.2 binary on Ubuntu<br>
&gt;                  on both 32 bit and 64 bit machines.  Then I rm&#39;d<br>
&gt;                   .ghc and .cabal  then fetched the current haskell<br>
&gt;                 platform. Built and installed.<br>
&gt;<br>
&gt;<br>
&gt;                 After cabal installing all of the dependencies cabal<br>
&gt;                 said were required for yesod,  I run yesod.. the<br>
&gt;                 script creates the project.<br>
&gt;<br>
&gt;<br>
&gt;                 When executing runhaskell devel-server.hs  I get this<br>
&gt;                 message<br>
&gt;<br>
&gt;<br>
&gt;                 GHCi runtime linker: fatal error: I found a duplicate<br>
&gt;                 definition for symbol<br>
&gt;                    ghczm7zi0zi2_AsmCodeGen_zdfMonadCmmOptM2_closure<br>
&gt;                 whilst processing object file<br>
&gt;<br>
&gt;                  /usr/local/lib/ghc-7.0.2/ghc-7.0.2/libHSghc-7.0.2.a<br>
&gt;                 This could be caused by:<br>
&gt;                    * Loading two different object files which export<br>
&gt;                 the same symbol<br>
&gt;                    * Specifying the same object file twice on the GHCi<br>
&gt;                 command line<br>
&gt;                    * An incorrect `package.conf&#39; entry, causing some<br>
&gt;                 object to be<br>
&gt;                      loaded twice.<br>
&gt;                 GHCi cannot safely continue in this situation.<br>
&gt;                  Exiting now.  Sorry.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 it&#39;s the same on both 32 and 64 bit.<br>
&gt;<br>
&gt;<br>
&gt;                 Any ideas?   I am going to try to build 7.0.2 from<br>
&gt;                 source to see if that fixes it.<br>
&gt;<br>
&gt;<br>
&gt;                 _______________________________________________<br>
&gt;                 web-devel mailing list<br>
&gt;                 <a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
&gt;                 <a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Best regards,<br>
&gt;         Cheshkov Anton<br>
&gt;         Phone: <a href="tel:%2B7%20909%20005%2018%2082">+7 909 005 18 82</a><br>
&gt;         Skype: cheshkov_anton<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; web-devel mailing list<br>
&gt; <a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
<br>
<br>
</div></div></blockquote></div><br>