<div dir="ltr">On 3 October 2013 18:37, Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>></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"><div dir="ltr"><div class="im"><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_quote">
<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><a href="http://stackoverflow.com/questions/12993460/why-am-i-getting-undefined-reference-to-dladdr-even-with-ldl-for-this-simpl" target="_blank">http://stackoverflow.com/questions/12993460/why-am-i-getting-undefined-reference-to-dladdr-even-with-ldl-for-this-simpl</a><div>
<br></div><div>So i wonder what should i do and is it bug or my dev env issue?</div></div></blockquote><div></div></div></div><br></div></div><div class="im"><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">
> Did you try the solution in that question?</div>
<div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">I did not actually catch what should i do.</div><div class="gmail_extra" style="font-size:13px">
<font face="arial, sans-serif">Should i just run </font><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">`</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">llvm</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">-</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">config </span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">--</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">libs core</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">`</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px"> </span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">`</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">llvm</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">-</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">config </span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">--</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">ldflags</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;border:0px;padding:0px">`</span><span style="vertical-align:baseline;line-height:18px;font-size:14px;background-color:transparent;margin:0px;border:0px;padding:0px"><font face="arial, helvetica, sans-serif"> before "make"?</font></span></div>
</div></blockquote><div></div></div><br></div><div class="gmail_extra">No, that's what's going to get the Makefile in the right order. If you run it manually, you won't change anything.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">What's the answer is trying to say is that llvm-config is getting -ldl in the wrong order, so the line that generates the LDFLAGS should call llvm-config twice (in that order), instead of once, as it's probably doing it now.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">To make sure this is, indeed, a solution, I recommend you to look into the Makefile/Ninja rules, to see what is the generated order of libraries, and if -ldl appears before or after LLVMSupport. If you change the Make/Ninja file and it works, means the call to llvm-config is bad, and this needs to be fixed in llvm-config itself, at least for the Android case.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>