# \[Bug #874\] cannot make with bison-2.4.1

**URL:** <https://www.ruby-forum.com/t/bug-874-cannot-make-with-bison-2-4-1/155606>\
**Category:** Development\
**Created:** [December 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/bug-874-cannot-make-with-bison-2-4-1/155606 "2008-12-14T16:00:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [December 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/bug-874-cannot-make-with-bison-2-4-1/155606/1 "2008-12-14T16:00:52Z")

</div>

Bug #874: cannot make with bison-2.4.1  
[http://redmine.ruby-lang.org/issues/show/874](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)

---

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [December 15, 2008, 7:17am UTC](https://www.ruby-forum.com/t/bug-874-cannot-make-with-bison-2-4-1/155606/2 "2008-12-15T07:17:22Z")

</div>

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](http://redmine.ruby-lang.org/issues/show/874)
