Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2020 08:22:15 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        "Hartmann, O." <ohartmann@walstatt.org>
Cc:        John Baldwin <jhb@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r361633 - in head/sys: net netipsec
Message-ID:  <202005311522.04VFMF4U015500@slippy.cwsent.com>
In-Reply-To: <20200531114318.2b415934@hermann.fritz.box>
References:  <202005291922.04TJMemQ098017@repo.freebsd.org>  <20200531114318.2b415934@hermann.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20200531114318.2b415934@hermann.fritz.box>, "Hartmann, O." 
writes:
> --Sig_/K9D9Cgo_rXCeD=+Maiy_5WL
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: quoted-printable
>
> On Fri, 29 May 2020 19:22:40 +0000 (UTC)
> John Baldwin <jhb@FreeBSD.org> wrote:
>
> > Author: jhb
> > Date: Fri May 29 19:22:40 2020
> > New Revision: 361633
> > URL: https://svnweb.freebsd.org/changeset/base/361633
> >=20
> > Log:
> >   Consistently include opt_ipsec.h for consumers of
> > <netipsec/ipsec.h>.=20
> >   This fixes ipsec.ko to include all of IPSEC_DEBUG.
> >  =20
> >   Reviewed by:	imp
> >   MFC after:	2 weeks
> >   Sponsored by:	Netflix
> >   Differential Revision:	https://reviews.freebsd.org/D25046
> >=20
> > Modified:
> >   head/sys/net/if_enc.c
> >   head/sys/net/if_ipsec.c
> >   head/sys/netipsec/ipsec.h
> >   head/sys/netipsec/ipsec_mbuf.c
> >   head/sys/netipsec/xform_ah.c
> >   head/sys/netipsec/xform_esp.c
> >   head/sys/netipsec/xform_ipcomp.c
> >=20
> > Modified: head/sys/net/if_enc.c
[...]
>
>
> In my case, kernel build (make buildkernel) fails with the comnpiler
> error shown below while compiling ipsec kernel module. Kernel has IPSEC
> support enabled.
>
> Kind regards,
> oh
>
> [...]
> --- all_subdir_ipsec ---
> --- ipsec_mod.o ---
> /usr/src/sys/netipsec/ipsec_mod.c:114:3: error: implicit declaration of
> function 'ipsec_support_enable' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> ipsec_support_enable(ipv4_ipsec_support, &ipv4_methods); ^
> /usr/src/sys/netipsec/ipsec_mod.c:125:3: error: implicit declaration of
> function 'ipsec_support_disable' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> ipsec_support_disable(ipv4_ipsec_support); ^ --- all_subdir_ipwfw ---
> Building
> /usr/obj/usr/src/amd64.amd64/sys/WALHALL/modules/usr/src/sys/modules/ipwfw/=
> ipw_bss/ipw_bss.ko
> --- all_subdir_ipsec --- /usr/src/sys/netipsec/ipsec_mod.c:125:3: note:
> did you mean 'ipsec_support_enable'?
> /usr/src/sys/netipsec/ipsec_mod.c:114:3: note: 'ipsec_support_enable'
> declared here ipsec_support_enable(ipv4_ipsec_support, &ipv4_methods);
> ^ 2 errors generated. *** [ipsec_mod.o] Error code 1
>
> make[4]: stopped in /usr/src/sys/modules/ipsec

Can you post your kernel config, please.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

	The need of the many outweighs the greed of the few.






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