rtems dynamic loading with waf

Saeed Ehteshamifar salpha.2004 at gmail.com
Wed Dec 28 18:28:14 UTC 2016

Dear Xuelin,

> 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.
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 (
*objdump* command) or extract the symbol table (*nm* 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?

> ------------------------------
> xuelin.tian at qkmtech.com
> *From:* Saeed Ehteshamifar <salpha.2004 at gmail.com>
> *Date:* 2016-12-28 18:36
> *To:* xuelin.tian at qkmtech.com
> *CC:* users at rtems.org
> *Subject:* Re: rtems dynamic loading with waf
> Dear Xuelin,
> I share the pointers I emailed you here. Maybe it'd be useful for someone
> else too.
> Instructions on how to build a DL app via WAF can be found at:
> http://rtems-fi.blogspot.com/2016/08/dynamic-linking-in-rtems.html
> Disclaimer: An "unresolved external" error was encountered at run-time,
> after building the DL app via the above instructions.
> 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.
> 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.
> Best Regards,
> Saeed
> On Mon, Dec 26, 2016 at 7:42 AM, xuelin.tian at qkmtech.com <
> xuelin.tian at qkmtech.com> wrote:
>> Dear all,
>> Does any one use dynamic loading (i.e, dlopen ...) with waf instead of
>> makefile?
>> ------------------------------
>> xuelin.tian at qkmtech.com
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20161228/40bb03c3/attachment-0002.html>

More information about the users mailing list