From: Rick DeNatale Date: 2009-11-24T00:18:43+09:00 Subject: [ruby-core:26874] Re: Ruby constant lookup patch -p1 <~/Downloads/class_eval_1119.diff patching file compile.c patching file eval.c patching file insns.def patching file node.h patching file vm_core.h patching file vm_eval.c Hunk #2 succeeded at 1153 (offset 11 lines). Hunk #3 succeeded at 1181 (offset 11 lines). Hunk #4 succeeded at 1200 (offset 11 lines). Hunk #5 succeeded at 1298 (offset 11 lines). Hunk #6 succeeded at 1354 (offset 11 lines). patching file vm_insnhelper.c ~/rubysource/ruby1.9 [svn:] ��� rm lex.c ~/rubysource/ruby1.9 [svn:] ��� make gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o main.o -c main.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o miniprelude.o -c miniprelude.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o class.o -c class.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o enum.o -c enum.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o error.o -c error.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o eval.o -c eval.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o load.o -c load.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o proc.o -c proc.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o gc.o -c gc.c gc.c: In function ���rb_node_newnode���: gc.c:1105: warning: implicit conversion shortens 64-bit value into a 32-bit value + cp ./lex.c.blt lex.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o parse.o -c parse.c parse.y:9840: error: redefinition of ���rb_reserved_word��� keywords:82: error: previous definition of ���rb_reserved_word��� was here parse.y: In function ���rb_reserved_word���: parse.y:9841: warning: return makes pointer from integer without a cast make: *** [parse.o] Error 1 Here's the lex.c (I just realized that this was generated by lex/flex On Mon, Nov 23, 2009 at 8:51 AM, Shugo Maeda wrote: > Hi, > > 2009/11/23 Rick DeNatale : >> I did an svn update, applied the patch, then >> ��autoconf >> ��./configure >> make >> >> and get a syntax error in lex.c >> >> clude/x86_64-darwin10.2.0 -I./include -I. -DRUBY_EXPORT >> -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE �� -o parse.o -c parse.c >> In file included from parse.y:6049: >> lex.c:1: error: expected identifier or ���(��� before ���<<��� token >> >> Your patch doesn't seem to touch this file. So i did >> svn revert -R . >> make clean >> make >> >> and got the same error. > > Can you try the following commands? > > $ rm lex.c > $ make > > If it fails, please show me your lex.c. > > -- > Shugo Maeda > > -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale