Re: having a hard time compling moto_0.18 on freebsd
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Tue, 4 Mar 2003 16:31:55 -0500
| Newsgroups | gmane.comp.lang.moto.user |
|---|---|
| Message-ID | <[email protected]> |
Wow ... I'm surprised that ever worked! Thanks for finding this :) After removing the second %token <ivs> ECONTINUE on line 188 of moto.y you should just be able to 'make clean' and then 'make' and everything should be fine. The reason you need to 'make clean' first is that bison writes out a moto.tab.h file that uses that %token information which is included by the lexer which had already been built before you continued the make. Thanks again for finding this one! -Dave On Tuesday, March 4, 2003, at 04:07 PM, Jack wrote: > Every runs fine with this config: > > ./configure --with-apache --with-mysql=/usr/local > > make give this: > moto.y:194.14-22: type redeclaration for ECONTINUE > *** Error code 1 > > Okay, so i remove the extra type declaration, and run make again, and I > get... > > touch timestamp; > Making all in src/codex > Making all in src/moto > bison -d moto.y > flex -I moto.l > gcc -I. -I/opt/jax/moto_0_18_0 -DHAVE_RCONFIG_H > -I/opt/jax/moto_0_18_0/include -DHAVE_CONFIG_H -g -O2 -Wall -c lex.yy.c > -o lex.yy.o > gcc -I. -I/opt/jax/moto_0_18_0 -DHAVE_RCONFIG_H > -I/opt/jax/moto_0_18_0/include -DHAVE_CONFIG_H -g -O2 -Wall -c > moto.tab.c -o moto.tab.o > moto.tab.c: In function `yyparse': > moto.tab.c:3129: warning: implicit declaration of function `yylex' > moto.y:652: syntax error before `}' > moto.y:653: syntax error before `}' > moto.y:720: syntax error before `}' > moto.y:722: syntax error before `}' > moto.y:900: syntax error before `}' > moto.y:901: syntax error before `}' > moto.y:1223: syntax error before `}' > moto.y:1225: syntax error before `}' > moto.y:1227: syntax error before `}' > moto.y:1233: syntax error before `}' > moto.y:1257: syntax error before `static' > moto.y:1279: `p' undeclared (first use in this function) > moto.y:1279: (Each undeclared identifier is reported only once > moto.y:1279: for each function it appears in.) > moto.y:1279: `env' undeclared (first use in this function) > moto.y:1281: `value' undeclared (first use in this function) > moto.y:1285: `svs' undeclared (first use in this function) > moto.y:1293: syntax error before `static' > moto.y:1299: `n' undeclared (first use in this function) > moto.y:1318: syntax error before `static' > moto.y:1328: warning: unreachable code at beginning of switch statement > moto.y:1385: warning: control reaches end of non-void function > moto.y: At top level: > moto.y:78: warning: `nullcell' used but never defined > moto.y:79: warning: `b' used but never defined > moto.y:80: warning: `c' used but never defined > moto.y:91: warning: `IVSMetaInfo' used but never defined > moto.y:92: warning: `SVSMetaInfo' used but never defined > moto.y:93: warning: `UCMetaInfo' used but never defined > *** Error code 1 > > Stop in /opt/jax/moto_0_18_0/src/moto. > *** Error code 1 > > Stop in /opt/jax/moto_0_18_0. > > > Okay, I don't know what to do here. I looked at line 652 where it was > moaning about it, and that looks fine to me, so I don't know. > > I thought maybe when I removed that ECONTINUE type declaration, I > screwed something up, so I removed the motodir, and untarred the moto > distribution again, and ended up with the same results. > > Which way is out? > > Thanks, > Jack > >