<div dir="ltr">On Sat, Apr 27, 2013 at 11:47 AM, David Banas <span dir="ltr">&lt;<a href="mailto:capn.freako@gmail.com" target="_blank">capn.freako@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace" size="1" color="#0000ff">dbanas@dbanas-lap:~/prj/AMI-Tool$ make</font></div>
<div><font face="courier new, monospace" size="1" color="#0000ff">rm -f libami.so</font></div><div class="im"><div><font face="courier new, monospace" size="1" color="#0000ff">ghc -o libami.so -shared -dynamic -package parsec -lHSrts -lm -lffi -lrt AMIParse.o AMIModel.o ami_model.o ExmplUsrModel.o Filter.o</font></div>
</div><div><font face="courier new, monospace" size="1" color="#0000ff">dbanas@dbanas-lap:~/prj/AMI-Tool$ </font></div></blockquote><div><br></div><div>However, I&#39;m a little confused as to why the &quot;-package parsec&quot; isn&#39;t triggering the same issue, since the parsec dynamic libraries were given the same &quot;-ghc7.4.2&quot; suffix:</div>
</blockquote><div><br></div><div style>That would be because the parsec library contains the correct invocation already, but above you are telling the linker to look for libHSrts.{so,a} with the explicit -l option. You would need to change it to ```-lHSrts-ghc7.4.2```.</div>
<div style><br></div><div style>Perhaps ghc needs an option to include the correct runtime support libraries in this case; certainly, having to specify all of those in the build command is ugly and fragile even without mangled shared object names.</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>