Ethereal-dev: [Ethereal-dev] FW: Compile error - 'ETHER_PREFIX' : undeclared identifier

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gilles Dufour" <gdufour@xxxxxxxxx>
Date: Tue, 11 Oct 2005 19:09:44 +0200
Hi,

With 0.10.9 I was able to compile without any problem.
Installed 0.10.12 today and I'm unable to compile anymore.
I'm getting the following error

<...>
        d:\cygwin\bin\bison.exe  -d -p ascend ascend-grammar.y -o
ascend-grammar .c
        d:\cygwin\bin\flex.exe -Pascend -oascend-scanner.c ascend-scanner.l
        d:\cygwin\bin\bison.exe  -d -p ascend ascend-grammar.y -o
ascend-grammar .c
        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H
/ID:\CVS\ethereal\libs\ glib\include\glib-2.0
/ID:\CVS\ethereal\libs\glib\lib\glib-2.0\include /ID:\CVS
\ethereal\libs\zlib123-dll\include /ID:\CVS\ethereal\libs\WPdpack/include
-D_U_ ="" /Zi /W3 -Fd.\ -c ascend-grammar.c ascend-scanner.c Microsoft (R)
32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C)
Microsoft Corp 1984-1998. All rights reserved.

ascend-grammar.c
ascend-grammar.y(383) : warning C4028: formal parameter 5 different from
declara tion ascend-scanner.c
ascend-scanner.l(116) : error C2065: 'ETHER_PREFIX' : undeclared identifier
ascend-scanner.l(122) : error C2065: 'ISDN_PREFIX' : undeclared identifier
ascend-scanner.l(325) : error C2065: 'SLASH_SUFFIX' : undeclared identifier
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio\VC98\bin\N MAKE.EXE"' : return code '0x2'
Stop.

D:\CVS\ethereal-svn\ethereal-svn>


These prefixes come from ascend-scanner.l at

<INITIAL,sc_gen_byte>{ETHER_PFX} {
  BEGIN(sc_ether_direction);
  ascendlval.d = ASCEND_PFX_ETHER;
  return ETHER_PREFIX;
}

Any idea how to solve this issue ?

Thanks,

Gilles.