On Tue, 17 Mar 2015 14:35:20 +0300
Dmitry Sivachenko <[email protected]> wrote:

> 
> > On 17 марта 2015 г., at 13:17, Thierry FOURNIER <[email protected]> 
> > wrote:
> > 
> > On Tue, 17 Mar 2015 08:38:23 +0100
> > Baptiste <[email protected]> wrote:
> > 
> >> 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
> > 
> > 
> > Thank you,
> > 
> > In fact I build with the SSL activated, and the libssl is already
> > linked with thz dl library, so I don't sew this compilation error.
> > 
> > It is fixed, the patch is in attachment.
> 
> 
> This patch will break FreeBSD (and other OSes) which do not have libdl.

Hi,

Thanks. Willy just fix this. now -ldl is implicit on LInx and it must be
activated or deactivated explicitely on other OS.

Thierry

Reply via email to