Bug #874
cannot make with bison-2.4.1
| Status: | Closed | Start date: | 12/14/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | core | |||
| Target version: | 1.9.1 Release Candidate | |||
| ruby -v: |
Description
parse.[ch]から #define tLAST_TOKEN 376 などの#defineがなくなっていて、ビルドできません。 $ 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 ‘tUPLUS’ parse.h:105: error: previous definition of ‘tUPLUS’ was here ../id.h:37: error: redeclaration of enumerator ‘tUMINUS’ parse.h:106: error: previous definition of ‘tUMINUS’ was here (以下略)
Associated revisions
* id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too.
[ruby-dev:37436]
History
Updated by Yuki Sonoda about 3 years ago
- Target version set to 1.9.1 Release Candidate
Updated by Nobuyoshi Nakada about 3 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r20746.