CUURENT kernel build broken - /usr/src/sys/dev/xen/netback/netback.c

From: Outback Dingo <outbackdingo_at_gmail.com>
Date: Mon, 28 Oct 2013 17:33:23 -0400
cc  -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions
 -Wmissing-include-dirs -fdiagnostics-show-option
 -Wno-error-tautological-compare -Wno-error-empty-body
 -Wno-error-parentheses-equality  -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
 -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror
 /usr/src/sys/dev/xen/control/control.c
ctfconvert -L VERSION -g control.o
cc  -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions
 -Wmissing-include-dirs -fdiagnostics-show-option
 -Wno-error-tautological-compare -Wno-error-empty-body
 -Wno-error-parentheses-equality  -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
 -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror
 /usr/src/sys/dev/xen/netback/netback.c
/usr/src/sys/dev/xen/netback/netback.c:588:7: error: incomplete definition
of type 'struct mbuf'
        if (m->m_flags & M_PKTHDR) {
            ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:588:19: error: use of undeclared
identifier 'M_PKTHDR'
        if (m->m_flags & M_PKTHDR) {
                         ^
/usr/src/sys/dev/xen/netback/netback.c:591:11: error: incomplete definition
of type 'struct mbuf'
                       m->m_pkthdr.flowid, (int)m->m_pkthdr.csum_flags,
                       ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:594:11: error: incomplete definition
of type 'struct mbuf'
                       m->m_pkthdr.rcvif, m->m_pkthdr.len);
                       ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:597:10: error: incomplete definition
of type 'struct mbuf'
               m->m_next, m->m_nextpkt, m->m_data);
               ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:599:10: error: incomplete definition
of type 'struct mbuf'
               m->m_len, m->m_flags, m->m_type);
               ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:601:9: error: incomplete definition
of type 'struct mbuf'
        len = m->m_len;
              ~^
/usr/src/sys/net/ethernet.h:367:8: note: forward declaration of 'struct
mbuf'
struct mbuf;
       ^
/usr/src/sys/dev/xen/netback/netback.c:602:6: error: implicit declaration
of function 'mtod' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        d = mtod(m, uint8_t*);
            ^
/usr/src/sys/dev/xen/netback/netback.c:602:14: error: unexpected type name
'uint8_t': expected expression
        d = mtod(m, uint8_t*);
                    ^
/usr/src/sys/dev/xen/netback/netback.c:602:22: error: expected expression
        d = mtod(m, uint8_t*);
                            ^
/usr/src/sys/dev/xen/netback/netback.c:1071:3: error: implicit declaration
of function 'if_free' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                if_free(xnb->xnb_ifp);
                ^
/usr/src/sys/dev/xen/netback/netback.c:1213:24: error: implicit declaration
of function 'if_alloc' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                ifp = xnb->xnb_ifp = if_alloc(IFT_ETHER);
                                     ^
/usr/src/sys/dev/xen/netback/netback.c:1213:22: error: incompatible integer
to pointer conversion assigning to 'struct ifnet *' from 'int'
[-Werror,-Wint-conversion]
                ifp = xnb->xnb_ifp = if_alloc(IFT_ETHER);
                                   ^ ~~~~~~~~~~~~~~~~~~~
/usr/src/sys/dev/xen/netback/netback.c:1214:6: error: incomplete definition
of type 'struct ifnet'
                ifp->if_softc = xnb;
                ~~~^
/usr/src/sys/net/if_arp.h:106:10: note: forward declaration of 'struct
ifnet'
        struct  ifnet *ac_ifp;          /* network-visible interface */
                ^
/usr/src/sys/dev/xen/netback/netback.c:1215:3: error: implicit declaration
of function 'if_initname' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                if_initname(ifp, "xnb",  device_get_unit(dev));
                ^
/usr/src/sys/dev/xen/netback/netback.c:1216:6: error: incomplete definition
of type 'struct ifnet'
                ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
                ~~~^
/usr/src/sys/net/if_arp.h:106:10: note: forward declaration of 'struct
ifnet'
        struct  ifnet *ac_ifp;          /* network-visible interface */
                ^
/usr/src/sys/dev/xen/netback/netback.c:1217:6: error: incomplete definition
of type 'struct ifnet'
                ifp->if_ioctl = xnb_ioctl;
                ~~~^
/usr/src/sys/net/if_arp.h:106:10: note: forward declaration of 'struct
ifnet'
        struct  ifnet *ac_ifp;          /* network-visible interface */
                ^
/usr/src/sys/dev/xen/netback/netback.c:1218:6: error: incomplete definition
of type 'struct ifnet'
                ifp->if_output = ether_output;
                ~~~^
/usr/src/sys/net/if_arp.h:106:10: note: forward declaration of 'struct
ifnet'
        struct  ifnet *ac_ifp;          /* network-visible interface */
                ^
/usr/src/sys/dev/xen/netback/netback.c:1219:6: error: incomplete definition
of type 'struct ifnet'
                ifp->if_start = xnb_start;
                ~~~^
/usr/src/sys/net/if_arp.h:106:10: note: forward declaration of 'struct
ifnet'
        struct  ifnet *ac_ifp;          /* network-visible interface */
                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1

Stop.
bmake[2]: stopped in /usr/obj/usr/src/sys/GENERIC
*** Error code 1

Stop.
bmake[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
Received on Mon Oct 28 2013 - 20:33:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC