[FS#3704] libubus ubus_invoke function undefined reference to

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Thu Mar 25 13:25:58 GMT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#3704 - libubus ubus_invoke function undefined reference to
User who did this - Petr Štetiar (ynezz)

----------
> I sometimes get undefined reference to ubus_invoke in libfoo.so.

Then you need to fix the libfoo.so, your toolchain/build because ubus_invoke() is declared as `static inline int` in libubus.h which means, that you should've it included in your libfoo.so already, statically, there is no such symbol in libubus.so:


$objdump -tT build/libubus.so  | grep ubus_invoke
0000000000003b4b g     F .text	00000000000000a0              ubus_invoke_async_fd
0000000000003beb g     F .text	000000000000007a              ubus_invoke_fd
0000000000003beb g    DF .text	000000000000007a  Base        ubus_invoke_fd
0000000000003b4b g    DF .text	00000000000000a0  Base        ubus_invoke_async_fd

$ objdump -tT build/examples/client  | grep ubus_invoke
0000000000000000       F *UND*	0000000000000000              ubus_invoke_async_fd
0000000000000000       F *UND*	0000000000000000              ubus_invoke_fd
0000000000000000      DF *UND*	0000000000000000              ubus_invoke_async_fd
0000000000000000      DF *UND*	0000000000000000              ubus_invoke_fd

----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3704#comment9520

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list