[Dock-fans] problem with parser generator

Scott Brozell sbrozell at rci.rutgers.edu
Tue Jun 9 13:24:30 PDT 2009


Hi,

On Fri, Jun 05, 2009 at 01:32:43AM +1200, Davide Mercadante wrote:
> 
> I have a problem during the installation of DOCK 6.2. I got the following
> error in the parser generation step:
> 
> gcc -c -O2 -DSYSV parser.c
> btyaccpa.ske:111: error: expected specifier-qualifier-list before
> ‘yyparsestate’
> btyaccpa.ske:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> btyaccpa.ske:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> btyaccpa.ske:180: error: expected ‘)’ before ‘*’ token
> btyaccpa.ske:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> btyaccpa.ske:182: error: expected ‘)’ before ‘*’ token
> btyaccpa.ske: In function ‘yyparse’:
> btyaccpa.ske:193: error: ‘yyparsestate’ undeclared (first use in this
> function)
> btyaccpa.ske:193: error: (Each undeclared identifier is reported only once
> btyaccpa.ske:193: error: for each function it appears in.)
> btyaccpa.ske:193: error: ‘yyerrctx’ undeclared (first use in this function)
> btyaccpa.ske:206: error: ‘yyps’ undeclared (first use in this function)
> btyaccpa.ske:257: error: ‘yypath’ undeclared (first use in this function)
> btyaccpa.ske:265: error: ‘save’ undeclared (first use in this function)
> btyaccpa.ske:309: error: ‘new’ undeclared (first use in this function)
> btyaccpa.ske:309: error: expected ‘;’ before ‘Yshort’
> btyaccpa.ske:310: error: expected ‘;’ before ‘YYSTYPEt’
> btyaccpa.ske:312: error: expected ‘;’ before ‘int’
> btyaccpa.ske: In function ‘YYLex1’:
> btyaccpa.ske:739: error: ‘yyps’ undeclared (first use in this function)
> btyaccpa.ske: In function ‘yyexpand’:
> btyaccpa.ske:762: error: ‘new’ undeclared (first use in this function)
> btyaccpa.ske:762: error: expected ‘;’ before ‘YYSTYPEt’
> btyaccpa.ske:763: error: expected ‘;’ before ‘int’
> btyaccpa.ske:764: error: expected ‘;’ before ‘Yshort’
> btyaccpa.ske:768: error: ‘delete’ undeclared (first use in this function)
> btyaccpa.ske:768: error: expected expression before ‘]’ token
> btyaccpa.ske:769: error: expected expression before ‘]’ token
> btyaccpa.ske:770: error: expected expression before ‘]’ token
> btyaccpa.ske: At top level:
> btyaccpa.ske:794: error: expected ‘)’ before ‘*’ token
> btyaccpa.ske:814: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> btyaccpa.ske:825: error: expected ‘)’ before ‘*’ token
> make[2]: *** [parser.o] Errore 1
> make[2]: uscita dalla directory «/home/dmer018/Scrivania/dock6/src/tleap»
> make[1]: *** [utils] Errore 2
> make[1]: uscita dalla directory «/home/dmer018/Scrivania/dock6/src»
> make: *** [install] Errore 2
> 
> is the same error already reported in dock-fans mailing list here:
> 
> http://blur.compbio.ucsf.edu/pipermail/dock-fans/2009-February/001822.html

Probably you need a different parser generator; try byacc:
sudo apt-get install byacc
http://www.howgeek.com/2009/03/03/compiling-micropolis-simcity-on-ubuntu-intrepid-and-jaunty/

Scott



More information about the Dock-fans mailing list