Skip to contentSkip to conversation

build failure since commit 'xt: Rewrite unsupported compat expression dumping'

DISCUSSION Neels Hofmeyr 2 participants 5 messages Jan 11, 2023 – Jan 12, 2023 netfilter

lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
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

#1 lore raw

Hi Neels,

Quoted 22 lines · Neels Hofmeyr

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 <[email protected]>
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:

Quoted 9 lines

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.

#2 lore raw

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

#3 lore raw
Quoted 3 lines · Neels Hofmeyr

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.

#4 lore raw
Quoted 6 lines · Pablo Neira Ayuso
Quoted 3 lines · Neels Hofmeyr

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.