# Undefined reference to \`le\_pm\_NewWakeupSource'

**URL:** <https://forum.legato.io/t/undefined-reference-to-le-pm-newwakeupsource/4548>\
**Category:** Legato Application Framework\
**Created:** [July 9, 2019, 5:48pm UTC](https://forum.legato.io/t/undefined-reference-to-le-pm-newwakeupsource/4548 "2019-07-09T17:48:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piinst](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@piinst](https://forum.legato.io/u/piinst)\
**Post date:** [July 9, 2019, 5:48pm UTC](https://forum.legato.io/t/undefined-reference-to-le-pm-newwakeupsource/4548/1 "2019-07-09T17:48:54Z")

</div>

Also undefined reference to `le\_pm\_StayAwake’. Using Developer Studio. Pretty clearly a missing library but there does not seem to be any documentation on where it is or how to get Developer Studio to use it. Thanks for any info.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 10, 2019, 2:00am UTC](https://forum.legato.io/t/undefined-reference-to-le-pm-newwakeupsource/4548/2 "2019-07-10T02:00:47Z")

</div>

You can try to compile my app in DS.  
[gpioCf3SSDemo.rar](https://forum.legato.io/uploads/short-url/o0wwt2FJleAeCwac7vr6NcnGr21.rar) (266.2 KB)

---

<div class="post-metadata">

**Author:** ![piinst](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@piinst](https://forum.legato.io/u/piinst)\
**Post date:** [July 10, 2019, 2:02pm UTC](https://forum.legato.io/t/undefined-reference-to-le-pm-newwakeupsource/4548/3 "2019-07-10T14:02:11Z")

</div>

Hi jyijyi, thanks for the example, one item that I was missing was “api: { le\_pm.api }” in the “requires:” section of Component.cdef, adding it results in the inc-gen directory being generated and no build errors.

Now I am getting a funny error when it tries to run,

> msguart: symbol lookup error: /lib/libComponent\_msgUartComponent.so: undefined symbol: \_msgUartComponent\_le\_pm\_ServiceInstanceName

I have “bindings: { msgUart.msgUartComponent.le\_pm → powerMgr.le\_pm }” in msgUart.adef similar to your own. Don’t know where this symbol is coming from. Your gpio example runs OK.

Edit: the error above seems to have come from using “msguart” and “msgUart” inconsistently in the .adef (the lower case version is autogenned for the executable), I have made everything consistent i.e. " msguart.msgUartComponent.le\_pm → powerMgr.le\_pm" and now it runs.
