https://bugzilla.redhat.com/show_bug.cgi?id=2440977
Bug ID: 2440977 Summary: luaL_openlibs not exported Product: Fedora Version: rawhide OS: Linux Status: NEW Component: lua Severity: medium Assignee: spotrh@gmail.com Reporter: jskarvad@redhat.com QA Contact: extras-qa@fedoraproject.org CC: 4le@live.com, drjohnson1@gmail.com, lua-packagers-sig@lists.fedoraproject.org, mhroncok@redhat.com, michel@michel-slm.name, spotrh@gmail.com Target Milestone: --- Classification: Fedora
According to the Lua 5.5 doc the function should be available: https://www.lua.org/manual/5.5/manual.html#luaL_openlibs
But it isn't exported. It's causing rrdtool Lua bindings not to build.
Reproducible: Always
Steps to Reproduce: 1. cat >test.c <<:EOF char luaL_openlibs (); int main () { return luaL_openlibs (); ; return 0; } :EOF 2. gcc -o test test.c -llua
Actual Results: /usr/bin/ld.bfd: /tmp/ccnn2IFm.o: in function `main': test.c:(.text+0x5): undefined reference to `luaL_openlibs' collect2: error: ld returned 1 exit status
Expected Results: No error
Additional Information: With Lua 5.4 it works as expected.
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
--- Comment #1 from Jaroslav Škarvada jskarvad@redhat.com --- Related rrdtool FTBFS: https://bugzilla.redhat.com/show_bug.cgi?id=2440557
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
--- Comment #2 from Jaroslav Škarvada jskarvad@redhat.com --- rrdtool configure output: checking for lua... /usr/bin/lua checking for lua >= 5.0... 5.5 found checking for lua55/lua.h... no checking for lua5.5/lua.h... no checking for lua.h... yes checking for lualib.h... yes checking for lauxlib.h... yes checking for library containing lua_call... -llua checking for library containing luaL_openlibs... no checking for library containing luaL_module... no checking for library containing luaL_openlib... no Lua headers found but not the libraries! Please reinstall the dev packages for Lua 5.5
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
Jaroslav Škarvada jskarvad@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2440557
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2440557 [Bug 2440557] rrdtool-1.9.0-10.fc45 FTBFS: File not found: /builddir/build/BUILD/rrdtool-1.9.0-build/BUILDROOT/usr/lib64/lua/5.5/*
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
Tom "spot" Callaway spotrh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #3 from Tom "spot" Callaway spotrh@gmail.com --- So, the Lua 5.5 docs are wrong: there is no luaL_openlibs() function in the code anymore. It's been replaced with luaL_openselectedlibs(), and you can see that in the lualib.h header:
#define luaL_openlibs(L) luaL_openselectedlibs(L, ~0, 0)
The rrdtool configure check needs to be updated to look for luaL_openselectedlibs(), ideally when lua 5.5+ is found, but crudely, as an optional function in the list it is already trying.
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
--- Comment #4 from Jaroslav Škarvada jskarvad@redhat.com --- Thanks, I will forward to rrdool upstream.
https://bugzilla.redhat.com/show_bug.cgi?id=2440977
Jaroslav Škarvada jskarvad@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |NOTABUG Last Closed| |2026-02-19 14:28:55
lua-packagers-sig@lists.fedoraproject.org