[Bug 232828] tools/tools/netmap can not be built
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 30 19:51:46 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232828
Bug ID: 232828
Summary: tools/tools/netmap can not be built
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: bugs at FreeBSD.org
Reporter: lev at FreeBSD.org
On both 11.2-STABLE and 13-CURRENT "pkt-gen" from tools/tools/netmap can not be
built:
cc -O2 -pipe -Werror -Wall -Wextra -g -std=gnu99 -fstack-protector-strong
-Qunused-arguments -Qunused-arguments -g -std=gnu99 -fstack-protector-strong
-Qunused-arguments -Qunused-arguments -c
/data/src/tools/tools/netmap/pkt-gen.c -o pkt-gen.o
/data/src/tools/tools/netmap/pkt-gen.c:650:19: error: taking address of packed
member 'ip' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
struct ip *ip = &pkt->ip;
^~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:651:24: error: taking address of packed
member 'udp' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
struct udphdr *udp = &pkt->udp;
^~~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:745:8: error: taking address of packed
member 'ip' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
ip = &pkt->ip;
^~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:762:9: error: taking address of packed
member 'udp' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
udp = &pkt->udp;
^~~~~~~~
4 errors generated.
*** Error code 1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list