Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: npf build break



Patrick Welche <prlw1%cam.ac.uk@localhost> wrote:
> I'm seeing on -current/amd64 with gcc 4.5.4:
> 
> /usr/src/usr.sbin/npf/npftest/libnpftest/npf_table_test.c:27:6: error:
> initializ er element is not constant
> /usr/src/usr.sbin/npf/npftest/libnpftest/npf_table_test.c:27:6: error:
> (near ini tialization for 'ip6_list[0][0]')
> ...
> 
> 
> static const uint16_t ip6_list[][8] = {
>     {
>         htons(0xfe80), 0x0, 0x0, 0x0,
>         htons(0x2a0), htons(0xc0ff), htons(0xfe10), htons(0x1234)
>     },
> ...
> 
> uint16_t bswap16(uint16_t) __constfunc;
>                        -> __attribute__((__const__))
> 

This code has been for years.  Are you building with -O0 option?

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index