[Cake] Fresh from the bakery

Loganaden Velvindron loganaden at gmail.com
Fri Oct 16 06:24:57 EDT 2015


On Fri, Oct 16, 2015 at 1:39 PM, Loganaden Velvindron <loganaden at gmail.com>
wrote:

>
>>
> Building the latest tc-adv causes issues with gcc.
>
>
> 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
> In file included from q_cake.c:48:0:
> 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’
>      && RTA_PAYLOAD(xstats) >= offsetof(*stnc, capacity_estimate))
>
> GCC version:
> gcc version 5.2.0 (GCC)
>
>
The commit causing the issue is this one:

https://github.com/dtaht/tc-adv/commit/9b2dc094b2b1526ec4222efc1b0a1d02812def5a

I'm not sure about the fix. here is it:

https://github.com/dtaht/tc-adv/pull/7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20151016/53a670cb/attachment-0002.html>


More information about the Cake mailing list