Created attachment 160823 [details] Fix left-shifting of negative value in varnish4's copy of libz During the exp-run in bug 201377, it was found that www/varnish4 gives errors with a recent clang 3.7.0 snapshot: http://package18.nyi.freebsd.org/data/headi386PR201377-default/2015-08-20_15h42m20s/logs/errors/varnish4-4.0.3_7.log This is because it includes its own copy of libz, which does a left-shift on a negative number, and that is undefined. I propose a similar fix as went into head very recently: https://svnweb.freebsd.org/changeset/base/287541
This is good, sorry about the delay. Were you just doing an exp run or is clang 3.7.0 going to be default somewhere? I feel like we should upstream this and let it trickle down if we have time.
I have created a pull request https://github.com/varnish/Varnish-Cache/pull/64
Varnish took it upstream. I'm not sure when their next release is but 4.1.0 is coming soon-ish https://github.com/varnish/Varnish-Cache/commit/c440f0e69325429a58fa648d07232f637573e4f6
> is clang 3.7.0 going to be default somewhere For the benefit of anyone else finding this PR, Clang 3.7.0 is now in FreeBSD-HEAD.
I'm about to bring Varnish 4.1.0 into ports which will solve this PR
(In reply to Mark Felder from comment #5) Varnish 4.1.0 was committed at revision r399688 which resolved this issue.