Ok, I had a change to configure in the diff.gz, and thus LUA_LIBS wasn't detected properly, causing the undefined symbol.
Ok, I had a change to configure in the diff.gz, and thus LUA_LIBS wasn't detected properly, causing the undefined symbol.