Wireshark mailing list archives
Re: Unable to compile latest master
From: Ivan Nardi <nardi.ivan () gmail com>
Date: Mon, 4 Oct 2021 19:25:46 +0200
Hi João, after executing these commands, everything worked! Thanks very much Not sure what happened, though (git status was "clean") Anyway, thanks a lot Ivan On Mon, 4 Oct 2021 at 18:04, João Valverde via Wireshark-dev <wireshark-dev () wireshark org> wrote:
On 04/10/21 14:29, Ivan Nardi wrote: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?Not sure what is going on there. Those macro symbols are defined in grammar.h. To start from scratch you should run $ git reset --hard $ git checkout master $ git clean -xfd $ git pull in your source dir. Note that this will wipe every modification and untracked file in your tree.Thanks Ivan ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Unable to compile latest master Ivan Nardi (Oct 04)
- Re: Unable to compile latest master João Valverde via Wireshark-dev (Oct 04)
- Re: Unable to compile latest master Ivan Nardi (Oct 04)
- Re: Unable to compile latest master João Valverde via Wireshark-dev (Oct 04)