[Bug #2735] miniruby make failed on powerpc-darwin9.8.0

Bug #2735: miniruby make failed on powerpc-darwin9.8.0
http://redmine.ruby-lang.org/issues/show/2735

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: build
ruby -v: ruby 1.9.2dev [powerpc-darwin9.8.0]

powerpc e$B$Ne(B Mac OS X e$B$Ge(B miniruby e$B$Ne(B make
e$B$K<:GT$7$^$9!#e(B

IRC e$B$G65$($F$b$i$C$?OC$@$He(B r26401 e$B$G$N=$@5O3$l$Ge(B
missing/alloca.c e$B$Ne(B
RUBY_LIB e$B$re(B RUBY_LIB_PREFIX e$B$K$9$k$@$1$GNI$5$=$&$H8@$&OC$G!"e(B
e$B<B:]$K;n$7$F$$?$H$3$m!"e(Bmake
e$B=PMh$k$h$&$K$J$C$?$N$G8e$G%3%
%C%H$7$^$9!#e(B

gcc -O2 -g -W -Wall -Wformat=2 -Wundef -Wno-parentheses
-Wno-unused-parameter -Wno-missing-field-initializers -pipe -L.
-Wl,-u,_objc_msgSend main.o dmydln.o dmyencoding.o dmyversion.o
miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o enum.o
enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o
io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o
random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o
regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o
string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o
iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o
utf_8.o newline.o alloca.o dmyext.o -lpthread -ldl -lobjc -o miniruby
Undefined symbols:
“_xfree”, referenced from:
_alloca in alloca.o
“_xmalloc”, referenced from:
_alloca in alloca.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1
exit 2

Index: missing/alloca.c

— missing/alloca.c (revision 26632)
+++ missing/alloca.c (working copy)
@@ -54,7 +54,7 @@

#define NULL 0 /* null pointer constant
*/

-#ifdef RUBY_LIB
+#ifdef RUBY_LIB_PREFIX
#define xmalloc ruby_xmalloc
#define xfree ruby_xfree
#endif

e$B%A%1%C%He(B #2735 e$B$,99?7$5$l$^$7$?!#e(B (by Anonymous)

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

This issue was solved with changeset r26643.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/2735