Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2018 19:51:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232828] tools/tools/netmap can not be built
Message-ID:  <bug-232828-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232828

            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@FreeBSD.org
          Reporter: lev@FreeBSD.org

On both 11.2-STABLE and 13-CURRENT "pkt-gen" from tools/tools/netmap can no=
t be
built:

cc  -O2 -pipe -Werror -Wall -Wextra   -g -std=3Dgnu99 -fstack-protector-str=
ong=20=20=20
-Qunused-arguments -Qunused-arguments  -g -std=3Dgnu99 -fstack-protector-st=
rong=20=20
 -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 pac=
ked
member 'ip' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        struct ip *ip =3D &pkt->ip;
                         ^~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:651:24: error: taking address of pac=
ked
member 'udp' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        struct udphdr *udp =3D &pkt->udp;
                              ^~~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:745:8: error: taking address of pack=
ed
member 'ip' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        ip =3D &pkt->ip;
              ^~~~~~~
/data/src/tools/tools/netmap/pkt-gen.c:762:9: error: taking address of pack=
ed
member 'udp' of class or structure 'pkt' may result in an unaligned pointer
value [-Werror,-Waddress-of-packed-member]
        udp =3D &pkt->udp;
               ^~~~~~~~
4 errors generated.
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232828-227>