[Bug 264105] net/wireguard-kmod: Breakage on HEAD since improvement in sbcreatecontrol() of sockbuf

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 20 May 2022 18:04:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264105

            Bug ID: 264105
           Summary: net/wireguard-kmod: Breakage on HEAD since improvement
                    in sbcreatecontrol() of sockbuf
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: decke@FreeBSD.org
          Reporter: rhurlin@FreeBSD.org
             Flags: maintainer-feedback?(decke@FreeBSD.org)
          Assignee: decke@FreeBSD.org

Since sbcreatecontrol() in sockbuf was improved on HEAD [1], the build of the
port net/wireguard-kmod is broken with:

cc  -O2 -pipe -fno-strict-aliasing -include compat.h  -Werror -D_KERNEL
-DKLD_MODULE -nostdinc   -include
/usr/ports/net/wireguard-kmod/work/wireguard-freebsd-0.0.20211105/src/opt_global.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include     -MD  -MF.depend.if_wg.o
-MTif_wg.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error=tautological-compare -Wno-error=empty-body
-Wno-error=parentheses-equality -Wno-error=unused-function
-Wno-error=pointer-sign -Wno-error=shift-negative-value
-Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx 
-std=iso9899:1999 -c if_wg.c -o if_wg.o
if_wg.c:900:18: error: too few arguments to function call, expected 5, have 4
                            IPPROTO_IP);
                                      ^
/usr/src/sys/sys/sockbuf.h:161:2: note: 'sbcreatecontrol' declared here
        sbcreatecontrol(const void *p, u_int size, int type, int level,
        ^
if_wg.c:906:20: error: too few arguments to function call, expected 5, have 4
                            IPPROTO_IPV6);
                                        ^
/usr/src/sys/sys/sockbuf.h:161:2: note: 'sbcreatecontrol' declared here
        sbcreatecontrol(const void *p, u_int size, int type, int level,
        ^


[1]
https://freshbsd.org/freebsd/src/commit/6890b588141a8298fc8a63700aeeea4ba36ca3f9

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