Wireshark-dev: Re: [Wireshark-dev] Current master not compiling
From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Mon, 4 Apr 2016 14:25:32 +0100
On 4 April 2016 at 12:05, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
Hi,
I'm also facing issues on MSVC 2015 and Cmake
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(214): error C2065: 'yyscan_t': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(214): error C2146: syntax error: missing ';' before identifier 'scanner' [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(214): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(215): error C2065: 'YY_BUFFER_STATE': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(215): error C2146: syntax error: missing ';' before identifier 'in_buffer' [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(215): error C2065: 'in_buffer': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(235): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(243): error C2065: 'in_buffer': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(243): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(250): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(256): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(319): error C2065: 'in_buffer': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(319): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
C:\Development\ewireshark\trunk\epan\dfilter\dfilter.c(320): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\epan\dfilter\dfilter.vcxproj]
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\Development\wsbuild64\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\Development\wsbuild64\ui\ui.vcxproj.metaproj" (default target) (113) ->
"C:\Development\wsbuild64\ui\ui.vcxproj" (default target) (165) ->
C:\Development\ewireshark\trunk\ui\text_import.c(909): error C2065: 'yyscan_t': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(909): error C2146: syntax error: missing ';' before identifier 'scanner' [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(909): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(1021): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(1027): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(1029): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
C:\Development\ewireshark\trunk\ui\text_import.c(1031): error C2065: 'scanner': undeclared identifier [C:\Development\wsbuild64\ui\ui.vcxproj]
But dfilter is built with lemon isn't it? Flex is Cygwin 2.5.39-1 and there's not any newer version available...
On Windows, using CMake, I had to delete a lot of lex detritus grammar.[c|h], xxx.c, xxx_lex.h in my repo to get rid of the above errors.
I used git clean -dfx, maybe check first with git clean -dnx to see what will be deleted.
On Windows at least, I suspect this may be down to the difference between quotes and angle brackets in includes. We've been down this road before.
I'm not sure how the lex detritus got there, it didn't come back after the build.
--
Graham Bloice
- Follow-Ups:
- Re: [Wireshark-dev] Current master not compiling
- From: Anders Broman
- Re: [Wireshark-dev] Current master not compiling
- References:
- [Wireshark-dev] Current master not compiling
- From: Dario Lombardo
- Re: [Wireshark-dev] Current master not compiling
- From: Guy Harris
- Re: [Wireshark-dev] Current master not compiling
- From: Michal Labedzki
- Re: [Wireshark-dev] Current master not compiling
- From: Anders Broman
- [Wireshark-dev] Current master not compiling
- Prev by Date: Re: [Wireshark-dev] Current master not compiling
- Next by Date: Re: [Wireshark-dev] Current master not compiling
- Previous by thread: Re: [Wireshark-dev] Current master not compiling
- Next by thread: Re: [Wireshark-dev] Current master not compiling
- Index(es):