Project

General

Profile

Bug #874

cannot make with bison-2.4.1

Added by znz (Kazuhiro NISHIYAMA) over 10 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
ruby -v:
Backport:
[ruby-dev:37436]

Description

=begin
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
(以下略)
=end

History

#1

Updated by yugui (Yuki Sonoda) over 10 years ago

  • Target version set to 1.9.1 Release Candidate

=begin

=end

#2

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20746.
=end

Also available in: Atom PDF