-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Is there a chance to replace lua-xmlreader with some other xml reader since this one won't install with lua 5.1 - 5.4. Consequently, we can't load phpunit coverage results.
This is the error trace:
`-> % luarocks install lua-xmlreader --local
Installing https://luarocks.org/lua-xmlreader-0.1-2.src.rock
lua-xmlreader 0.1-2 depends on lua >= 5.1 (5.4-1 provided by VM: success)
gcc -O2 -fPIC -I/usr/include -c xmlreader.c -o xmlreader.o -I/usr/include/libxml2
xmlreader.c: In function ‘xmlreader_get_attribute’:
xmlreader.c:670:13: error: implicit declaration of function ‘luaL_checkint’; did you mean ‘luaL_checkany’? [-Wimplicit-function-declaration]
670 | int n = luaL_checkint(L, 2);
| ^~~~~~~~~~~~~
| luaL_checkany
xmlreader.c: In function ‘get_parser_option’:
xmlreader.c:1064:13: error: implicit declaration of function ‘lua_objlen’; did you mean ‘lua_len’? [-Wimplicit-function-declaration]
1064 | int len = lua_objlen(L, -1);
| ^~~~~~~~~~
| lua_len
xmlreader.c: In function ‘xmlreader_pusherror’:
xmlreader.c:1179:17: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1179 | xmlError *e = xmlGetLastError();
| ^~~~~~~~~~~~~~~
xmlreader.c: In function ‘luaopen_xmlreader’:
xmlreader.c:1275:3: error: implicit declaration of function ‘luaL_register’; did you mean ‘lua_register’? [-Wimplicit-function-declaration]
1275 | luaL_register(L, NULL, xmlreader_m);
| ^~~~~~~~~~~~~
| lua_register
Error: Build error: Failed compiling object xmlreader.o`