On Tue, Mar 17, 2015 at 1:51 AM, Joe Williams <[email protected]> wrote: > List, > > I seem to be running into issues building haproxy with lua support using > HEAD. Any thoughts? > > joe@ubuntu:~/haproxy$ make DEBUG=-ggdb CFLAGS=-O0 TARGET=linux2628 > USE_LUA=yes LUA_LIB=/opt/lua53/lib/ LUA_INC=/opt/lua53/include/ LDFLAGS=-ldl > <snip> > /opt/lua53/lib//liblua.a(loadlib.o): In function `lookforfunc': > loadlib.c:(.text+0x502): undefined reference to `dlsym' > loadlib.c:(.text+0x549): undefined reference to `dlerror' > loadlib.c:(.text+0x576): undefined reference to `dlopen' > loadlib.c:(.text+0x5ed): undefined reference to `dlerror' > /opt/lua53/lib//liblua.a(loadlib.o): In function `gctm': > loadlib.c:(.text+0x781): undefined reference to `dlclose' > collect2: error: ld returned 1 exit status > make: *** [haproxy] Error 1 > > joe@ubuntu:~/haproxy$ /opt/lua53/bin/lua -v > Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio > > Thanks! > > -Joe
Hi Joe, You're missing an "LDFLAGS=-ldl". More information on this blog page, including some quickstart code example: http://blog.haproxy.com/2015/03/12/haproxy-1-6-dev1-and-lua/ Baptiste

