Re: Failed to compile haproxy with lua on Solaris 10

2017-07-19 Thread Willy Tarreau
Hi! On Tue, Jul 18, 2017 at 03:17:29AM +, Akhnin Nikita wrote: > Bump! Any updates for this? So I actually implemented it in the master branch, in case you want to give it a try. "it works for me(tm)" :-) I'll stick a note to backport it into the next 1.7. Cheers, Willy

Re: Failed to compile haproxy with lua on Solaris 10

2017-07-17 Thread Willy Tarreau
On Tue, Jul 18, 2017 at 03:17:29AM +, Akhnin Nikita wrote: > Bump! Any updates for this? It looks like nobody had the time to work on this or had more important stuff to deal with for now :-/ Adding this to my very long todo-list. Willy

RE: Failed to compile haproxy with lua on Solaris 10

2017-07-17 Thread Akhnin Nikita
Bump! Any updates for this? -Original Message- From: Akhnin Nikita [mailto:n.akh...@ftc.ru] Sent: Monday, May 15, 2017 9:31 AM To: Willy Tarreau ; Benoît GARNIER Cc: haproxy@formilux.org Subject: RE: Failed to compile haproxy with lua on Solaris 10

RE: Failed to compile haproxy with lua on Solaris 10

2017-05-14 Thread Akhnin Nikita
Thanks guys! I'm looking forward to the patch -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Saturday, May 13, 2017 4:27 PM To: Benoît GARNIER Cc: Ахнин Никита Андреевич ; haproxy@formilux.org Subject: Re: Failed to compile

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Benoît GARNIER
Le 13/05/2017 à 11:27, Willy Tarreau a écrit : > On Sat, May 13, 2017 at 10:42:58AM +0200, Benoît GARNIER wrote: >> Le 13/05/2017 à 09:46, Willy Tarreau a écrit : >>> On Sat, May 13, 2017 at 08:44:06AM +0200, Benoît GARNIER wrote: Time handling is not easy. I hate to say that, but POSIX and

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Willy Tarreau
On Sat, May 13, 2017 at 10:42:58AM +0200, Benoît GARNIER wrote: > Le 13/05/2017 à 09:46, Willy Tarreau a écrit : > > On Sat, May 13, 2017 at 08:44:06AM +0200, Benoît GARNIER wrote: > >> Time handling is not easy. I hate to say that, but POSIX and glibc > >> manage to make it even harder.

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Benoît GARNIER
Le 13/05/2017 à 09:46, Willy Tarreau a écrit : > On Sat, May 13, 2017 at 08:44:06AM +0200, Benoît GARNIER wrote: >> Time handling is not easy. I hate to say that, but POSIX and glibc >> manage to make it even harder. Especially the timezone global handling >> which is not thread-safe as you

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Willy Tarreau
On Sat, May 13, 2017 at 08:44:06AM +0200, Benoît GARNIER wrote: > Time handling is not easy. I hate to say that, but POSIX and glibc > manage to make it even harder. Especially the timezone global handling > which is not thread-safe as you pinpointed. > Anyway, free conding a simple timegm() is

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Benoît GARNIER
Le 13/05/2017 à 08:09, Willy Tarreau a écrit : > Hi Benoît, > > On Sat, May 13, 2017 at 07:32:10AM +0200, Benoît GARNIER wrote: >> Le 12/05/2017 à 15:54, Willy Tarreau a écrit : >>> Hi Benoît, >>> >>> On Thu, May 04, 2017 at 08:50:33AM +0200, Benoît GARNIER wrote: >>> (...) If you do the

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-13 Thread Willy Tarreau
Hi Benoît, On Sat, May 13, 2017 at 07:32:10AM +0200, Benoît GARNIER wrote: > Le 12/05/2017 à 15:54, Willy Tarreau a écrit : > > Hi Benoît, > > > > On Thu, May 04, 2017 at 08:50:33AM +0200, Benoît GARNIER wrote: > > (...) > >> If you do the following operation : time_t => localtime() => struct tm

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-12 Thread Benoît GARNIER
Le 12/05/2017 à 15:54, Willy Tarreau a écrit : > Hi Benoît, > > On Thu, May 04, 2017 at 08:50:33AM +0200, Benoît GARNIER wrote: > (...) >> If you do the following operation : time_t => localtime() => struct tm >> => timegm() => time_t, your result will be shift by the timezone time >> offset (but

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-12 Thread Willy Tarreau
Hi Benoît, On Thu, May 04, 2017 at 08:50:33AM +0200, Benoît GARNIER wrote: (...) > If you do the following operation : time_t => localtime() => struct tm > => timegm() => time_t, your result will be shift by the timezone time > offset (but without any DST applied). > > Technically, if you live

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-04 Thread Benoît GARNIER
Le 04/05/2017 à 07:14, Willy Tarreau a écrit : > Hi, > > On Wed, May 03, 2017 at 06:17:40AM +, Akhnin Nikita wrote: >> Greetings! >> >> I have a problem with compiling haproxy with lua support against Solaris 10. >> I'm using gcc v4.9 and making it with command (don't pay attention to the >>

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-03 Thread Willy Tarreau
On Thu, May 04, 2017 at 05:48:45AM +, Akhnin Nikita wrote: > Well, the compilation was success. OK that's a good point already. > How to make sure that this change didn't > broke anything? For what functional does this part of the code correspond? We need to wait for Thierry to check, I

RE: Failed to compile haproxy with lua on Solaris 10

2017-05-03 Thread Akhnin Nikita
Well, the compilation was success. How to make sure that this change didn't broke anything? For what functional does this part of the code correspond? -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Thursday, May 4, 2017 12:15 PM Cc: haproxy@formilux.org Subject: Re:

Re: Failed to compile haproxy with lua on Solaris 10

2017-05-03 Thread Willy Tarreau
Hi, On Wed, May 03, 2017 at 06:17:40AM +, Akhnin Nikita wrote: > Greetings! > > I have a problem with compiling haproxy with lua support against Solaris 10. > I'm using gcc v4.9 and making it with command (don't pay attention to the odd > paths to the gcc and libraries): > gmake

Failed to compile haproxy with lua on Solaris 10

2017-05-03 Thread Akhnin Nikita
Greetings! I have a problem with compiling haproxy with lua support against Solaris 10. I'm using gcc v4.9 and making it with command (don't pay attention to the odd paths to the gcc and libraries): gmake CC=/pub/site/opt/bin/gcc TARGET=solaris USE_OPENSSL=1