<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 16, 2015 at 1:39 PM, Loganaden Velvindron <span dir="ltr"><<a href="mailto:loganaden@gmail.com" target="_blank">loganaden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br></blockquote><div><br></div></div></div><div>Building the latest tc-adv causes issues with gcc.</div><div><br></div><div> </div><div><div>gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -DHAVE_SETNS -DHAVE_ELF -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/usr/lib/iptables\" -DYY_NO_INPUT -c -o q_cake0.o q_cake0.c</div><div>In file included from q_cake.c:48:0:</div><div>q_cake.c: In function ‘cake_print_xstats’:../include/utils.h:177:55: error: expected expression before ‘)’ token # define offsetof(type, member) ( (size_t) & ( (type *) 0 )->member ) ^q_cake.c:500:31: note: in expansion of macro ‘offsetof’</div><div> && RTA_PAYLOAD(xstats) >= offsetof(*stnc, capacity_estimate))</div></div><div><br></div><div>GCC version:</div><div>gcc version 5.2.0 (GCC) <br></div><div><br></div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra">The commit causing the issue is this one:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://github.com/dtaht/tc-adv/commit/9b2dc094b2b1526ec4222efc1b0a1d02812def5a" target="_blank">https://github.com/dtaht/tc-adv/commit/9b2dc094b2b1526ec4222efc1b0a1d02812def5a</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I'm not sure about the fix. here is it:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://github.com/dtaht/tc-adv/pull/7">https://github.com/dtaht/tc-adv/pull/7</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>