netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* build failure since commit 'xt: Rewrite unsupported compat expression dumping'
@ 2023-01-11  0:00 Neels Hofmeyr
  2023-01-11  9:12 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Neels Hofmeyr @ 2023-01-11  0:00 UTC (permalink / raw)
  To: netfilter-devel

Hi,

building current master of https://git.netfilter.org/nftables i get a build
error that i didn't see a few weeks ago. I thought I'd report it here.

I bisected to identify this commit to be the start of build failures for me:

 commit 79195a8cc9e9d9cf2d17165bf07ac4cc9d55539f
 Author: Phil Sutter <phil@nwl.cc>
 Date:   Thu Nov 24 14:17:17 2022 +0100
 "xt: Rewrite unsupported compat expression dumping"

This is the build error at above commit:

   CC       xt.lo
   CC       libparser_la-scanner.lo
 ../src/nftables/src/scanner.l: In function 'nft_lex':
 ../src/nftables/src/scanner.l:804:60: error: 'XT' undeclared (first use in this function); did you mean 'CT'?
 ../src/nftables/src/scanner.l:804:60: note: each undeclared identifier is reported only once for each function it appears in

On 'master', the build error is different:

   CC       libparser_la-scanner.lo
 ../src/nftables/src/scanner.l: In function 'nft_lex':
 ../src/nftables/src/scanner.l:625:10: error: 'VXLAN' undeclared (first use in this function); did you mean 'VLAN'?
 ../src/nftables/src/scanner.l:625:10: note: each undeclared identifier is reported only once for each function it appears in
 ../src/nftables/src/scanner.l:626:10: error: 'VNI' undeclared (first use in this function)
 ../src/nftables/src/scanner.l:628:10: error: 'GENEVE' undeclared (first use in this function)
 ../src/nftables/src/scanner.l:630:61: error: 'GRE' undeclared (first use in this function); did you mean 'GTE'?
 ../src/nftables/src/scanner.l:631:61: error: 'GRETAP' undeclared (first use in this function)
 ../src/nftables/src/scanner.l:812:60: error: 'XT' undeclared (first use in this function); did you mean 'CT'?

~N

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build failure since commit 'xt: Rewrite unsupported compat expression dumping'
  2023-01-11  0:00 build failure since commit 'xt: Rewrite unsupported compat expression dumping' Neels Hofmeyr
@ 2023-01-11  9:12 ` Pablo Neira Ayuso
  2023-01-12  2:20   ` Neels Hofmeyr
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2023-01-11  9:12 UTC (permalink / raw)
  To: Neels Hofmeyr; +Cc: netfilter-devel

Hi Neels,

On Wed, Jan 11, 2023 at 01:00:17AM +0100, Neels Hofmeyr wrote:
> Hi,
> 
> building current master of https://git.netfilter.org/nftables i get a build
> error that i didn't see a few weeks ago. I thought I'd report it here.
> 
> I bisected to identify this commit to be the start of build failures for me:
> 
>  commit 79195a8cc9e9d9cf2d17165bf07ac4cc9d55539f
>  Author: Phil Sutter <phil@nwl.cc>
>  Date:   Thu Nov 24 14:17:17 2022 +0100
>  "xt: Rewrite unsupported compat expression dumping"
> 
> This is the build error at above commit:
> 
>    CC       xt.lo
>    CC       libparser_la-scanner.lo
>  ../src/nftables/src/scanner.l: In function 'nft_lex':
>  ../src/nftables/src/scanner.l:804:60: error: 'XT' undeclared (first use in this function); did you mean 'CT'?
>  ../src/nftables/src/scanner.l:804:60: note: each undeclared identifier is reported only once for each function it appears in
> 
> On 'master', the build error is different:
> 
>    CC       libparser_la-scanner.lo
>  ../src/nftables/src/scanner.l: In function 'nft_lex':
>  ../src/nftables/src/scanner.l:625:10: error: 'VXLAN' undeclared (first use in this function); did you mean 'VLAN'?
>  ../src/nftables/src/scanner.l:625:10: note: each undeclared identifier is reported only once for each function it appears in
>  ../src/nftables/src/scanner.l:626:10: error: 'VNI' undeclared (first use in this function)
>  ../src/nftables/src/scanner.l:628:10: error: 'GENEVE' undeclared (first use in this function)
>  ../src/nftables/src/scanner.l:630:61: error: 'GRE' undeclared (first use in this function); did you mean 'GTE'?
>  ../src/nftables/src/scanner.l:631:61: error: 'GRETAP' undeclared (first use in this function)
>  ../src/nftables/src/scanner.l:812:60: error: 'XT' undeclared (first use in this function); did you mean 'CT'?

I cannot reproduce this.

Could you have a look at src/parser_bison.h? This file is
autogenerated by bison and it is included by the src/scanner.c (which
is also autogenerated).

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build failure since commit 'xt: Rewrite unsupported compat expression dumping'
  2023-01-11  9:12 ` Pablo Neira Ayuso
@ 2023-01-12  2:20   ` Neels Hofmeyr
  2023-01-12 12:07     ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Neels Hofmeyr @ 2023-01-12  2:20 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

I took a closer look: dropped the build dir and did 'git clean -dxf' -- after
that indeed the build works! Possibly there is a missing dependency in the
makefiles. I suppose I should have tried that before writing the mail, sorry...

~N

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build failure since commit 'xt: Rewrite unsupported compat expression dumping'
  2023-01-12  2:20   ` Neels Hofmeyr
@ 2023-01-12 12:07     ` Pablo Neira Ayuso
  2023-01-12 12:12       ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira Ayuso @ 2023-01-12 12:07 UTC (permalink / raw)
  To: Neels Hofmeyr; +Cc: netfilter-devel

On Thu, Jan 12, 2023 at 03:20:25AM +0100, Neels Hofmeyr wrote:
> I took a closer look: dropped the build dir and did 'git clean -dxf' -- after
> that indeed the build works! Possibly there is a missing dependency in the
> makefiles. I suppose I should have tried that before writing the mail, sorry...

No problem, thanks for confirming things work fine there.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build failure since commit 'xt: Rewrite unsupported compat expression dumping'
  2023-01-12 12:07     ` Pablo Neira Ayuso
@ 2023-01-12 12:12       ` Pablo Neira Ayuso
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2023-01-12 12:12 UTC (permalink / raw)
  To: Neels Hofmeyr; +Cc: netfilter-devel

On Thu, Jan 12, 2023 at 01:07:44PM +0100, Pablo Neira Ayuso wrote:
> On Thu, Jan 12, 2023 at 03:20:25AM +0100, Neels Hofmeyr wrote:
> > I took a closer look: dropped the build dir and did 'git clean -dxf' -- after
> > that indeed the build works! Possibly there is a missing dependency in the
> > makefiles. I suppose I should have tried that before writing the mail, sorry...
> 
> No problem, thanks for confirming things work fine there.

Still, for some reason there, it seems the .c files that are
autogenerated by bison and flex were not refreshed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-12 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11  0:00 build failure since commit 'xt: Rewrite unsupported compat expression dumping' Neels Hofmeyr
2023-01-11  9:12 ` Pablo Neira Ayuso
2023-01-12  2:20   ` Neels Hofmeyr
2023-01-12 12:07     ` Pablo Neira Ayuso
2023-01-12 12:12       ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).