[Dibbler-devel] FW: make parser issue

Tomasz Mrugalski thomson at klub.com.pl
Mon Dec 15 04:10:13 CET 2008


On Thu, 20 Nov 2008 somebody known as Sowmya Manjanatha wrote:

> I need some help compiling the dibbler parser.  I encountered a problem
> when compiling dibbler after having compiled the parser.  I did the
> following:
Sorry for the delay, I was on a vacation.
Do you still have this problem? Please switch to more recent Flex.
2.5.33 or later. (recommended solution)

If you really want to stick with 2.5.4 (very old and generates ugly code, 
I'm not sure if you'll be able to compile it with recent gcc), you can 
try this:
Remove any FlexLexer.h from the dibbler tree and replace it with your 
FlexLexer.h version. If I remember correctly, I'm using Flex 2.5.33 
or 2.5.35 (the latest one available, I think).

Hope that helps.

Tomek

>
>
>
> Step 1) make bison
>
> Step 2) touch SrvCfgMgr/SrvLexer.l  and then touch SrvCfgMgr/SrvParser.y
>
> Step 3) make parser
>
> Step 4) make server
>
>
>
> I get the error below.  Note that I haven't actually made any changes to
> SrvLexer.l or SrvParser.y, however I just recompiled the parser.
> Eventually, I do want to add a new option to be accepted as part of
> dibbler-server Config file.  I am using bison that is provided as part
> of dibbler source tree.  The version of flex I am using is flex 2.5.4 on
> a fedora core 3 SMP machine.  Let me know if there is a problem with the
> version of flex I am using or my method of compilation.
>
>
>
> Thanks ,
>
> Sowmya.
>
>
>
>
> In file included from SrvLexer.cpp:241:
>
> ../include/FlexLexer.h:130: error: declaration does not declare anything
>
> ../include/FlexLexer.h:130: error: virtual outside class declaration
>
> ../include/FlexLexer.h:130: error: parse error before numeric constant
>
> SrvLexer.cpp: In member function `virtual int yyFlexLexer::yylex()':
>
> SrvLexer.cpp:1428: error: `yy_current_buffer' undeclared (first use this
>
>   function)
>
> SrvLexer.cpp:1428: error: (Each undeclared identifier is reported only
> once for
>
>   each function it appears in.)
>
> SrvLexer.cpp:1469: warning: label `find_rule' defined but not used
>
> ../include/Container.h: At top level:
>
> SrvLexer.cpp:2863: warning: `void* yy_flex_realloc(void*, unsigned int)'
>
>   defined but not used
>
> make[1]: *** [SrvLexer.o] Err
>
>
>
>
>
>

-- 
Tomasz Mrugalski
tomasz.mrugalski at klub.com.pl
tel. kom. 698-088-272


More information about the Dibbler-devel mailing list