Current-Users archive

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

Re: dhcpd build break



On 22/06/2013 0:37, Paul Goyette wrote:
With sources updated at 20:18:15 UTC, it seems that a large number of
ports are failing to build.  Everything I have noticed seems to be a
"big-endian" architecture:

/build/netbsd-local/src/external/bsd/dhcpcd/dist/dhcp6.c: In function
'dhcp6_makemessage':
/build/netbsd-local/src/external/bsd/dhcpcd/dist/dhcp6.c:641:11:
error: operation on 'o->len' may be undefined

The same evb*-eb ports seems to build just fine on their
corresponding little-endian ports.

The code in question:

                        o = D6_NEXT_OPTION(o);
                        o->code = htons(D6_OPTION_ORO);
                        o->len = 0;

Can anyone with Big Endian foo or compilter foo explain this one to me?
I'm not sure how to fix a = 0 assignment on BE ....
Kinda of odd as the code above it seems to be ok and is similar. Compiler error?

Roy


Home | Main Index | Thread Index | Old Index