Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luasql-mysql does not work under 5.4 (+luatex)? #161

Open
vomus opened this issue Mar 12, 2024 · 0 comments
Open

luasql-mysql does not work under 5.4 (+luatex)? #161

vomus opened this issue Mar 12, 2024 · 0 comments

Comments

@vomus
Copy link

vomus commented Mar 12, 2024

Hi!
I just installed luasql-mysql through luarocks-5.4. Using it under luatex (texlive2022) generates an error:
error loading module 'luasql.mysql' from file '/usr/lib64/lua/5.4/luasql/mysql.
so':

        /usr/lib64/lua/5.4/luasql/mysql.so: undefined symbol: lua_newuserdatauv
stack traceback:
        [C]: in ?
        [C]: in local 'f'
        ...e/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:398: in local 'loo
kup'
        ...e/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:429: in function <
...e/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:419>
        [C]: in function 'require'
        dbd3.lua:6: in main chunk
        [\directlua]:1: in main chunk.
l.48     }

Executing the same code from lua-5.4 command line works fine. But looking at the modules in mysql.so truly gives quite a few unknown symbols:

                 U luaL_error
                 U luaL_newmetatable
                 U luaL_optinteger
                 U luaL_optlstring
                 U luaL_ref
                 U luaL_setfuncs
                 U luaL_unref
                 U lua_newuserdatauv
0000000000003cf0 T luaopen_luasql_mysql

What might be the mistake I make? It worked perfectly under Lua-5.3 with texlive2021...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant