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.

--
Zero

Reply via email to