libubus-lua: dependencies broken on 25.12.5

Open
#30,857 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, lua
Domain
backend

Research direction

The report identifies libubus-lua and shows unresolved Lua symbols when loading /usr/lib/lua/ubus.so on OpenWrt 25.12.6. Start by inspecting the ubus package and its Lua binding build and dependency metadata, then reproduce the require("ubus") failure with the reported Lua 5.1 packages. Done means the binding loads successfully from both a Lua script and collectd-mod-lua on the reported target.

Written by the indexing model from the issue text.

Description

bug
Package Name

libubus-lua

Maintainer

@nbd168

OpenWrt Version

25.12.6

OpenWrt Target/Subtarget

ipq40xx/generic

Steps to Reproduce

New image has been built using main release tagged imagebuilder containing collectd-mod-lua, which in turn pulls in libubus-lua and liblua:

# apk list -I|grep lua
collectd-mod-lua-5.12.0-r56 arm_cortex-a7_neon-vfpv4 {feeds/packages/feeds/packages/utils/collectd} (MIT GPL-2.0-or-later) [installed]
liblua5.1.5-5.1.5-r11 arm_cortex-a7_neon-vfpv4 {feeds/base/utils/lua} (MIT) [installed]
libubus-lua-2026.06.28~24864e78-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/system/ubus} (LGPL-2.1) [installed]
lua-5.1.5-r11 arm_cortex-a7_neon-vfpv4 {feeds/base/utils/lua} (MIT) [installed]
# apk list -I|grep ubus
libubus-lua-2026.06.28~24864e78-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/system/ubus} (LGPL-2.1) [installed]
libubus20251202-2026.06.28~24864e78-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/system/ubus} (LGPL-2.1) [installed]
ubus-2026.06.28~24864e78-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/system/ubus} (LGPL-2.1) [installed]
ubusd-2026.06.28~24864e78-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/system/ubus} (LGPL-2.1) [installed]
ucode-mod-ubus-2026.01.16~85922056-r2 arm_cortex-a7_neon-vfpv4 {feeds/base/utils/ucode} (ISC) [installed]
uhttpd-mod-ubus-2026.08.24~373145f7-r1 arm_cortex-a7_neon-vfpv4 {feeds/base/network/services/uhttpd} (ISC) [installed]

libubus-lua is missing symbols:

# ldd /usr/lib/lua/ubus.so
        ldd (0xb6ede000)
        libubus.so.20251202 => /lib/libubus.so.20251202 (0xb6ed1000)
        libubox.so.20260213 => /lib/libubox.so.20260213 (0xb6ec3000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6eb6000)
        libc.so => ldd (0xb6ede000)
Error relocating /usr/lib/lua/ubus.so: lua_touserdata: symbol not found
Error relocating /usr/lib/lua/ubus.so: lua_pushlightuserdata: symbol not found
Error relocating /usr/lib/lua/ubus.so: lua_isnumber: symbol not found
Error relocating /usr/lib/lua/ubus.so: luaL_ref: symbol not found
Error relocating /usr/lib/lua/ubus.so: lua_objlen: symbol not found
Error relocating /usr/lib/lua/ubus.so: lua_getfield: symbol not found
etc
Actual Behaviour

Loading ubus from inside a lua script running under collectd-mod-lua fails. Loading it from the command line also fails:

# lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio (double int32)
> local ok, ubus = pcall(require, "ubus")
>
> if not ok then
>>   print ("fail")
>> end
fail
>
Confirmation Checklist
Dominant language
Makefile
Stars
4.7k
Forks
4k
Avg merge
2d 2h
Merged PRs (30d)
251

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openwrt/packages

All issues in openwrt/packages

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.