Ethereal-dev: Re: [Ethereal-dev] fix "parse error" with Debian's flex

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 9 Jul 2003 14:36:28 -0700

On Monday, July 7, 2003, at 9:26 AM, Dermot Bradley wrote:

However the build has failed again later on:

	...

epan/dfilter/libdfilter.a(scanner.o)(.text+0x13af): In function
`df_scanner_file':
../../tools/lemon/lemonflex-tail.inc:37: undefined reference to
`yy_create_buffer'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x13e6): In function
`df_scanner_cleanup':
../../tools/lemon/lemonflex-tail.inc:45: undefined reference to
`yy_delete_buffer'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x1399): In function
`df_scanner_text':
../../tools/lemon/lemonflex-tail.inc:29: undefined reference to
`yy_scan_string'
epan/dfilter/libdfilter.a(scanner.o)(.text+0x13bb): In function
`df_scanner_file':
../../tools/lemon/lemonflex-tail.inc:38: undefined reference to
`yy_switch_to_buffer'
collect2: ld returned 1 exit status

At the beginning of "scanner.c", are there lines like

#define yy_create_buffer df__create_buffer
#define yy_delete_buffer df__delete_buffer
#define yy_scan_buffer df__scan_buffer
#define yy_scan_string df__scan_string
#define yy_scan_bytes df__scan_bytes
#define yy_flex_debug df__flex_debug
#define yy_init_buffer df__init_buffer
#define yy_flush_buffer df__flush_buffer
#define yy_load_buffer_state df__load_buffer_state
#define yy_switch_to_buffer df__switch_to_buffer
#define yyin df_in
#define yyleng df_leng
#define yylex df_lex
#define yyout df_out
#define yyrestart df_restart
#define yytext df_text
#define yywrap df_wrap

? If not, the version of Flex in debian-testing might be mis-handling the "-P" flag, or handling it in ways that cause problems for lemonflex-tail.inc.