In message <20200531114318.2b415...@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 <j...@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.schub...@cschubert.com>
FreeBSD UNIX:  <c...@freebsd.org>   Web:  https://FreeBSD.org
NTP:           <c...@nwtime.org>    Web:  https://nwtime.org

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



_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to