-Lprefix/lib

$B:G6a;n$7$F$$$k%/%m%9%3%s%Q%$%k$J(B CI $B$G!“(B
$B;W$$N)$C$F(B DESTDIR $B$r;H$C$F5$$,$D$$$?$s$G$9$,!”(B
configure $B$K(B --prefix=/usr $B$H;XDj$9$k$H!“(B
/usr $B$K$”$k%i%$%V%i%j$r;H$C$F$7$^$&$3$H$,$"$k$h$&$G$9!#(B

$B%/%m%9%3%s%Q%$%k$J$N$G!“%S%k%I4D6-$N(B /usr
$B$O;H$C$F$[$7$/$J$$$s$G$9$,!”(B
$B$I$&$G$7$g$&$+!#(B

$B<B:]$KLdBj$,=P$?4D6-$O(B buildroot $B$G:n$C$?(B i386 $B4D6-$H!"(B
Android (x86) $B$N4D6-$G$9!#(B
$B%S%k%I4D6-(B (x86_64)
$B$HCfESH>C<$K;w$F$$$k$HLdBj$,5/$-$d$9$$$h$&$G$9!#(B

$B$^$:(B i386 $B$O(B
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-i386/log/20130522T080000Z.diff.html.gz
$B$H$$$&$h$&$K!"(Bcurses $B$N$H$3$m$G(B -ltermcap
$B$,8+$D$+$i$J$$$H$$$&%(%i!<$K$J$C$F$$$^$9!#(B

compiling curses.c
linking shared-object curses.so
/extdisk/chkbuild/buildroot/i386/buildroot-2013.02/output/host/usr/lib/gcc/i586-buildroot-linux-uclibc/4.6.3/…/…/…/…/i586-buildroot-linux-uclibc/bin/ld:
cannot find -ltermcap

ext/curses/mkmf.log $B$r$_$k$H0J2<$N$h$&$K(B -ltermcap
$B$O8+$D$+$C$F$$$^$9!#(B
($B2~9T$rF~$l$F$"$j$^$9(B)

have_library: checking for tgetent() in -ltermcap…
-------------------- yes

“i586-buildroot-linux-uclibc-gcc -o conftest
-I…/…/.ext/include/i586-linux-uclibc -I…/…/./include
-I…/…/./ext/curses
-O3 -fno-fast-math
-ggdb3
-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration
conftest.c
-L. -L…/… -L.
-rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib
-lruby-static -ltermcap -lpthread -ldl -lcrypt -lm -lc”
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘tgetent’ undeclared (first use in this
function)
conftest.c:13:57: note: each undeclared identifier is reported only
once for each function it appears in
conftest.c:13:32: warning: variable ‘p’ set but not used
[-Wunused-but-set-variable]
checked program was:
/* begin */
1: #include “ruby.h”
2:
3: /top/
4: extern int t(void);
5: int main(int argc, char *argv)
6: {
7: if (argc > 1000000) {
8: printf(“%p”, &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { void ((volatile p)()); p = (void (()()))tgetent;
return 0; }
/
end */

$B$=$l$KBP$7!“(Bmake -n
$B$G<B:]$N%3%^%s%I$rD4$Y$F<B9T$9$k$H!”%j%s%/$G$-$^$;$s!#(B

% i586-buildroot-linux-uclibc-gcc -shared
-o …/…/.ext/i586-linux-uclibc/curses.so curses.o
-L. -L…/… -L. -rdynamic -Wl,-export-dynamic
-lncurses -ltermcap -lpthread -ldl -lcrypt -lm -lc
/extdisk/chkbuild/buildroot/i386/buildroot-2013.02/output/host/usr/lib/gcc/i586-buildroot-linux-uclibc/4.6.3/…/…/…/…/i586-buildroot-linux-uclibc/bin/ld:
cannot find -ltermcap
collect2: ld returned 1 exit status

$BHf3S$9$k$H!“(Bmkmf.log $B$K$O(B -L/usr/lib $B$,$”$k$N$G(B
$B;n$7$KB-$7$F$_$k$H%j%s%/$G$-$^$9$,!"$=$l$O$*$=$i$/4V0c$$$G$7$g$&!#(B

$B$^$?!“(BAndroid (x86) $B$G$O!”(B
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-x86android/log/20130522T093235Z.diff.html.gz
$B$H$$$&$h$&$K(B ruby $B$N%j%s%/$N$H$3$m$G<:GT$7$F$$$^$9!#(B

linking ruby
/extdisk/chkbuild/android/x86/bin/…/sysroot/usr/lib/crtbegin_dynamic.o(.text+0x19):
error: undefined reference to ‘__libc_init’
eval_error.c:8: error: undefined reference to ‘__stack_chk_guard’
file.c:1023: error: undefined reference to ‘__stack_chk_guard’
file.c:1066: error: undefined reference to ‘__stack_chk_guard’
$B0J2<N,(B

make -n $B$GD4$Y$k$H<:GT$9$k%3%^%s%I%i%$%s$O0J2<$N$h$&$K$J$C$F$$$^$9!#(B

i686-linux-android-gcc -O3 -fno-fast-math -ggdb3
-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long

-Wno-missing-field-initializers -Wunused-variable
-Werror=pointer-arith
-Werror=write-strings -Werror=declaration-after-statement
-Werror=implicit-function-declaration
-ansi -std=iso9899:199409
-L. -fstack-protector -rdynamic -Wl,-export-dynamic
-fstack-protector -pie
main.o
-Wl,-R -Wl,/usr/lib -L/usr/lib
-lruby-static -ldl -lm
-o ruby

$B$3$N>l9g!"(B-L/usr/lib $B$r:o$k$H%j%s%/[email protected]$7$^$9!#(B

-Lprefix/lib
$B$H$$$&$N$O!“>/$J$/$H$b%/%m%9%3%s%Q%$%k$G$O4V0c$$$@$H;W$&$s$G$9$,!”(B
$B$I$&$G$9$+$M$'!#(B

$B$J$+$@$G$9!#(B

At Wed, 22 May 2013 19:54:26 +0900,
Tanaka A. wrote in [ruby-dev:47363]:

$B%/%m%9%3%s%Q%$%k$J$N$G!"%S%k%I4D6-$N(B /usr $B$O;H$C$F$[$7$/$J$$$s$G$9$,!"(B
$B$I$&$G$7$g$&$+!#(B

$B$?$7$+$K!#(B

$B<B:]$KLdBj$,=P$?4D6-$O(B buildroot $B$G:n$C$?(B i386 $B4D6-$H!"(B
Android (x86) $B$N4D6-$G$9!#(B
$B%S%k%I4D6-(B (x86_64) $B$HCfESH>C<$K;w$F$$$k$HLdBj$,5/$-$d$9$$$h$&$G$9!#(B

$B$=$N(Brbconfig.rb$B$r8+$;$F$b$i$($^$9$+!#(B

2013$BG/(B5$B7n(B24$BF|(B 15:55 Tanaka A. [email protected]:

2013$BG/(B5$B7n(B24$BF|(B 10:39 Nobuyoshi N. [email protected]:

$B<B:]$KLdBj$,=P$?4D6-$O(B buildroot $B$G:n$C$?(B i386 $B4D6-$H!"(B
Android (x86) $B$N4D6-$G$9!#(B
$B%S%k%I4D6-(B (x86_64) $B$HCfESH>C<$K;w$F$$$k$HLdBj$,5/$-$d$9$$$h$&$G$9!#(B

$B$=$N(Brbconfig.rb$B$r8+$;$F$b$i$($^$9$+!#(B

$BE:IU$7$^$9!#0J2<$N$U$?$D$G$9!#(B

$B$*$C$H!"(Br40907 $B$GBP=h:Q$_$G$7$?$+!#(B
$B;n$7$^$9!#(B

2013$BG/(B5$B7n(B24$BF|(B 16:06 Tanaka A. [email protected]:

$B$*$C$H!"(Br40907 $B$GBP=h:Q$_$G$7$?$+!#(B
$B;n$7$^$9!#(B

$B$A$c$s$HD>$C$F$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#(B

http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-i386/log/20130524T200310Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-x86android/log/20130524T213910Z.diff.html.gz

2013$BG/(B5$B7n(B24$BF|(B 10:39 Nobuyoshi N. [email protected]:

$B<B:]$KLdBj$,=P$?4D6-$O(B buildroot $B$G:n$C$?(B i386 $B4D6-$H!"(B
Android (x86) $B$N4D6-$G$9!#(B
$B%S%k%I4D6-(B (x86_64) $B$HCfESH>C<$K;w$F$$$k$HLdBj$,5/$-$d$9$$$h$&$G$9!#(B

$B$=$N(Brbconfig.rb$B$r8+$;$F$b$i$($^$9$+!#(B

$BE:IU$7$^$9!#0J2<$N$U$?$D$G$9!#(B

cross-uclibc-i386-rbconfig.rb
cross-android-x86_64-rbconfig.rb

$B$3$l$i$O!"(Bboron $B$N(B
/home/akr/chkbuild/tmp/build/crossruby-trunk-i386/20130523T201613Z/ruby
/home/akr/chkbuild/tmp/build/crossruby-trunk-x86android/20130523T215216Z/ruby
$B$+$i<h$j=P$7$?$b$N$G$9!#(B

boron $B$K(B login $B$9$l$P!“B>$N%U%!%$%k$bGA$1$^$9!#(B
(1$BF|(B1$B2s%S%k%I$7$F$$$F!”:G?7(B 2$B$D$7$+;D$7$F$$$^$;$s$,!#(B)