]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: can't load external libraries
authorThierry Fournier <tfournier@arpalert.org>
Sat, 26 Mar 2016 12:19:21 +0000 (13:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2016 13:20:19 +0000 (15:20 +0200)
commit85dc1d3995a20af6b404764584357914a41027fb
tree0bbb4917e4566577142ec3d05acaf2a7408b3891
parent69ad4b997701b08e9de48fce4dc4ceeb7d80cb32
BUG/MINOR: lua: can't load external libraries

Libraries requires the export of embedded Lua symbols. If a library
is loaded by HAProxy or by an Lua program, an error like the following
error raises:

   [ALERT] 085/135722 (7224) : parsing [test.cfg:8] : lua runtime error: error loading module 'test' from file './test.so':
        ./test.so: undefined symbol: lua_createtable

This patch modify the Makefile, and allow exports of the Lua symbols.

This patch must be backported in version 1.6
Makefile