> On 22 окт. 2015 г., at 11:45, Willy Tarreau <w...@1wt.eu> wrote: > > On Thu, Oct 22, 2015 at 11:31:01AM +0300, Dmitry Sivachenko wrote: >> >>> On 22 ??????. 2015 ??., at 10:44, Willy Tarreau <w...@1wt.eu> wrote: >>> >>> Hello Dmitry, >>> >>> On Thu, Oct 22, 2015 at 10:40:45AM +0300, Dmitry Sivachenko wrote: >>>> 1.6.1 still does not build with OpenSSL < 1.0: >>>> >>>> src/ssl_sock.o: In function `ssl_sock_do_create_cert': >>>> ssl_sock.c:(.text+0x295b): undefined reference to >>>> `EVP_PKEY_get_default_digest_nid' >>>> Makefile:760: recipe for target 'haproxy' failed >>>> >>>> So is it intended behavior? >>> >>> It's neither intended nor not intended, it's just that I was waiting for >>> Marcus' confirmation that the patch fixed the issue for him, and forgot >>> about this patch while waiting for a response. Can you confirm on your >>> side that the patch fixes the issue for you ? If so I'm willing to merge >>> the fix immediately. I prefer to be careful because on my side openssl >>> 0.9.8 doesn't break so I want to be sure that there isn't a second level >>> of breakage after this one. >>> >> >> >> Aha, no problem, I thought it is supposed to be fixed before 1.6.1. >> >> I tried a patch in this thread >> (0002-BUILD-ssl-fix-build-error-introduced-in-commit-7969a.patch). >> >> It does fix the build error (FreeBSD-9, OpenSSL 0.9.8q). Though there is >> the following warning: >> >> src/ssl_sock.c: In function 'ssl_sock_load_cert_chain_file': >> src/ssl_sock.c:1623: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> src/ssl_sock.c:1636: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> src/ssl_sock.c: In function 'ssl_sock_srv_verifycbk': >> src/ssl_sock.c:2264: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> src/ssl_sock.c:2278: warning: dereferencing type-punned pointer will break >> strict-aliasing rules > > Do you have other patches applied ? Here these line numbers only match > closing braces so I have no idea what they correspond to :-/ >
No, this is haproxy-1.6.1 tarball + this patch applied. BTW, by default FreeBSD uses -fno-strict-aliasing, so this warning was here before most likely, I just did not see it, I suppose it is not a problem. Also: src/stick_table.c: In function 'smp_to_stkey': src/stick_table.c:490: warning: dereferencing type-punned pointer will break strict-aliasing rules