Path: utzoo!attcan!uunet!brunix!twl From: twl@cs.brown.edu (Ted "Theodore" (W) Leung) Newsgroups: comp.lang.perl Subject: Building perl with bison Message-ID: <31299@brunix.UUCP> Date: 2 Mar 90 19:08:23 GMT Sender: news@brunix.UUCP Lines: 42 I'm having trouble building perl using bison. If I run Configure and specify bison as the parser generator, then Make uses the wrong set of filenames to generate a parser. I added a -y flag to the Yacc command when $(YACC) = bison, so that it uses the yacc format names. But then I get an error when trying to compiler the scanner.... There must be another bison incompatibility, because when I switched back to yacc. I got everything to build. Does any one know what's going on? I thought this was supposed to work out of the box... Below is a list of the errors I get trying to compile the scanner Expect 25 shift/reduce errors... bison -dy perl.y perl.y contains 25 shift/reduce conflicts. mv y.tab.c perl.c mv y.tab.h perly.h gcc -c -fpcc-struct-return -I/usr/include/sun -O perl.c gcc -c -fpcc-struct-return -I/usr/include/sun -O cons.c gcc -c -fpcc-struct-return -I/usr/include/sun -O perly.c gcc -c -fpcc-struct-return -I/usr/include/sun -O str.c gcc -c -fpcc-struct-return -I/usr/include/sun -O toke.c toke.c: In function yylex: toke.c:196: `yylval' undeclared (first use this function) toke.c:196: (Each undeclared identifier is reported only once toke.c:196: for each function it appears in.) toke.c: In function scanpat: toke.c:1360: `yylval' undeclared (first use this function) toke.c: In function scansubst: toke.c:1468: `yylval' undeclared (first use this function) toke.c: In function scantrans: toke.c:1648: `yylval' undeclared (first use this function) toke.c: In function scanstr: toke.c:1696: `yylval' undeclared (first use this function) make: *** [toke.o] Error 1 Ted -------------------------------------------------------------------- Internet/CSnet: twl@cs.brown.edu | Ted "Theodore" Leung BITNET: twl@BROWNCS.BITNET | Box 1910, Brown University UUCP: uunet!brunix!twl | Providence, RI 02912