[Nut-upsdev] trunk build 708:access.c
Henning Brauer
hb-nut at bsws.de
Sat Jan 6 20:37:50 CET 2007
* Arjen de Korte <nut+devel at de-korte.org> [2007-01-06 20:26]:
> Doug Reynolds wrote:
>
> > I was having a little trouble building the 708 truck... access.c bombs out:
> >
> > gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O -Wall
> > -Wsign-compare -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o
> > access.c
> > access.c: In function `mask_cmp':
> > access.c:59: error: structure has no member named `s6_addr32'
> > access.c:61: error: structure has no member named `s6_addr32'
> > access.c:65: error: structure has no member named `s6_addr32'
> > access.c:65: error: structure has no member named `s6_addr32'
> > *** Error code 1
> >
> > seems weird, looks like one of the IP6 updates wasn't defined somewhere?
> > btw, this is on freebsd 6.2-RC1
>
> On my system (Linux/openSUSE 10.2), this structure is defined in
> <netinet/in.h> which is included in access.c and looks as follows:
>
> /* IPv6 address */
> struct in6_addr
> {
> union
> {
> uint8_t u6_addr8[16];
> uint16_t u6_addr16[8];
> uint32_t u6_addr32[4];
> } in6_u;
> #define s6_addr in6_u.u6_addr8
> #define s6_addr16 in6_u.u6_addr16
> #define s6_addr32 in6_u.u6_addr32
> };
s6_addr32 is not portable. only s6_addr is.
--
Henning Brauer, hb at bsws.de, henning at openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam
More information about the Nut-upsdev
mailing list