Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 16:15:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 265976] net/wireguard-kmod: Broken since 1400066 on CURRENT
Message-ID:  <bug-265976-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 265976
           Summary: net/wireguard-kmod: Broken since 1400066 on CURRENT
           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

Created attachment 236047
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D236047&action=
=3Dedit
patch to add support for changed struct on 1400066 and newer

Since OSVERSION 1400066, one get the following breakage when try to build
net/wireguard on CURRENT:

cc  -O2 -pipe -fno-strict-aliasing -include
/usr/ports/net/wireguard-kmod/work/wireguard-freebsd-0.0.20220615/src/compa=
t.h=20
-Werror -D_KERNEL -DKLD_MODULE -nostdinc   -include
/usr/ports/net/wireguard-kmod/work/wireguard-freebsd-0.0.20220615/src/opt_g=
lobal.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include     -MD  -MF.depend=
.if_wg.o
-MTif_wg.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float=20
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -W=
all
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error=3Dtautological-compare -Wno-error=3Dempty-body
-Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function
-Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value
-Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx=20
-std=3Diso9899:1999 -c if_wg.c -o if_wg.o
In file included from if_wg.c:74:
./support.h:40:26: error: no member named 'pr_usrreqs' in 'struct protosw'
        error =3D (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, nam);
                  ~~~~~~~~~~~~  ^
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in
/usr/ports/net/wireguard-kmod/work/wireguard-freebsd-0.0.20220615/src


Since commit e7d02be, the struct pr_usrreqs is merged into struct protosw. =
The
attached patch uses this change for CURRENT >=3D 1400066.

The patch builds and installs fine on Poudriere and on my box. Working with=
 the
patched wireguard-kmod seems to have no regressions so far.

--=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-265976-7788>