Wireshark-dev: [Wireshark-dev] Unable to compile latest master

From: Ivan Nardi <nardi.ivan@xxxxxxxxx>
Date: Mon, 4 Oct 2021 15:29:27 +0200
Hi
I am not able to compile the latest master, even if I start from
scratch (on ubuntu 20.04). Everything was fine until 1-2 weeks ago.

ivan@ivan-Latitude-E6540:~/svnrepos/wireshark(master)$ mkdir
wireshark-master-asan
ivan@ivan-Latitude-E6540:~/svnrepos/wireshark(master)$ cd wireshark-master-asan/
ivan@ivan-Latitude-E6540:~/svnrepos/wireshark/wireshark-master-asan(master)$
cmake .. -DENABLE_ASAN=ON -DENABLE_UBSAN=ON
[...]
ivan@ivan-Latitude-E6540:~/svnrepos/wireshark/wireshark-master-asan(master)$
make -j5
[...]
[  9%] Generating grammar.c, grammar.h, grammar.out
[  9%] Generating scanner.c, scanner_lex.h
[  9%] Building C object wsutil/CMakeFiles/wsutil.dir/802_11-utils.c.o
Scanning dependencies of target dfilter
[  9%] Building C object epan/dfilter/CMakeFiles/dfilter.dir/dfilter.c.o
[  9%] Building C object wsutil/CMakeFiles/wsutil.dir/adler32.c.o
/home/ivan/svnrepos/wireshark/epan/dfilter/dfilter.c: In function ‘tokenstr’:
/home/ivan/svnrepos/wireshark/epan/dfilter/dfilter.c:229:8: error:
‘TOKEN_WHITESPACE’ undeclared (first use in this function); did you
mean ‘TOKEN_TEST_GE’?
  229 |   case TOKEN_WHITESPACE: return "WHITESPACE";
      |        ^~~~~~~~~~~~~~~~
      |        TOKEN_TEST_GE
/home/ivan/svnrepos/wireshark/epan/dfilter/dfilter.c:229:8: note: each
undeclared identifier is reported only once for each function it
appears in
/home/ivan/svnrepos/wireshark/epan/dfilter/dfilter.c:230:8: error:
‘TOKEN_DOTDOT’ undeclared (first use in this function); did you mean
‘TOKEN_COLON’?
  230 |   case TOKEN_DOTDOT: return "DOTDOT";
      |        ^~~~~~~~~~~~
      |        TOKEN_COLON
make[2]: *** [epan/dfilter/CMakeFiles/dfilter.dir/build.make:82:
epan/dfilter/CMakeFiles/dfilter.dir/dfilter.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7040:
epan/dfilter/CMakeFiles/dfilter.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


Since everythings is working on Gitlab CI, it should be something on
my side... any clues?
Thanks

Ivan