Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Current master not compiling

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 4 Apr 2016 10:21:25 -0700
On Apr 4, 2016, at 4:05 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

> But dfilter is built with lemon isn't it?

Lemon *and* Flex.

What happens if, for example, you remove all the following files:

	epan\dfilter\scanner.c
	epan\dfilter\scanner_lex.h
	epan\diam_dict.c
	epan\diam_dict_lex.h
	epan\dtd_parse.c
	epan\dtd_parse_lex.h
	epan\dtd_preparse.c
	epan\dtd_preparse_lex.h
	epan\radius_dict.c
	epan\radius_dict_lex.h
	epan\uat_load.c
	epan\uat_load_lex.h
	plugins\mate\mate_parser.c
	plugins\mate\mate_parser_lex.h
	plugins\wimaxasncp\wimaxasncp_dict.c
	plugins\wimaxasncp\wimaxasncp_dict_lex.h
	text2pcap-scanner.c
	text2pcap-scanner_lex.h
	ui\text_import_scanner.c
	ui\text_import_scanner_lex.h
	wiretap\ascend.c
	wiretap\ascend.h
	wiretap\ascend_scanner.c
	wiretap\ascend_scanner_lex.h
	wiretap\k12text.c
	wiretap\k12text_lex.h

and then try doing a rebuild?

For users on UN*Xes, that's

	epan/dfilter/scanner.c
	epan/dfilter/scanner_lex.h
	epan/diam_dict.c
	epan/diam_dict_lex.h
	epan/dtd_parse.c
	epan/dtd_parse_lex.h
	epan/dtd_preparse.c
	epan/dtd_preparse_lex.h
	epan/radius_dict.c
	epan/radius_dict_lex.h
	epan/uat_load.c
	epan/uat_load_lex.h
	plugins/mate/mate_parser.c
	plugins/mate/mate_parser_lex.h
	plugins/wimaxasncp/wimaxasncp_dict.c
	plugins/wimaxasncp/wimaxasncp_dict_lex.h
	text2pcap-scanner.c
	text2pcap-scanner_lex.h
	ui/text_import_scanner.c
	ui/text_import_scanner_lex.h
	wiretap/ascend.c
	wiretap/ascend.h
	wiretap/ascend_scanner.c
	wiretap/ascend_scanner_lex.h
	wiretap/k12text.c
	wiretap/k12text_lex.h

For autotools users, "make maintainerclean", followed by re-running autogen.sh, re-running configure, and rebuilding should suffice.  For nmake users, "nmake -f Makefile.nmake maintainerclean" and rebuilding should suffice.  I'm not sure what the equivalent would be for CMake.