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

Recent commit using Lua 5.2 only functions breaking 5.1 compatibility #71

Closed
nmcveity opened this issue Mar 5, 2013 · 1 comment
Closed

Comments

@nmcveity
Copy link
Contributor

nmcveity commented Mar 5, 2013

Installing the latest luaposix with luarocks yields:

$ lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require('posix')
error loading module 'posix_c' from file '/home/nick/.luarocks/lib/lua/5.1/posix_c.so':
        /home/nick/.luarocks/lib/lua/5.1/posix_c.so: undefined symbol: lua_tointegerx
stack traceback:
        [C]: ?
        [C]: in function 'require'
        /home/nick/.luarocks/share/lua/5.1/posix.lua:2: in main chunk
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?

It was correctly built against Lua 5.1, as far as I can tell. The cause seems to be a recent change (67e01c8) which added calls to lua_tointegerx and lua_len, both 5.2 only.

nmcveity added a commit to nmcveity/luaposix that referenced this issue Mar 5, 2013
@rrthomas
Copy link
Contributor

Thanks for that, and apologies for being the 5.2-centric person who committed the incompatible change.

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

No branches or pull requests

2 participants