<div dir="ltr">Dear Xuelin,<br><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>And today, I tried to generate my loadable RAP via rtems-ld, and got an error "dlopen failed: global symbol not found: puts" when I loaded my RAP into system. Have you ever encountered such a situation? Any ideas on this? Thank you.</div></div></blockquote><div>Not this very specific "puts" not found error but I've encountered symbol not found errors in general. I usually dump the final executable file (<b>objdump</b> command) or extract the symbol table (<b>nm</b> command) and debug. Your case but, I believe, is a bit different because a standard function can't be found. Which object is calling puts, your base object or the loaded one?<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><br></div><hr style="width:210px;height:1px" size="1" color="#b5c4df" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a></div></div></span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>From:</b> <a href="mailto:salpha.2004@gmail.com" target="_blank">Saeed Ehteshamifar</a></div><div><b>Date:</b> 2016-12-28 18:36</div><div><b>To:</b> <a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a></div><div><b>CC:</b> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a></div><div><b>Subject:</b> Re: rtems dynamic loading with waf</div></div></div><div><div class="h5"><div><div class="m_4433924857053974187FoxDiv20161228203813144440"><div dir="ltr"><div><div><div><div><div><div><div>Dear Xuelin,<br><br></div>I share the pointers I emailed you here. Maybe it'd be useful for someone else too.<br></div>Instructions on how to build a DL app via WAF can be found at: <a href="http://rtems-fi.blogspot.com/2016/08/dynamic-linking-in-rtems.html" target="_blank">http://rtems-fi.blogspot.com/<wbr>2016/08/dynamic-linking-in-<wbr>rtems.html</a><br></div>Disclaimer: An "unresolved external" error was encountered at run-time, after building the DL app via the above instructions. <br></div>The link also encompasses instructions on how to build a DL app via OMK, as an alternative to WAF. The OMK DL app ran without an error.<br><br></div>It'd be nice if you, or anyone who successfully builds a DL app via WAF, share the code/instructions here because AFAIK there's no such example in the RTEMS repository/wiki.<br><br></div>Best Regards,<br></div>Saeed<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 26, 2016 at 7:42 AM, <a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a> <span dir="ltr"><<a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a>></span> wrote:<br><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>
<div><span></span>Dear all,</div><div>Does any one use dynamic loading (i.e, dlopen ...) with waf instead of makefile? </div>
<div><br></div><hr style="width:210px;height:1px" size="1" color="#b5c4df" align="left"><span class="m_4433924857053974187HOEnZb"><font color="#888888">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a></div></div></span></div>
</font></span></div><br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/users</a><br></blockquote></div><br></div>
</div></div></div></div></blockquote>
</div></blockquote></div><br></div></div>