Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jan 2021 07:28:27 +0100
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "Hartmann, O." <o.hartmann@walstatt.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: fda7daf06301 - main - pfctl: Stop sharing pf_ruleset.c with the kernel
Message-ID:  <1D693FF6-3D56-40C0-A058-5EFF0E3058FD@FreeBSD.org>
In-Reply-To: <20210106055051.51e28498@hermann.fritz.box>
References:  <202101052237.105MbsPa081440@gitrepo.freebsd.org> <20210106055051.51e28498@hermann.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6 Jan 2021, at 5:50, Hartmann, O. wrote:
> On Tue, 5 Jan 2021 22:37:54 GMT
> Kristof Provost <kp@FreeBSD.org> wrote:
>
>> The branch main has been updated by kp:
>>
>> URL: =

>> https://cgit.FreeBSD.org/src/commit/?id=3Dfda7daf06301beef1bdad3989123=
2a12c6925b22
>>
>> commit fda7daf06301beef1bdad39891232a12c6925b22
>> Author:     Kristof Provost <kp@FreeBSD.org>
>> AuthorDate: 2020-12-24 15:02:04 +0000
>> Commit:     Kristof Provost <kp@FreeBSD.org>
>> CommitDate: 2021-01-05 22:35:37 +0000
>>
>>     pfctl: Stop sharing pf_ruleset.c with the kernel
>>
>>     Now that we've split up the datastructures used by the kernel and
>>     userspace there's essentually no more overlap between the =

>> pf_ruleset.c
>>     code used by userspace and kernelspace.
>>
>>     Copy the userspace bits to the pfctl directory and stop using the =

>> kernel
>>     file.
>>
>>     Reviewed by:    philip
>>     MFC after:      2 weeks
>>     Sponsored by:   Orange Business Services
>>     Differential Revision:  https://reviews.freebsd.org/D27764
>> ---
>>  sbin/pfctl/Makefile         |   3 -
>>  sbin/pfctl/pf_ruleset.c     | 343 =

>> ++++++++++++++++++++++++++++++++++++++++++++
>>  sys/netpfil/pf/pf_ruleset.c | 286 =

>> +-----------------------------------
>>  3 files changed, 349 insertions(+), 283 deletions(-)
>>
>
> It seems that now make buildkernel fails (at least for me):
>
>
> [...]
> =3D=3D=3D> lib/libelftc (all)
> --- all_subdir_sbin ---
> /usr/src/sys/netpfil/pf/pf_ruleset.c:62:2: error: "Kernel only file. =

> Please use
> sbin/pfctl/pf_ruleset.c instead." #error "Kernel only file. Please use
> sbin/pfctl/pf_ruleset.c instead." ^
> /usr/src/sys/netpfil/pf/pf_ruleset.c:71:39: warning: type specifier =

> missing, defaults to
> 'int' [-Wimplicit-int] VNET_DEFINE(struct pf_kanchor_global,   =

> pf_anchors);
>                                         ^
> /usr/src/sys/netpfil/pf/pf_ruleset.c:71:1: warning: type specifier =

> missing, defaults to
> 'int' [-Wimplicit-int] VNET_DEFINE(struct pf_kanchor_global,   =

> pf_anchors);
> ^
> /usr/src/sys/netpfil/pf/pf_ruleset.c:72:33: warning: type specifier =

> missing, defaults to
> 'int' [-Wimplicit-int] VNET_DEFINE(struct pf_kanchor,          =

> pf_main_anchor);
>                                         ^
> /usr/src/sys/netpfil/pf/pf_ruleset.c:72:1: warning: type specifier =

> missing, defaults to
> 'int' [-Wimplicit-int] VNET_DEFINE(struct pf_kanchor,          =

> pf_main_anchor);
> ^
> /usr/src/sys/netpfil/pf/pf_ruleset.c:72:1: error: conflicting types =

> for 'VNET_DEFINE'
> /usr/src/sys/netpfil/pf/pf_ruleset.c:71:1: note: previous declaration =

> is here
> VNET_DEFINE(struct pf_kanchor_global,   pf_anchors);
>
>
What architecture are you building for? What kernel config? Do you have =

anything in src.conf or make.conf?

Regards,
Kristof



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1D693FF6-3D56-40C0-A058-5EFF0E3058FD>