[Bug #874] cannot make with bison-2.4.1


#1

Bug #874: cannot make with bison-2.4.1
http://redmine.ruby-lang.org/issues/show/874

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: core

parse.[ch]e$B$+$ie(B
#define tLAST_TOKEN 376
e$B$J$I$Ne(B#definee$B$,$J$/$J$C$F$$$F!"%S%k%I$G$-$^$;$s!#e(B

$ rm parse.c
$ make
bison -d -o y.tab.c …/parse.y
sed -f …/tool/ytab.sed -e “/^#/s!y.tab.c!parse.c!” y.tab.c >
parse.c.new
sed -e “/^#line.*y.tab.h/d;/^#line.*parse.y/d” y.tab.h > parse.h.new
parse.h updated
gcc -DRUBY_DEBUG_ENV -O2 -g -Wall -Wformat=2 -Wundef -Wno-parentheses
-fPIC -I. -I.ext/include/x86_64-linux -I…/include -I… -DRUBY_EXPORT
-o parse.o -c parse.c
In file included from …/parse.y:23:
…/id.h:36: error: redeclaration of enumerator e$B!Fe(BtUPLUSe$B!Ge(B
parse.h:105: error: previous definition of e$B!Fe(BtUPLUSe$B!Ge(B was
here
…/id.h:37: error: redeclaration of enumerator e$B!Fe(BtUMINUSe$B!Ge(B
parse.h:106: error: previous definition of e$B!Fe(BtUMINUSe$B!Ge(B was
here
(e$B0J2<N,e(B)


#2

e$B%A%1%C%He(B #874 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r20746.

http://redmine.ruby-lang.org/issues/show/874