On Sun, Jun 24, 2018 at 09:42:54AM +0200, William Lallemand wrote:
On Sun, Jun 24, 2018 at 02:30:57AM +0000, Zero King wrote:
Hi,
I tried to update haproxy to 1.8.10 in MacPorts, but it fails to build
from source with the following error (without USE_THREAD):
/usr/bin/clang -arch x86_64 -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing
-Wdeclaration-after-statement -fwrapv -fno-strict-overflow -Wno-address-of-packed-member
-Wno-null-dereference -Wno-unused-label -DTPROXY -DCONFIG_HAP_CRYPT -DUSE_ZLIB -DENABLE_POLL
-DENABLE_KQUEUE -DCONFIG_REGPARM=3 -DUSE_OPENSSL -DUSE_PCRE -I/opt/local/include
-DCONFIG_HAPROXY_VERSION=\"1.8.10-ec17d7a\"
-DCONFIG_HAPROXY_DATE=\"2018/06/22\" -c -o src/log.o src/log.c
src/haproxy.c:2475:16: error: cannot take the address of an rvalue of type
'unsigned long'
HA_ATOMIC_AND(&all_threads_mask, ~tid_bit);
^~~~~~~~~~~~~~~~~
include/common/hathreads.h:41:42: note: expanded from macro 'HA_ATOMIC_AND'
#define HA_ATOMIC_AND(val, flags) ({*(val) &= (flags);})
^~~
1 error generated.
Thanks for your report, there a patch that should solve this issue.
Thanks for the patch, I applied it in OS X < 10.7 [1], which doesn't
support USE_THREAD, and build passed.
[1]:
https://github.com/macports/macports-ports/commit/a8f179575f70f0d21dfbaef7a9003cbcb43b59bb
--
William Lallemand
--
Zero