I didn’t see other discussion about it, but commit 3015a2 seems to have fixed this issue. Thank you.
-Bryan > On Jul 1, 2016, at Jul 1, 2:09 PM, Bryan Talbot <[email protected]> > wrote: > > >> On Jul 1, 2016, at Jul 1, 9:36 AM, 유준희 <[email protected] >> <mailto:[email protected]>> wrote: >> >> I found below error on 90fd35c3a726e613e36ea0399507778b094181a0 with OS X >> 11.5 (El capitan) > > > Issue introduced with > > 93b227db9502f72f894c83708cd49c41925158b2 is the first bad commit > commit 93b227db9502f72f894c83708cd49c41925158b2 > Author: Bertrand Jacquin <[email protected] <mailto:[email protected]>> > Date: Sat Jun 4 15:11:10 2016 +0100 > > -Bryan > > > >> >> $ make TARGET=generic >> .... >> gcc -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing >> -Wdeclaration-after-statement -DTPROXY -DENABLE_POLL >> -DCONFIG_HAPROXY_VERSION=\"1.7-dev3-90fd35-69\" >> -DCONFIG_HAPROXY_DATE=\"2016/06/30\" -c -o src/connection.o src/connection.c >> src/connection.c:739:65: error: no member named 'source' in 'struct tcphdr' >> ((struct sockaddr_in *)&conn->addr.from)->sin_port = >> hdr_tcp->source; >> ~~~~~~~ >> ^ >> src/connection.c:743:63: error: no member named 'dest' in 'struct tcphdr' >> ((struct sockaddr_in *)&conn->addr.to >> <http://addr.to/>)->sin_port = hdr_tcp->dest; >> ~~~~~~~ ^ >> src/connection.c:772:67: error: no member named 'source' in 'struct tcphdr' >> ((struct sockaddr_in6 *)&conn->addr.from)->sin6_port = >> hdr_tcp->source; >> >> ~~~~~~~ ^ >> src/connection.c:776:65: error: no member named 'dest' in 'struct tcphdr' >> ((struct sockaddr_in6 *)&conn->addr.to >> <http://addr.to/>)->sin6_port = hdr_tcp->dest; >> ~~~~~~~ >> ^ >> 4 errors generated. >> make: *** [src/connection.o] Error 1 >> >> The reason why is 'struct tcphdr' in <tcp.h> doesn't have source and dest >> member: >> ------------------------------------------------------------------------------------ >> <tcp.h> >> ... >> 81 struct tcphdr { >> 82 unsigned short th_sport; /* source port */ >> 83 unsigned short th_dport; /* destination port */ >> 84 tcp_seq th_seq; /* sequence number */ >> ... >> ------------------------------------------------------------------------------------ >> >> After I patch, it complied and seems like working properly. >> I check the functionality with very simple configuration. >> ------------------------------------------------------------------------------------ >> global >> maxconn 10 >> >> defaults >> mode http >> timeout connect 5000ms >> timeout client 50000ms >> timeout server 50000ms >> >> frontend http-in >> mode http >> bind *:8080 >> default_backend servers >> >> backend servers >> balance roundrobin >> server server1 127.0.0.1:8081 <http://127.0.0.1:8081/> >> server server2 127.0.0.1:8082 <http://127.0.0.1:8082/> >> server server3 127.0.0.1:8083 <http://127.0.0.1:8083/> >> >> >> >> Thanks >> - Jun Hee Yoo >> >> -- >> 踏雪野中去 >> <0001-BUILD-Can-t-build-on-OS-X-11.5.patch> >

