Re: Problems compiling HAProxy with Lua Support

2015-07-24 Thread Baptiste
Hi Baptiste, can you apply the patch to current git master? Thanks! Bjoern Hi, Only Willy can do this :) I'm nothing else than a humble contributor. Baptiste

Re: Problems compiling HAProxy with Lua Support

2015-07-23 Thread Willy Tarreau
Hi Vincent, On Thu, Jul 16, 2015 at 09:04:16PM +0200, Vincent Bernat wrote: ??? 13 juillet 2015 19:58 +0200, Vincent Bernat ber...@luffy.cx : I suppose that either -ldl could be added to OPTIONS_LDFLAGS append, like this is done for -lm. Or USE_DL section could be moved towards the end.

Re: Problems compiling HAProxy with Lua Support

2015-07-23 Thread Vincent Bernat
❦ 23 juillet 2015 08:41 +0200, Willy Tarreau w...@1wt.eu : I suppose that either -ldl could be added to OPTIONS_LDFLAGS append, like this is done for -lm. Or USE_DL section could be moved towards the end. I think the first solution is better since libdl seems to be a dependency of lua.

Re: Problems compiling HAProxy with Lua Support

2015-07-23 Thread Willy Tarreau
On Thu, Jul 23, 2015 at 09:07:20AM +0200, Vincent Bernat wrote: ??? 23 juillet 2015 08:41 +0200, Willy Tarreau w...@1wt.eu : I suppose that either -ldl could be added to OPTIONS_LDFLAGS append, like this is done for -lm. Or USE_DL section could be moved towards the end. I think the

Re: Problems compiling HAProxy with Lua Support

2015-07-20 Thread bjun...@gmail.com
2015-07-16 21:04 GMT+02:00 Vincent Bernat ber...@luffy.cx: ❦ 13 juillet 2015 19:58 +0200, Vincent Bernat ber...@luffy.cx : I suppose that either -ldl could be added to OPTIONS_LDFLAGS append, like this is done for -lm. Or USE_DL section could be moved towards the end. I think the first

Re: Problems compiling HAProxy with Lua Support

2015-07-20 Thread thierry . fournier
Hi Vincent, Thank you for the patch. Just for (historical) information, a few time ago, Joe Williams had reported an issue with -ldl and lua. I fixed it, and a few time after the fix, Dmitry Sivachenko reported that the fix breaks FreeBSD compilation (because FreeBSD doesn't have the libdl). So,

Re: Problems compiling HAProxy with Lua Support

2015-07-20 Thread Vincent Bernat
❦ 21 juillet 2015 00:55 +0200, thierry.fourn...@arpalert.org : On my computer (debian), the classic command line build used on the last dev version with your patch uses the -ldl two times: make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 \ USE_LUA=1

Re: Problems compiling HAProxy with Lua Support

2015-07-16 Thread Vincent Bernat
❦ 13 juillet 2015 19:58 +0200, Vincent Bernat ber...@luffy.cx : I suppose that either -ldl could be added to OPTIONS_LDFLAGS append, like this is done for -lm. Or USE_DL section could be moved towards the end. I think the first solution is better since libdl seems to be a dependency of lua.

Problems compiling HAProxy with Lua Support

2015-07-13 Thread bjun...@gmail.com
Hi, i'm trying to build HAProxy 1.6 (git HEAD) with Lua (5.3.1) on Ubuntu 14.04. This was my first try: make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_LUA=yes LUA_LIB=/opt/lua53/lib/ LUA_INC=/opt/lua53/include/ LDFLAGS=-ldl resulting error: . . . gcc -ldl -o haproxy

Re: Problems compiling HAProxy with Lua Support

2015-07-13 Thread Vincent Bernat
❦ 13 juillet 2015 19:16 +0200, bjun...@gmail.com bjun...@gmail.com : make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_LUA=yes LUA_LIB=/opt/lua53/lib/ LUA_INC=/opt/lua53/include/ LDFLAGS=-ldl resulting error: . . . gcc -ldl -o haproxy src/haproxy.o src/sessionhash.o