<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Fair enough, I suppose what I don't understand is: why is this
      only happening on FreeBSD (in Vagrant)? I am able to compile on
      Linux, Mac, and Windows! <br>
      <br>
      Cheers,<br>
      Vanessa McHale<br>
    </p>
    <div class="moz-cite-prefix">On 7/8/20 5:33 PM, Carter Schonwald
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHYVw0xmbiA=_2EpFs5=qommyvgndjqQ8A8SXeq9Q=17K5B4Og@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>
        <div dir="auto">When binding c libraries, I often prefix a
          custom/unique Descriptive sequence  for All linker visible
          symbols. </div>
      </div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">So Eg you could do vanmach_zstdlib_ as a prefix</div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Tue, Jun 30, 2020 at
            12:32 PM Jinwoo Lee <<a href="mailto:jinwoo68@gmail.com"
              moz-do-not-send="true">jinwoo68@gmail.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
            <div dir="ltr">
              <div>The error message seems to say why. The GHC RTS
                already has xxhash.c and zstd also has that file. I'm
                not sure how to resolve this though.</div>
              <div><br>
              </div>
            </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Mon, Jun 29, 2020 at
                7:44 AM Vanessa McHale <<a
                  href="mailto:vamchale@gmail.com" target="_blank"
                  moz-do-not-send="true">vamchale@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">I
                tried linking against zstd within a Vagrant simulating
                FreeBSD. I get<br>
                the following:<br>
                <br>
                ld: error: duplicate symbol: XXH64<br>
                >>> defined at xxhash.c<br>
                >>>            xxhash.o:(XXH64) in archive<br>
/home/vagrant/.cabal/store/ghc-8.8.3/zstd-0.1.2.0-c8ee757c8e8a7307779ab3cfbc91f3445940e16bbf8f9916f4c90432a0ac499e/lib/libHSzstd-0.1.2.0-c8ee757c8e8a7307779ab3cfbc91f3445940e16bbf8f9916f4c90432a0ac499e.a<br>
                >>> defined at xxhash.c:693<br>
(/wrkdirs/usr/ports/lang/ghc/work/ghc-8.8.3/rts/xxhash.c:693)<br>
                >>>            RTS.o:(.text.XXH64+0x0) in
                archive<br>
                /usr/local/lib/ghc-8.8.3/rts/libHSrts.a<br>
                <br>
                ...<br>
                <br>
                I am using GHC version 8.8.3_1 and cabal-install 3.0
                installed by 'sudo<br>
                pkg install ...'<br>
                <br>
                (I was trying to run cabal install language-dickinson)<br>
                <br>
                Cheers,<br>
                Vanessa McHale<br>
                <br>
                <br>
                _______________________________________________<br>
                Haskell-Cafe mailing list<br>
                To (un)subscribe, modify options or view archives go to:<br>
                <a
                  href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
                Only members subscribed via the mailman list are allowed
                to post.</blockquote>
            </div>
            _______________________________________________<br>
            Haskell-Cafe mailing list<br>
            To (un)subscribe, modify options or view archives go to:<br>
            <a
              href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
            Only members subscribed via the mailman list are allowed to
            post.</blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>