What is freebsd version? On Sat, Jul 18, 2020, 2:32 PM Dmitry Sivachenko <trtrmi...@gmail.com> wrote:
> > > > On 17 Jul 2020, at 17:34, Christopher Faulet <cfau...@haproxy.com> > wrote: > > > > > > Hi, > > > > HAProxy 2.0.16 was released on 2020/07/17. It added 45 new commits after > version > > 2.0.15. > > Hello, > > Here are new compile problems since 2.0.14 (FreeBSD/amd64, clang version > 10.0.0) > > 1) new warnings: > > src/log.c:1692:10: warning: logical not is only applied to the left hand > side of this comparison [-Wlogical-not-parentheses] > while (HA_SPIN_TRYLOCK(LOGSRV_LOCK, &logsrv->lock) != 0) { > ^ ~~ > include/common/hathreads.h:1026:33: note: expanded from macro > 'HA_SPIN_TRYLOCK' > #define HA_SPIN_TRYLOCK(lbl, l) !pl_try_s(l) > ^ > src/log.c:1692:10: note: add parentheses after the '!' to evaluate the > comparison first > include/common/hathreads.h:1026:33: note: expanded from macro > 'HA_SPIN_TRYLOCK' > #define HA_SPIN_TRYLOCK(lbl, l) !pl_try_s(l) > ^ > src/log.c:1692:10: note: add parentheses around left hand side expression > to silence this warning > while (HA_SPIN_TRYLOCK(LOGSRV_LOCK, &logsrv->lock) != 0) { > ^ > ( ) > include/common/hathreads.h:1026:33: note: expanded from macro > 'HA_SPIN_TRYLOCK' > #define HA_SPIN_TRYLOCK(lbl, l) !pl_try_s(l) > ^ > > > 2) compile error (can be fixed by including <sys/types.h> > > ebtree/ebtree.c:43:2: error: use of undeclared identifier 'ssize_t'; did > you mean 'sizeof'? > ssize_t ofs = -len; > ^~~~~~~ > sizeof > ebtree/ebtree.c:43:10: error: use of undeclared identifier 'ofs' > ssize_t ofs = -len; > ^ > ebtree/ebtree.c:47:13: error: use of undeclared identifier 'ofs' > diff = p1[ofs] - p2[ofs]; > ^ > ebtree/ebtree.c:47:23: error: use of undeclared identifier 'ofs' > diff = p1[ofs] - p2[ofs]; > ^ > ebtree/ebtree.c:48:22: error: use of undeclared identifier 'ofs' > } while (!diff && ++ofs); > > >