[Nut-upsdev] trunk build 708:access.c

Arjen de Korte nut+devel at de-korte.org
Sat Jan 6 20:20:42 CET 2007


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
  };

Best regards, Arjen



More information about the Nut-upsdev mailing list