=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for miredo-1.2.2nb2 --- config.h --- --- all --- /usr/pkg/bin/bmake all-recursive --- all-recursive --- Making all in po Making all in doc --- miredo.8 --- --- miredo-server.8 --- --- miredo-checkconf.8 --- --- miredo.8 --- SED miredo.8 --- miredo-server.8 --- SED miredo-server.8 --- miredo-checkconf.8 --- SED miredo-checkconf.8 Making all in misc --- miredo.conf --- --- miredo-server.conf --- --- client-hook --- --- miredo.conf --- SED miredo.conf --- miredo-server.conf --- SED miredo-server.conf --- client-hook --- CAT client-hook Making all in compat --- dummy.lo --- --- clearenv.lo --- --- dummy.lo --- CC dummy.lo --- clearenv.lo --- CC clearenv.lo --- libcompat.la --- CCLD libcompat.la Making all in libteredo --- all-recursive --- Making all in . --- init.lo --- --- relay.lo --- --- security.lo --- --- init.lo --- CC init.lo --- relay.lo --- CC relay.lo --- security.lo --- CC security.lo --- init.lo --- In file included from init.c:27: ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- relay.lo --- In file included from relay.c:29: ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- init.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ 5 warnings generated. --- relay.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ In file included from relay.c:49: ./packets.h:82:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ ./packets.h:82:59: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ relay.c:152:53: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] tunnel->icmpv6_cb (tunnel->opaque, &buf.hdr, len, &in->ip6_src); ^~~~~~~~~~~ relay.c:330:3: warning: cast from 'const struct in6_addr *' to 'const union teredo_addr *' increases required alignment from 1 to 4 [-Wcast-align] (const union teredo_addr *)&packet->ip6_dst; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ relay.c:330:31: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] (const union teredo_addr *)&packet->ip6_dst; ^~~~~~~~~~~~~~~ relay.c:364:5: warning: cast from 'const struct in6_addr *' to 'const union teredo_addr *' increases required alignment from 1 to 4 [-Wcast-align] (const union teredo_addr *)&packet->ip6_src; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ relay.c:364:33: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] (const union teredo_addr *)&packet->ip6_src; ^~~~~~~~~~~~~~~ relay.c:613:29: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] && (IN6_TEREDO_PREFIX (&ip6->ip6_src) == s.addr.teredo.prefix)) ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ relay.c:620:30: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] ipv4 = IN6_TEREDO_IPV4 (&ip6->ip6_src); ^~~~~~~~~~~~ ./teredo.h:85:15: note: expanded from macro 'IN6_TEREDO_IPV4' (ip6_teredo (ip6)->client_ip ^ 0xffffffff) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ relay.c:621:30: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] port = IN6_TEREDO_PORT (&ip6->ip6_src); ^~~~~~~~~~~~ ./teredo.h:87:15: note: expanded from macro 'IN6_TEREDO_PORT' (ip6_teredo (ip6)->client_port ^ 0xffff) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ relay.c:665:26: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_TEREDO_PREFIX (&ip6->ip6_src) != s.addr.teredo.prefix) ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ relay.c:705:46: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] teredo_peer *p = teredo_list_lookup (list, &ip6->ip6_src, NULL); ^~~~~~~~~~~~ --- md5.lo --- --- relay.lo --- relay.c:741:26: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_TEREDO_PREFIX (&ip6->ip6_src) == s.addr.teredo.prefix) ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ relay.c:744:35: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_MATCHES_TEREDO_CLIENT (&ip6->ip6_src, packet->source_ipv4, ^~~~~~~~~~~~ ./teredo.h:92:29: note: expanded from macro 'IN6_MATCHES_TEREDO_CLIENT' in6_matches_teredo_client (ip6, ip4, port) ^~~ relay.c:751:36: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] p = teredo_list_lookup (list, &ip6->ip6_src, &(bool){ false }); ^~~~~~~~~~~~ relay.c:782:31: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] assert (IN6_TEREDO_PREFIX (&ip6->ip6_src) != s.addr.teredo.prefix); ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) --- md5.lo --- CC md5.lo --- relay.lo --- ^~~ /usr/include/assert.h:54:21: note: expanded from macro 'assert' #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \ ^ relay.c:800:35: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] p = teredo_list_lookup (list, &ip6->ip6_src, &create); ^~~~~~~~~~~~ relay.c:829:36: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] SendPing (tunnel->fd, &s.addr, &ip6->ip6_src); ^~~~~~~~~~~~ --- packets.lo --- CC packets.lo --- relay.lo --- 23 warnings generated. --- peerlist.lo --- CC peerlist.lo --- md5.lo --- md5.c:181:7: warning: cast from 'const md5_byte_t *' (aka 'const unsigned char *') to 'const md5_word_t *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] X = (const md5_word_t *)data; ^~~~~~~~~~~~~~~~~~~~~~~~ --- packets.lo --- In file included from packets.c:29: ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ In file included from packets.c:49: ./packets.h:82:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ ./packets.h:82:59: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ packets.c:103:31: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] const struct in6_addr *me = &ip6->ip6_dst, *it = &ip6->ip6_src; ^~~~~~~~~~~~ packets.c:103:52: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] const struct in6_addr *me = &ip6->ip6_dst, *it = &ip6->ip6_src; ^~~~~~~~~~~~ packets.c:168:28: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!IN6_ARE_ADDR_EQUAL (&ip6->ip6_dst, ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:15: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ packets.c:218:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_ERR, _("Multiple Teredo prefixes received")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packets.c:218:22: note: treat the string as an argument to avoid this syslog (LOG_ERR, _("Multiple Teredo prefixes received")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ packets.c:298:47: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] teredo_get_pinghash ((uint32_t)time (NULL), &ping.ip6.ip6_src, ^~~~~~~~~~~~~~~~ packets.c:299:24: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ping.ip6.ip6_dst, (uint8_t *)&ping.icmp6.icmp6_id); ^~~~~~~~~~~~~~~~ packets.c:319:31: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] const struct in6_addr *me = &ip6->ip6_dst, *it = &ip6->ip6_src; ^~~~~~~~~~~~ packets.c:319:52: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] const struct in6_addr *me = &ip6->ip6_dst, *it = &ip6->ip6_src; ^~~~~~~~~~~~ packets.c:348:29: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!IN6_ARE_ADDR_EQUAL (&ip6->ip6_src, me) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:15: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ packets.c:374:29: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!IN6_ARE_ADDR_EQUAL (&ip6->ip6_dst, it)) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:15: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ packets.c:377:9: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] me = &ip6->ip6_src; ^~~~~~~~~~~~ packets.c:378:9: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] it = &ip6->ip6_dst; ^~~~~~~~~~~~ packets.c:410:30: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_IS_ADDR_MULTICAST (&in->ip6_dst)) ^~~~~~~~~~~ /usr/include/netinet6/in6.h:302:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) ^ packets.c:413:7: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] p = &in->ip6_src; ^~~~~~~~~~~ 21 warnings generated. --- md5.lo --- 1 warning generated. --- clock.lo --- CC clock.lo --- stub.lo --- CC stub.lo --- peerlist.lo --- peerlist.c:268:24: warning: 'memset' call operates on objects of type 'teredo_peerlist' (aka 'struct teredo_peerlist') while the size is based on a different type 'teredo_peerlist *' (aka 'struct teredo_peerlist *') [-Wsizeof-pointer-memaccess] memset (l, 0, sizeof (l)); ~ ^ peerlist.c:268:24: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)? memset (l, 0, sizeof (l)); ^ 1 warning generated. --- maintain.lo --- CC maintain.lo --- teredo.lo --- CC teredo.lo --- v4global.lo --- CC v4global.lo --- maintain.lo --- In file included from maintain.c:29: ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- server.lo --- --- maintain.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- teredo.lo --- teredo.c:229:6: warning: cast from 'unsigned char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] (struct in_addr *)CMSG_DATA (cmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- maintain.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- server.lo --- CC server.lo --- maintain.lo --- In file included from maintain.c:53: ./packets.h:82:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ ./packets.h:82:59: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ maintain.c:70:3: warning: Monotonic clock is needed for proper Teredo maintenance! [-W#warnings] # warning Monotonic clock is needed for proper Teredo maintenance! ^ maintain.c:119:11: warning: cast from 'struct sockaddr *' to 'const struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] *ipv4 = ((const struct sockaddr_in *)(res->ai_addr))->sin_addr.s_addr; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:144:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_ERR, _("Authentication with server failed.")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:144:20: note: treat the string as an argument to avoid this syslog (LOG_ERR, _("Authentication with server failed.")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ maintain.c:209:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_WARNING, _("Too much time drift. Resynchronizing.")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:209:24: note: treat the string as an argument to avoid this syslog (LOG_WARNING, _("Too much time drift. Resynchronizing.")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ maintain.c:280:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] _("Teredo server has a non global IPv4 address.")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) --- teredo.lo --- 1 warning generated. --- maintain.lo --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:280:13: note: treat the string as an argument to avoid this _("Teredo server has a non global IPv4 address.")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ maintain.c:343:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_INFO, _("No reply from Teredo server")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:343:24: note: treat the string as an argument to avoid this syslog (LOG_INFO, _("No reply from Teredo server")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ maintain.c:349:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_NOTICE, _("Lost Teredo connectivity")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:349:26: note: treat the string as an argument to avoid this syslog (LOG_NOTICE, _("Lost Teredo connectivity")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ maintain.c:379:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_NOTICE, _("New Teredo address/MTU")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ maintain.c:379:25: note: treat the string as an argument to avoid this syslog (LOG_NOTICE, _("New Teredo address/MTU")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ 15 warnings generated. --- mire.o --- CC mire.o In file included from mire.c:46: ./packets.h:82:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ ./packets.h:82:59: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ --- libteredo-common.la --- CCLD libteredo-common.la --- mire.o --- 2 warnings generated. --- server.lo --- In file included from server.c:26: --- libteredo.la --- CCLD libteredo.la --- server.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ In file included from server.c:56: ./packets.h:82:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ ./packets.h:82:59: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return teredo_send_bubble (fd, ip, port, &req->ip6_dst, &req->ip6_src); ^~~~~~~~~~~~ server.c:140:9: warning: cast from 'struct in6_addr *' to 'union teredo_addr *' increases required alignment from 1 to 4 [-Wcast-align] addr = (union teredo_addr *)&ra.pi.nd_opt_pi_prefix; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:140:31: warning: taking address of packed member 'nd_opt_pi_prefix' of class or structure 'nd_opt_prefix_info' may result in an unaligned pointer value [-Waddress-of-packed-member] addr = (union teredo_addr *)&ra.pi.nd_opt_pi_prefix; ^~~~~~~~~~~~~~~~~~~~~~ server.c:324:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:324:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:333:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:333:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:341:30: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_IS_ADDR_LINKLOCAL (&ip6->ip6_src) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:295:5: note: expanded from macro 'IN6_IS_ADDR_LINKLOCAL' (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) ^ server.c:341:30: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_IS_ADDR_LINKLOCAL (&ip6->ip6_src) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:295:35: note: expanded from macro 'IN6_IS_ADDR_LINKLOCAL' (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) ^ server.c:342:48: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] && IN6_ARE_ADDR_EQUAL (&in6addr_allrouters, &ip6->ip6_dst) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:33: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ server.c:348:26: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_TEREDO_PREFIX (&ip6->ip6_src) == myprefix) ^~~~~~~~~~~~ --- teredo-mire --- CCLD teredo-mire --- server.lo --- ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ server.c:352:35: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_MATCHES_TEREDO_CLIENT (&ip6->ip6_src, packet.source_ipv4, ^~~~~~~~~~~~ ./teredo.h:92:29: note: expanded from macro 'IN6_MATCHES_TEREDO_CLIENT' in6_matches_teredo_client (ip6, ip4, port) ^~~ server.c:360:28: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if ((IN6_TEREDO_PREFIX (&ip6->ip6_dst) == myprefix) ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ server.c:361:28: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] && (IN6_TEREDO_SERVER (&ip6->ip6_dst) == s->server_ip)) ^~~~~~~~~~~~ ./teredo.h:83:15: note: expanded from macro 'IN6_TEREDO_SERVER' (ip6_teredo (ip6)->server_ip) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ server.c:366:44: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] debug_error_header (&packet.source_ipv4, &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:366:59: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] debug_error_header (&packet.source_ipv4, &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:378:48: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] debug_error_header (&packet.source_ipv4, &ip6->ip6_src, ^~~~~~~~~~~~ server.c:379:24: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:385:48: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_ARE_ADDR_EQUAL (&in6addr_allrouters, &ip6->ip6_dst) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:33: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ server.c:386:43: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] || IN6_ARE_ADDR_EQUAL (&s->lladdr.ip6, &ip6->ip6_dst)) ^~~~~~~~~~~~ /usr/include/netinet6/in6.h:230:33: note: expanded from macro 'IN6_ARE_ADDR_EQUAL' (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) ^ server.c:393:32: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] return SendRA (s, &packet, &ip6->ip6_src, sec) ? 1 : -1; ^~~~~~~~~~~~ server.c:397:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:397:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:402:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:402:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:410:28: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (!IN6_IS_ADDR_GLOBAL (&ip6->ip6_dst)) ^~~~~~~~~~~~ server.c:413:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:413:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:435:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:435:39: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] &ip6->ip6_src, &ip6->ip6_dst); ^~~~~~~~~~~~ server.c:440:26: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] if (IN6_TEREDO_PREFIX (&ip6->ip6_dst) != myprefix) ^~~~~~~~~~~~ ./teredo.h:81:15: note: expanded from macro 'IN6_TEREDO_PREFIX' (ip6_teredo (ip6)->prefix) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ server.c:446:23: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] IN6_TEREDO_SERVER (&ip6->ip6_dst) == s->server_ip) ? 3 : -1; ^~~~~~~~~~~~ ./teredo.h:83:15: note: expanded from macro 'IN6_TEREDO_SERVER' (ip6_teredo (ip6)->server_ip) ^~~ ./teredo.h:74:58: note: expanded from macro 'ip6_teredo' #define ip6_teredo( ip6 ) (&((const union teredo_addr *)(ip6))->teredo) ^~~ server.c:515:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_ERR, _("Raw IPv6 socket not working: %m")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:515:20: note: treat the string as an argument to avoid this syslog (LOG_ERR, _("Raw IPv6 socket not working: %m")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ server.c:522:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_ERR, _("Teredo server UDP socket error: " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:522:20: note: treat the string as an argument to avoid this syslog (LOG_ERR, _("Teredo server UDP socket error: " ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ server.c:541:34: warning: implicit conversion from 'int' to 'uint16_t' (aka 'unsigned short') changes value from -55310 to 10226 [-Wconstant-conversion] s->lladdr.teredo.client_port = ~htons (IPPORT_TEREDO); ~ ^~~~~~~~~~~~~~~~~~~~~~ 41 warnings generated. --- libteredo-server.la --- CCLD libteredo-server.la Making all in test Making all in libtun6 --- tun6.lo --- --- diag.lo --- --- tun6.lo --- CC tun6.lo --- diag.lo --- CC diag.lo --- tun6.lo --- In file included from tun6.c:26: --- diag.lo --- In file included from diag.c:26: --- tun6.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- diag.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- tun6.lo --- ^ --- diag.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- tun6.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- diag.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- tun6.lo --- ^ --- diag.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- tun6.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- diag.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- tun6.lo --- ^ --- diag.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- tun6.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- diag.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- tun6.lo --- ^ --- diag.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- tun6.lo --- ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- diag.lo --- ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- tun6.lo --- ^ --- diag.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- tun6.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- diag.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- tun6.lo --- ^ --- diag.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- tun6.lo --- ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- diag.lo --- ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- tun6.lo --- ^ --- diag.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- tun6.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- diag.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- tun6.lo --- ^ --- diag.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- tun6.lo --- ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- diag.lo --- ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- tun6.lo --- ^ --- diag.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- tun6.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- diag.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- tun6.lo --- ^ --- diag.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ 5 warnings generated. --- tun6.lo --- tun6.c:668:14: warning: cast from 'struct sockaddr *' to 'struct sockaddr_dl *' increases required alignment from 1 to 2 [-Wcast-align] if (id == ((struct sockaddr_dl *)ifa->ifa_addr)->sdl_index) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tun6.c:669:10: warning: cast from 'struct sockaddr *' to 'struct sockaddr_dl *' increases required alignment from 1 to 2 [-Wcast-align] sdl = (struct sockaddr_dl *)ifa->ifa_addr; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tun6.c:679:30: warning: cast from 'u_char *' (aka 'unsigned char *') to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] struct sockaddr_in6 *mask = (struct sockaddr_in6 *)((u_char *)&msg.gw + sdl->sdl_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. --- libtun6.la --- CCLD libtun6.la Making all in src --- main.lo --- --- miredo.lo --- --- conf.lo --- --- main.lo --- CC main.lo --- miredo.lo --- CC miredo.lo --- conf.lo --- CC conf.lo --- miredo.lo --- In file included from miredo.c:29: --- conf.lo --- In file included from conf.c:26: --- main.lo --- In file included from main.c:27: --- miredo.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- conf.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- conf.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- main.lo --- ../include/gettext.h:176:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- miredo.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- conf.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- conf.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- main.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- miredo.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- conf.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- conf.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- main.lo --- ../include/gettext.h:200:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- miredo.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- conf.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- conf.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- main.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ ^ --- miredo.lo --- ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- conf.lo --- ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- conf.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- main.lo --- ../include/gettext.h:215:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS ^ --- miredo.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- conf.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- main.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- conf.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- main.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- ^ --- miredo.lo --- ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- conf.lo --- ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- main.lo --- ../include/gettext.h:246:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- conf.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- main.lo --- #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- ^ --- miredo.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- conf.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- main.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- conf.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- main.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- miredo.lo --- ^ --- conf.lo --- ^ --- main.lo --- ^ --- conf.lo --- ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- conf.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- main.lo --- ../include/gettext.h:261:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] --- miredo.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- conf.lo --- ^ --- main.lo --- #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS --- miredo.lo --- ^ --- main.lo --- ^ --- conf.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- conf.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- main.lo --- ../include/gettext.h:173:42: note: expanded from macro '_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS' --- miredo.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- conf.lo --- ^ --- main.lo --- (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \ --- miredo.lo --- ^ --- main.lo --- ^ main.c:222:20: error: invalid operands to binary expression ('void' and 'int') --- conf.lo --- conf.c:406:11: warning: cast from 'struct sockaddr *' to 'const struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] --- main.lo --- if (closefrom (3) && (errno != EBADF)) --- miredo.lo --- miredo.c:147:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] --- conf.lo --- *ipv4 = ((const struct sockaddr_in *)res->ai_addr)->sin_addr.s_addr; --- main.lo --- ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ --- miredo.lo --- syslog (LOG_INFO, _("Starting...")); --- conf.lo --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- miredo.lo --- ^~~~~~~~~~~~~~~~ --- main.lo --- 5 warnings and 1 error generated. *** [main.lo] Error code 1 bmake[2]: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2/src --- conf.lo --- conf.c:462:19: warning: cast from 'struct sockaddr *' to 'const struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] memcpy (value, &((const struct sockaddr_in6*)(res->ai_addr))->sin6_addr, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- miredo.lo --- ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ miredo.c:147:21: note: treat the string as an argument to avoid this syslog (LOG_INFO, _("Starting...")); ^ "%s", ../compat/fixups.h:28:19: note: expanded from macro '_' #define _( str ) dgettext (PACKAGE_NAME, str) ^ ../include/gettext.h:68:38: note: expanded from macro 'dgettext' # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) ^ 6 warnings generated. --- conf.lo --- 7 warnings generated. 1 error bmake[2]: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2/src *** [all-recursive] Error code 1 bmake[1]: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2 1 error bmake[1]: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2 *** [all] Error code 2 bmake: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2 1 error bmake: stopped in /var/pkgsrc/work/net/miredo/work/miredo-1.2.2 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/net/miredo *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/miredo