-
Notifications
You must be signed in to change notification settings - Fork 122
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
Won't built against Lua >= 5.2 #36
Comments
@LiamFry Lua 5.2 and etc are new languages and thus have new incompatible ABIs. They definitely need special treatment and support. |
I've experienced this, too. The latest release seems to break support for Lua 5.3. Specifying version 2.1.0 is a workaround for now. |
Just to clarify, even specifying version 2.1.0 still requires you to set the compatibility flag for Lua 5.1 (DLUA_COMPAT_5_1) when you build Lua 5.3. This is normal behavior. What is not normal is that even with the flag set version 2.1.0.6 of lua-cjson does not seem to respect the flag and fails to compile properly. |
Hi, this still seems to be the case even with #49: the last version uploaded to luarocks.org is 2.1.0.6-1, which will run in lua 5.1 but not 5.2/5.3, and downgrading to 2.1.0-1 will cause luajit-based builds to fail (see mpx#51). Is there an expected cadence for when #49 will be included in a new release and will that new release be uploaded to luarocks? |
Hello, I am a bit confused about the releases and the building/running issues on Lua > 5.1 First, it seems that Lua > 5.1 support was merged in #49. Also there is 2.1.0.8 release available. It would be also very helpful if you could add lua-cjson-2.1.0.9-1.rockspec and also new lua-cjson.rockspec (for master branch). |
Oh, BTW the release 2.1.0.8 still contains |
Closing this issue as we've had support for building in Lua 5.2+ in the master branch for over a year now. (Those versions are also now available on luarocks.org) Note: there is still no support for Lua 5.3 integers at the time of this comment. |
Will not build in Lua version >= 5.2 because lua_objlen() is used which is 5.1 only. It was renamed to lua_rawlen() starting in 5.2 I can find no statement(s) within the Cjson documentation noting this nor providing/suggesting a workaround.
Build ...
Test ...
$ lua -e "require 'cjson'"
Results
The text was updated successfully, but these errors were encountered: