I think I found the root cause of this issue. 0003-Link-against-lua-lpeg.patch tries to fix a linking error related to the function named luaopen_lpeg(), making nmap use the luaopen_lpeg() in lua-lpeg instead of the local function declared in lpeg.c (which are slightly different). The original linking issue was addressed upstream[1] by setting the function as extern[2] somewhere between 7.0.1 and 7.10, and that's why newer releases do not see this bug. I have a PPA[3] prepared to start testing, replacing 0003-Link-against-lua-lpeg.patch with the upstream fix.
I think I found the root cause of this issue. 0003-Link- against- lua-lpeg. patch tries to fix a linking error related to the function named luaopen_lpeg(), making nmap use the luaopen_lpeg() in lua-lpeg instead of the local function declared in lpeg.c (which are slightly different). The original linking issue was addressed upstream[1] by setting the function as extern[2] somewhere between 7.0.1 and 7.10, and that's why newer releases do not see this bug. I have a PPA[3] prepared to start testing, replacing 0003-Link- against- lua-lpeg. patch with the upstream fix.
[1] https:/ /github. com/nmap/ nmap/issues/ 237 /github. com/nmap/ nmap/commit/ 9bcc6c09e22e3a3 2e8f89a13afee5a 9a77b92b62 /launchpad. net/~vtapia/ +archive/ ubuntu/ sf238253
[2] https:/
[3] https:/