Current-Users archive

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

Re: npf build break



On Tue, Nov 26, 2013 at 12:25:55AM +0000, Mindaugas Rasiukevicius wrote:
> 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?

Yes! I still had DBG=-g -O0 in mk.conf from debugging something else...

Thanks!

Patrick


Home | Main Index | Thread Index | Old Index