[Bug 271066] netlink: nooptions NETLINK build fails after base 089104e0e01f

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Apr 2023 16:07:59 UTC

            Bug ID: 271066
           Summary: netlink: nooptions NETLINK build fails after base
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: throwaway_vthgwq4@protonmail.com

# cp sys/amd64/conf/GENERIC sys/amd64/conf/GENERIC-NONETLINK
# echo "nooptions NETLINK" >> sys/amd64/conf/GENERIC-NONETLINK
# make KERNCONF=GENERIC-NONETLINK WITHOUT_MODULES=yes -j$(nproc) buildkernel

--- netlink_generic_kpi.o ---
ctfconvert -L VERSION -g netlink_generic_kpi.o
--- netlink_glue.o ---
/usr/src/sys/netlink/netlink_glue.c:285:15: error: no member named
'nl_modify_ifp' in 'struct nl_function_wrapper'
        return (_nl->nl_modify_ifp(ifp, lattrs, bm, npt));
                ~~~  ^
/usr/src/sys/netlink/netlink_glue.c:282:1: error: no previous prototype for
function 'nl_modify_ifp_generic' [-Werror,-Wmissing-prototypes]
nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs,
/usr/src/sys/netlink/netlink_glue.c:281:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
/usr/src/sys/netlink/netlink_glue.c:289:1: error: redefinition of
nl_store_ifp_cookie_stub(struct nl_pstate *npt, struct ifnet *ifp)
/usr/src/sys/netlink/netlink_glue.c:189:1: note: previous definition is here
nl_store_ifp_cookie_stub(struct nl_pstate *npt __unused, struct ifnet *ifp
3 errors generated.
*** [netlink_glue.o] Error code 1

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NONETLINK

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