Skip to content

bit32 library on luarocks.org is outdated #73

@tobil4sk

Description

@tobil4sk

Running in a mingw environment:

$ luarocks install bit32
Installing https://luarocks.org/bit32-5.3.5.1-1.src.rock


bit32 5.3.5.1-1 depends on lua >= 5.1, < 5.5 (5.1-1 provided by VM: success)
C:\mingw64\bin\gcc.exe -O2 -c -o lbitlib.o -IC:\Users\runneradmin\haxe-ci\lua_env\lua-l5.1\include lbitlib.c -DLUA_COMPAT_BITLIB -Ic-api
In file included from c-api/compat-5.3.h:419,
                 from lprefix.h:46,
                 from lbitlib.c:10:
c-api/compat-5.3.c: In function 'compat53_strerror':
c-api/compat-5.3.c:60:9: error: implicit declaration of function 'strerror_r'; did you mean 'strerror_s'? [-Wimplicit-function-declaration]
   60 |     if (strerror_r(en, buff, sz)) {
      |         ^~~~~~~~~~
      |         strerror_s

Error: Build error: Failed compiling object lbitlib.o

This is already fixed in the git repo: #41, so workaround is to install from there:

luarocks install https://raw.githubusercontent.com/lunarmodules/lua-compat-5.3/refs/heads/master/rockspecs/bit32-scm-1.rockspec

Please could a new version be released?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions