From: James Edward Gray II Date: 2010-02-05T02:07:13+09:00 Subject: Re: ANN: Ruby 1.8.6 pl398 released On Feb 4, 2010, at 10:33 AM, Kirk Haines wrote: > fixes a bug with extensions on Snow Leopard (thanks James!) Don't thank me yet. Your preview worked for me, but this final version does not. :( Here's the error: $ make gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c array.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c bignum.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c class.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c compar.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c dir.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c dln.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c enum.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c error.c gcc -D_XOPEN_SOURCE=1 -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -c eval.c eval.c: In function ‘rb_eval_string_wrap’: eval.c:1743: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_eval_cmd’: eval.c:1884: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘call_trace_func’: eval.c:2735: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_raise_jump’: eval.c:4760: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘method_missing’: eval.c:5684: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_call0’: eval.c:5847: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_f_eval’: eval.c:6634: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘exec_under’: eval.c:6658: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_load’: eval.c:6894: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘call_end_proc’: eval.c:7924: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘rb_f_END’: eval.c:7937: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘mproc’: eval.c:9557: warning: assignment discards qualifiers from pointer target type eval.c: In function ‘thread_timer’: eval.c:12010: error: expected expression before ‘{’ token eval.c:12024: error: expected ‘;’ before ‘}’ token eval.c: At top level: eval.c:12026: error: expected identifier or ‘(’ before ‘return’ eval.c:12027: error: expected identifier or ‘(’ before ‘}’ token eval.c: In function ‘rb_thread_start_timer’: eval.c:12038: error: expected expression before ‘{’ token eval.c:12044: error: expected ‘;’ before ‘}’ token eval.c: At top level: eval.c:12045: error: expected identifier or ‘(’ before ‘}’ token eval.c: In function ‘rb_thread_stop_timer’: eval.c:12051: error: expected expression before ‘{’ token eval.c:12053: error: expected ‘;’ before ‘}’ token eval.c: At top level: eval.c:12054: error: expected ‘)’ before ‘.’ token eval.c:12055: warning: data definition has no type or storage class eval.c:12055: error: non-static declaration of ‘thread_init’ follows static declaration eval.c:11951: error: previous declaration of ‘thread_init’ was here eval.c:12056: error: expected identifier or ‘(’ before ‘}’ token eval.c: In function ‘rb_child_atfork’: eval.c:12061: error: ‘time_thread_alive_p’ undeclared (first use in this function) eval.c:12061: error: (Each undeclared identifier is reported only once eval.c:12061: error: for each function it appears in.) eval.c: In function ‘rb_thread_cancel_timer’: eval.c:12068: error: ‘time_thread_alive_p’ undeclared (first use in this function) eval.c:12070: error: incompatible type for argument 1 of ‘pthread_cancel’ eval.c:12071: error: incompatible type for argument 1 of ‘pthread_join’ {standard input}:unknown:Undefined local symbol LC185 {standard input}:unknown:Undefined local symbol LC311 {standard input}:unknown:Undefined local symbol LC317 {standard input}:unknown:Undefined local symbol LC319 {standard input}:unknown:Undefined local symbol LC333 make: *** [eval.o] Error 1 I configured it with: ./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1 --with-readline-dir=/usr/local James Edward Gray II