<div dir="ltr">Thanks, Adam.<div><br></div><div>I came to the same conclusion and I just put up a patch for review to handle this a moment ago on llvm-commits.<div><br></div></div><div>The patch might need to be tweaked to coordinate on the variable name change that occurred due to the changed configure mechanism. I'm looking at that now.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 3:56 PM, Adam Strzelecki <span dir="ltr"><<a href="mailto:ono@java.pl" target="_blank">ono@java.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Huh, I have just hit this issue today’s morning.<br>
<div class="im"><br>
> Maybe a machine change? Let's take this off list for now and we can update when we figure it out. I can't duplicate it.<br>
<br>
</div>This issue happens only if libedit-dev is installed on Ubuntu 12.04. This leads configure to false detect HAVE_ARC4RANDOM, because libedit is being tested before arc4random, and libedit.so depends on libbsd.so. This makes arc4random check succeed, even arc4random is not declared anywhere, as plain C just assumes function existence (no args returning int), then it links with -ledit which succeeds.<br>
<br>
So I am seeing two possible solutions:<br>
<br>
(1) either move libedit check after arc4random, so arc4random is checked without -ledit<br>
(2) make sure arc4random check if function is actually declared, and fail instead assuming it exists and returns int<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Adam</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>