On Mon, Aug 8, 2016 at 1:50 PM, Willy Tarreau <w...@1wt.eu> wrote: > On Mon, Aug 08, 2016 at 01:28:07PM +0200, Baptiste wrote: > > Here you go: > > # fgrep -r tcp_info /usr/include/* > > /usr/include/linux/tcp.h:struct tcp_info { > > /usr/include/netinet/tcp.h:struct tcp_info > > It's strange that your netinet/tcp.h has it and that it doesn't work, maybe > there's some ifdef around. > > yes :) Just found it! There is a #ifdef _GNU_SOURCE a few lines above and nothing is indented...
> > It seems to be exactly the same that on my ubuntu 14.04. > > alpine linux natively use musl, an alternative libc library. I tried to > > install a "real" libc instead, with the same error as above (that said, I > > wonder how much my libc library was used or not, I'm investigating in > that > > direction). > > Interesting. Thus there's something I don't understand well, you don't > build > natively then, do you ? Aren't you using a cross-compiler instead ? If so, > that may be where we need to dig. > > I first build natively, then I tried using libc (since I don't know well musl). > > Note that I don't have any problem compiling HAProxy 1.6-latest on the > same > > OS. > > I'm not surprized, the tcp_info was added in 1.7 a few weeks ago :-) > > Please tell me if the attached patch fixes the issue. > > Thanks, > Willy > It won't, I'm sending you a patch soon to define _GNU_SOURCE in proto_tcp.c :) (which seems to "fix" the problem, also I don't know if this is the right way to go) Baptiste