[Bug #2036] AIX 5L 5.2$B$K$F!"(Bruby-1.8.7-p174$B$N%S%k%I;~$K(Bmake test$B$r$9$k$H%(%i!<$K$J$C$

Bug #2036: AIX 5L 5.2e$B$K$F!"e(Bruby-1.8.7-p174e$B$N%S%k%I;~$Ke(Bmake
teste$B$r$9$k$H%(%i!<$K$J$C$?!#e(Bnot ok float 7 –
./sample/test.rb:1232
http://redmine.ruby-lang.org/issues/show/2036

e$B5/I<<Te(B: e$BOBLoe(B e$B;{85e(B
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: build
ruby -v: 1.8.7-p174

e$B;{85$H?=$7$^$9!#e(B
AIX 5L 5.2e$B$K$F!"e(Bruby-1.8.7-p174e$B$N%S%k%I;~$Ke(Bmake
teste$B$r$9$k$H%(%i!<$K$J$j$^$7$?!#e(B
e$BBP=hJ}K!$r65$($FD:$1$J$$$G$7$g$&$+!#e(B
e$B$h$m$7$/$*4j$$$7$^$9!#e(B

$ make test
not ok float 7 – ./sample/test.rb:1232
test failed
make: 1254-004 e$B:G8e$N%3%^%s%I$+$i$N%(%i!<!&%3!<%I$Oe(B 1 e$B$G$9!#e(B

autoconf
./configure
e$B$r$*$3$J$C$?$H$-$K!"<!$Ne(BWARNINGe$B%a%C%;!<%8$,I=<($5$l$^$7$?!#e(B

checking pthread.h presence… yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h: check for missing prerequisite
headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h: section “Present But Cannot Be
Compiled”
configure: WARNING: pthread.h: proceeding with the preprocessor’s result
configure: WARNING: pthread.h: in the future, the compiler will take
precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for pthread.h… yes

makee$B;~$N%a%C%;!<%8$O0J2<$K$J$j$^$9!#$h$m$7$/$*4j$$$7$^$9!#e(B

$ make
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c array.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c bignum.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c class.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c compar.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c dir.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c dln.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c enum.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c enumerator.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c error.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c eval.c
eval.c: In function rb_eval_string_wrap': eval.c:1742: warning: assignment discards qualifiers from pointer target type eval.c: In function rb_eval_cmd’:
eval.c:1883: warning: assignment discards qualifiers from pointer target
type
eval.c: In function call_trace_func': eval.c:2734: warning: assignment discards qualifiers from pointer target type eval.c: In function rb_raise_jump’:
eval.c:4765: warning: assignment discards qualifiers from pointer target
type
eval.c: In function method_missing': eval.c:5720: warning: assignment discards qualifiers from pointer target type eval.c: In function rb_call0’:
eval.c:5883: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_f_eval': eval.c:6676: warning: assignment discards qualifiers from pointer target type eval.c: In function exec_under’:
eval.c:6700: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_load': eval.c:7016: warning: assignment discards qualifiers from pointer target type eval.c: In function call_end_proc’:
eval.c:8046: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_f_END': eval.c:8059: warning: assignment discards qualifiers from pointer target type eval.c: In function mproc’:
eval.c:9835: warning: assignment discards qualifiers from pointer target
type
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c file.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c gc.c
In file included from gc.c:1089:
gc.c: In function rb_gc_force_recycle': gc.c:1085: warning: passing arg of add_freelist’ makes pointer from
integer without a cast
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c hash.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c inits.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c io.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c marshal.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c math.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c numeric.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c object.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c pack.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c parse.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c process.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c prec.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c random.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c range.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c re.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c regex.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c ruby.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c signal.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c sprintf.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c st.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c string.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c struct.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c time.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c util.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c variable.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c version.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o
dir.o dln.o enum.o enumerator.o error.o eval.o file.o gc.o
hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o
parse.o process.o prec.o random.o range.o re.o regex.o ruby.o
signal.o sprintf.o st.o string.o struct.o time.o util.o
variable.o version.o flock.o dmyext.o
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c main.c
gcc -g -O2 -DRUBY_EXPORT -L. -Wl,-bE:ruby.imp -Wl,-brtl
main.o libruby-static.a -lrt -ldl -lcrypt -lm -o miniruby
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
gcc -shared -Wl,-G -o
…/…/.ext/powerpc-aix5.2.0.0/bigdecimal.so bigdecimal.o -L. -L…/… -L.
-eInit_bigdecimal -lrt -ldl -lcrypt -lm -lc
cp …/…/./ext/bigdecimal/lib/bigdecimal/newton.rb
…/…/.ext/common/bigdecimal
cp …/…/./ext/bigdecimal/lib/bigdecimal/math.rb
…/…/.ext/common/bigdecimal
cp …/…/./ext/bigdecimal/lib/bigdecimal/jacobian.rb
…/…/.ext/common/bigdecimal
cp …/…/./ext/bigdecimal/lib/bigdecimal/ludcmp.rb
…/…/.ext/common/bigdecimal
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling curses
gcc -I. -I…/… -I…/…/. -I…/…/./ext/curses -DHAVE_CURSES_H
-DHAVE_BEEP -DHAVE_BKGD -DHAVE_BKGDSET -DHAVE_CURS_SET -DHAVE_DELETELN
-DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_GETBKGD -DHAVE_GETNSTR
-DHAVE_ISENDWIN -DHAVE_KEYNAME -DHAVE_KEYPAD -DHAVE_SCRL
-DHAVE_SETSCRREG -DHAVE_UNGETCH -DHAVE_WATTROFF -DHAVE_WATTRON
-DHAVE_WATTRSET -DHAVE_WBKGD -DHAVE_WBKGDSET -DHAVE_WDELETELN
-DHAVE_WGETNSTR -DHAVE_WSCRL -DHAVE_WSETSCRREG -DHAVE_DEF_PROG_MODE
-DHAVE_RESET_PROG_MODE -DHAVE_TIMEOUT -DHAVE_WTIMEOUT -DHAVE_NODELAY
-DHAVE_INIT_COLOR -DHAVE_WCOLOR_SET -D_LARGE_FILES=1 -g -O2 -c
curses.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/curses.so
curses.o -L. -L…/… -L. -eInit_curses -lcurses -lrt -ldl -lcrypt
-lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling dbm
gcc -I. -I…/… -I…/…/. -I…/…/./ext/dbm -DHAVE_DBM_OPEN
-DHAVE_TYPE_DBM -DHAVE_DBM_CLEARERR -DDBM_HDR=“<ndbm.h>”
-DHAVE_SYS_CDEFS_H -D_LARGE_FILES=1 -g -O2 -c dbm.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/dbm.so dbm.o
-L. -L…/… -L. -eInit_dbm -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest
gcc -I. -I…/… -I…/…/. -I…/…/./ext/digest -D_LARGE_FILES=1
-g -O2 -c digest.c
digest.c: In function `rb_digest_instance_inspect’:
digest.c:271: warning: assignment discards qualifiers from pointer
target type
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/digest.so
digest.o -L. -L…/… -L. -eInit_digest -lrt -ldl -lcrypt -lm -lc
cp …/…/./ext/digest/lib/digest.rb …/…/.ext/common
cp …/…/./ext/digest/lib/sha1.rb …/…/.ext/common
cp …/…/./ext/digest/lib/md5.rb …/…/.ext/common
cp …/…/./ext/digest/digest.h …/…/.ext/powerpc-aix5.2.0.0
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest/bubblebabble
gcc -I. -I…/…/… -I…/…/…/.
-I…/…/…/./ext/digest/bubblebabble
-I…/…/…/./ext/digest/bubblebabble/… -DHAVE_CONFIG_H
-D_LARGE_FILES=1 -g -O2 -c bubblebabble.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/digest/bubblebabble.so bubblebabble.o
-L. -L…/…/… -L. -eInit_bubblebabble -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest/md5
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/md5
-I…/…/…/./ext/digest/md5/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1 -g -O2 -c
md5init.c
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/md5
-I…/…/…/./ext/digest/md5/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1 -g -O2 -c md5.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/digest/md5.so md5init.o md5.o -L.
-L…/…/… -L. -eInit_md5 -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest/rmd160
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/rmd160
-I…/…/…/./ext/digest/rmd160/… -DNDEBUG -DHAVE_CONFIG_H
-DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1
-g -O2 -c rmd160init.c
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/rmd160
-I…/…/…/./ext/digest/rmd160/… -DNDEBUG -DHAVE_CONFIG_H
-DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1
-g -O2 -c rmd160.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/digest/rmd160.so rmd160init.o rmd160.o
-L. -L…/…/… -L. -eInit_rmd160 -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest/sha1
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/sha1
-I…/…/…/./ext/digest/sha1/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1 -g -O2 -c
sha1init.c
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/sha1
-I…/…/…/./ext/digest/sha1/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -D_LARGE_FILES=1 -g -O2 -c sha1.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/digest/sha1.so sha1init.o sha1.o -L.
-L…/…/… -L. -eInit_sha1 -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling digest/sha2
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/sha2
-I…/…/…/./ext/digest/sha2/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -DHAVE_TYPE_UINT64_T -D_LARGE_FILES=1
-g -O2 -c sha2.c
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/digest/sha2
-I…/…/…/./ext/digest/sha2/… -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H
-DHAVE_INTTYPES_H -DHAVE_UNISTD_H -DHAVE_TYPE_UINT64_T -D_LARGE_FILES=1
-g -O2 -c sha2init.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/digest/sha2.so sha2.o sha2init.o -L.
-L…/…/… -L. -eInit_sha2 -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling dl
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/dl.so dl.o
ptr.o sym.o handle.o -L. -L…/… -L. -eInit_dl -ldl -lrt -ldl
-lcrypt -lm -lc
cp …/…/./ext/dl/lib/dl/types.rb …/…/.ext/common/dl
cp …/…/./ext/dl/lib/dl/struct.rb …/…/.ext/common/dl
cp …/…/./ext/dl/lib/dl/win32.rb …/…/.ext/common/dl
cp dlconfig.h …/…/.ext/powerpc-aix5.2.0.0
cp …/…/./ext/dl/dl.h …/…/.ext/powerpc-aix5.2.0.0
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling etc
gcc -I. -I…/… -I…/…/. -I…/…/./ext/etc -DHAVE_GETLOGIN
-DHAVE_GETPWENT -DHAVE_GETGRENT -DHAVE_ST_PW_GECOS -DHAVE_ST_PW_PASSWD
-DHAVE_ST_GR_PASSWD -DHAVE_TYPE_UID_T -DPW_UID2VAL=UINT2NUM
-DPW_VAL2UID=NUM2UINT -DHAVE_TYPE_GID_T -DPW_GID2VAL=UINT2NUM
-DPW_VAL2GID=NUM2UINT -D_LARGE_FILES=1 -g -O2 -c etc.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/etc.so etc.o
-L. -L…/… -L. -eInit_etc -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling fcntl
gcc -I. -I…/… -I…/…/. -I…/…/./ext/fcntl -D_LARGE_FILES=1
-g -O2 -c fcntl.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/fcntl.so
fcntl.o -L. -L…/… -L. -eInit_fcntl -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling gdbm
compiling iconv
gcc -I. -I…/… -I…/…/. -I…/…/./ext/iconv -D_LARGE_FILES=1
-g -O2 -c iconv.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/iconv.so
iconv.o -L. -L…/… -L. -eInit_iconv -liconv -lrt -ldl -lcrypt -lm
-lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling io/wait
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/io/wait
-DFIONREAD_HEADER=“<sys/ioctl.h>” -D_LARGE_FILES=1 -g -O2 -c wait.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/io/wait.so wait.o -L. -L…/…/… -L.
-eInit_wait -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling nkf
gcc -I. -I…/… -I…/…/. -I…/…/./ext/nkf -D_LARGE_FILES=1
-g -O2 -c nkf.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/nkf.so nkf.o
-L. -L…/… -L. -eInit_nkf -lrt -ldl -lcrypt -lm -lc
cp …/…/./ext/nkf/lib/kconv.rb …/…/.ext/common
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling openssl
compiling pty
gcc -I. -I…/… -I…/…/. -I…/…/./ext/pty -DHAVE_SYS_STROPTS_H
-DHAVE_PTSNAME -D_LARGE_FILES=1 -g -O2 -c pty.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/pty.so pty.o
-L. -L…/… -L. -eInit_pty -lrt -ldl -lcrypt -lm -lc
cp …/…/./ext/pty/lib/expect.rb …/…/.ext/common
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling racc/cparse
gcc -I. -I…/…/… -I…/…/…/. -I…/…/…/./ext/racc/cparse
-D_LARGE_FILES=1 -g -O2 -c cparse.c
gcc -shared -Wl,-G -o
…/…/…/.ext/powerpc-aix5.2.0.0/racc/cparse.so cparse.o -L. -L…/…/…
-L. -eInit_cparse -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling readline
compiling sdbm
gcc -I. -I…/… -I…/…/. -I…/…/./ext/sdbm -D_LARGE_FILES=1
-g -O2 -c _sdbm.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/sdbm -D_LARGE_FILES=1
-g -O2 -c init.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/sdbm.so
_sdbm.o init.o -L. -L…/… -L. -eInit_sdbm -lrt -ldl -lcrypt -lm
-lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling socket
gcc -I. -I…/… -I…/…/. -I…/…/./ext/socket
-DHAVE_ARPA_INET_H -DENABLE_IPV6 -DINET6 -DHAVE_SIN_LEN
-DHAVE_SOCKADDR_STORAGE -DHAVE_SA_LEN -DHAVE_NETINET_TCP_H
-DHAVE_NETINET_UDP_H -DHAVE_SENDMSG -DHAVE_RECVMSG -DHAVE_ST_MSG_CONTROL
-DHAVE_GETNAMEINFO -DHAVE_GETADDRINFO -DHAVE_TYPE_SOCKLEN_T
-DHAVE_SYS_UN_H -DHAVE_SYS_UIO_H -DHAVE_SOCKET -DHAVE_GETIPNODEBYNAME
-DHAVE_SOCKETPAIR -DHAVE_GETHOSTNAME -D_LARGE_FILES=1
-Dss_family=__ss_family -Dss_len=__ss_len -g -O2 -c socket.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/socket.so
socket.o -L. -L…/… -L. -eInit_socket -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling stringio
gcc -I. -I…/… -I…/…/. -I…/…/./ext/stringio
-D_LARGE_FILES=1 -g -O2 -c stringio.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/stringio.so
stringio.o -L. -L…/… -L. -eInit_stringio -lrt -ldl -lcrypt -lm
-lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling strscan
gcc -I. -I…/… -I…/…/. -I…/…/./ext/strscan -D_LARGE_FILES=1
-g -O2 -c strscan.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/strscan.so
strscan.o -L. -L…/… -L. -eInit_strscan -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling syck
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c rubyext.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c yaml2byte.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c bytecode.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c token.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c node.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c emitter.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c handler.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c syck.c
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syck -DHAVE_ST_H
-D_LARGE_FILES=1 -g -O2 -c implicit.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/syck.so
rubyext.o yaml2byte.o bytecode.o gram.o token.o node.o emitter.o
handler.o syck.o implicit.o -L. -L…/… -L. -eInit_syck -lrt -ldl
-lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling syslog
gcc -I. -I…/… -I…/…/. -I…/…/./ext/syslog -DHAVE_SYSLOG_H
-DHAVE_OPENLOG -DHAVE_SETLOGMASK -D_LARGE_FILES=1 -g -O2 -c
syslog.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/syslog.so
syslog.o -L. -L…/… -L. -eInit_syslog -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling thread
gcc -I. -I…/… -I…/…/. -I…/…/./ext/thread -D_LARGE_FILES=1
-DUSE_MEM_POOLS -g -O2 -c thread.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/thread.so
thread.o -L. -L…/… -L. -eInit_thread -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
compiling tk
compiling tk/tkutil
compiling win32ole
compiling zlib
gcc -I. -I…/… -I…/…/. -I…/…/./ext/zlib -DHAVE_ZLIB_H
-DOS_CODE=OS_UNIX -D_LARGE_FILES=1 -g -O2 -c zlib.c
gcc -shared -Wl,-G -o …/…/.ext/powerpc-aix5.2.0.0/zlib.so
zlib.o -L. -L…/… -L. -eInit_zlib -lz -lrt -ldl -lcrypt -lm -lc
e$B%?!<%2%C%He(B “all” e$B$O:G?7$N$b$N$G$9!#e(B
making ruby
gcc -g -O2 -DRUBY_EXPORT -L. -Wl,-bE:ruby.imp -Wl,-brtl
main.o -lruby-static -lrt -ldl -lcrypt -lm -o ruby
$

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

At Thu, 3 Sep 2009 18:53:00 +0900,
e$BOBLoe(B e$B;{85e(B wrote in [ruby-dev:39222]:

AIX 5L 5.2e$B$K$F!"e(Bruby-1.8.7-p174e$B$N%S%k%I;~$Ke(Bmake teste$B$r$9$k$H%(%i!<$K$J$j$^$7$?!#e(B
e$BBP=hJ}K!$r65$($FD:$1$J$$$G$7$g$&$+!#e(B
e$B$h$m$7$/$*4j$$$7$^$9!#e(B

$ make test
not ok float 7 – ./sample/test.rb:1232

test_ok(2.6.round == 3) e$B$N9T$G$9$+!#e(B

./miniruby -e ‘x=2.6.round; p x.class, “%.20f”’ e$B$N7k2L$O$I$&$J$ke(B
e$B$G$7$g$&$+!#e(B

e$B%A%1%C%He(B #2036 e$B$,99?7$5$l$^$7$?!#e(B (by e$BOBLoe(B e$B;{85e(B)

e$B;{85$G$9!#e(B

2009e$BG/e(B09e$B7ne(B03e$BF|e(B 20:29 PM - Nobuyoshi N.
./miniruby -e ‘x=2.6.round; p x.class, “%.20f”’ e$B$N7k2L$O$I$&$J$ke(B
e$B$G$7$g$&$+!#e(B

e$B0J2<$H$J$j$^$7$?!#e(B

$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f”’
Fixnum
“%.20f”

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

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

At Fri, 4 Sep 2009 09:17:46 +0900,
e$BOBLoe(B e$B;{85e(B wrote in [ruby-dev:39225]:

./miniruby -e ‘x=2.6.round; p x.class, “%.20f”’ e$B$N7k2L$O$I$&$J$ke(B
e$B$G$7$g$&$+!#e(B

e$B0J2<$H$J$j$^$7$?!#e(B

$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f”’
Fixnum
“%.20f”

e$B$9$$$^$;$s!"e(B’x=2.6.round; p x.class, “%.20f” %
x’e$B$N:G8e$,H4$1$Fe(B
e$B$^$7$?!#e(BFixnume$B$K$J$C$F$$$k$3$H$O3NG’$G$-$?$N$G!"e(B
./miniruby -e ‘p 2.6.round’ e$B$@$1$G$b7k9=$G$9!#e(B

e$B%A%1%C%He(B #2036 e$B$,99?7$5$l$^$7$?!#e(B (by e$BOBLoe(B e$B;{85e(B)

e$B;{85$G$9!#e(B

2009e$BG/e(B09e$B7ne(B04e$BF|e(B 09:45 AM - Nobuyoshi N.
e$B$9$$$^$;$s!"e(B’x=2.6.round; p x.class, “%.20f” % x’e$B$N:G8e$,H4$1$Fe(B
e$B$^$7$?!#e(BFixnume$B$K$J$C$F$$$k$3$H$O3NG’$G$-$?$N$G!"e(B
./miniruby -e ‘p 2.6.round’ e$B$@$1$G$b7k9=$G$9!#e(B

e$B0J2<$H$J$j$^$7$?!#e(B

$ ./miniruby -e ‘p 2.6.round’
269333544
$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f” % x’
Fixnum
“269333544.00000000000000000000”

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

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

At Fri, 4 Sep 2009 10:22:51 +0900,
e$BOBLoe(B e$B;{85e(B wrote in [ruby-dev:39227]:

$ ./miniruby -e ‘p 2.6.round’
269333544
$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f” % x’
Fixnum
“269333544.00000000000000000000”

e$B$"$j$,$A$J$H$3$m$G$O!"e(Bmath.he$B$Ke(Bround()e$B$N@k8@$,H4$1$F$$$Fe(Binte$B$H8+$Je(B
e$B$5$l$F%4%$r;H$C$F$$$k$H$$$C$?$"$?$j$G$7$g$&$+!#e(B
e$B0J2<$N%Q%C%A$N$h$&$K@k8@$rDI2C$7$F$
$k$H$I$&$G$7$g$&$+!#e(B

Index: numeric.c

— numeric.c (revision 24713)
+++ numeric.c (working copy)
@@ -64,4 +64,6 @@
#endif

+extern double round _((double));
+
#ifndef HAVE_ROUND
double

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

At Fri, 4 Sep 2009 11:19:19 +0900,
Nobuyoshi N. wrote in [ruby-dev:39228]:

e$B$"$j$,$A$J$H$3$m$G$O!“e(Bmath.he$B$Ke(Bround()e$B$N@k8@$,H4$1$F$$$Fe(Binte$B$H8+$Je(B
e$B$5$l$F%4%_$r;H$C$F$$$k$H$$$C$?$”$?$j$G$7$g$&$+!#e(B

e$B$A$J$_$K!"0J2<$N%3!<%I$O%3%s%Q%$%k%(%i!<$K$J$C$?$j7Y9p$,=P$?$j$9e(B
e$B$k$G$7$g$&$+!#e(B

/* BEGIN */
#include <math.h>

char round();
/
END */

e$B%A%1%C%He(B #2036 e$B$,99?7$5$l$^$7$?!#e(B (by e$BOBLoe(B e$B;{85e(B)

e$B;{85$G$9!#e(B

2009e$BG/e(B09e$B7ne(B04e$BF|e(B 11:31 AM - Nobuyoshi N.
e$B$A$J$_$K!"0J2<$N%3!<%I$O%3%s%Q%$%k%(%i!<$K$J$C$?$j7Y9p$,=P$?$j$9e(B
e$B$k$G$7$g$&$+!#e(B

  • BEGIN */
    #include <math.h>

char round();
/
END */

e$B<!$N$h$&$Ke(Btest.ce$B$r:n@.$7$F%3%s%Q%$%k$r;n$_$^$7$?$,!“e(B
e$B%3%s%Q%$%k%(%i!<!&7Y9p$O!”=PNO$7$^$;$s!#e(B

$ more test.c
/* BEGIN */
#include <math.h>

char round();
/
END */
#include<stdio.h>
main()
{
printf(“Hello, World!\n”);
}

$ gcc -o tera test.c
$ ./tera
Hello, World!
$ pwd
/opt/ruby/ruby-1.8.7-p174


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

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

At Fri, 4 Sep 2009 13:26:40 +0900,
e$BOBLoe(B e$B;{85e(B wrote in [ruby-dev:39231]:

e$B<!$N$h$&$Ke(Btest.ce$B$r:n@.$7$F%3%s%Q%$%k$r;n$_$^$7$?$,!“e(B
e$B%3%s%Q%$%k%(%i!<!&7Y9p$O!”=PNO$7$^$;$s!#e(B

[ruby-dev:39228]e$B$N%Q%C%A$r;n$7$F$_$F$/$@$5$$!#e(B

e$B%A%1%C%He(B #2036 e$B$,99?7$5$l$^$7$?!#e(B (by e$BOBLoe(B e$B;{85e(B)

e$B;{85$G$9!#e(B

e$B;n$7$Ke(Bruby-1.8.5-p231e$B$re(B
./configure
make
make test
e$B$7$?$H$3$m!"e(Bruby-1.8.7-p174e$B$HF1MM$N7k2L$K$J$j$^$7$?!#e(B
e$B;29M$K$J$l$P$H;W$$!"O"Mm$7$^$9!#e(B

$ make test
./rubytest.rb:40: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1643: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1650: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1651: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1658: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1668: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1669: warning: Insecure world writable dir
/opt/CreateForm/FormCast, mode 0240777
not ok float 7 – ./sample/test.rb:1178
test failed
make: 1254-004 e$B:G8e$N%3%^%s%I$+$i$N%(%i!<!&%3!<%I$Oe(B 1 e$B$G$9!#e(B

e$BDd;_$7$^$9!#e(B

$ cd ruby-1.8.5-p231
$ pwd
/opt/ruby/ruby-1.8.5-p231
$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f” % x’
Fixnum
“269287488.00000000000000000000”
$ more test.c
/* BEGIN */
#include <math.h>

char round();
/
END */
#include<stdio.h>
main()
{
printf(“Hello, World!\n”);
}

$ gcc -o tera test.c
$ ./tera
Hello, World!
$

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

e$B6bK$H?=$7$^$9!#e(B
e$B2#$+$i$9$_$^$;$s!#e(B

% oslevel -s
5200-10-07-0902
e$B$H$$$&4D6-$G!"e(B

% gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: …/configure --with-as=/usr/bin/as
–with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++
–prefix=/opt/freeware --enable-threads
–enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 4.0.0

e$B$r;H$C$Fe(Bruby-1.8.7-p174e$B$re(B
% ./configure --prefix=$HOME/r187p174
% make
e$B$7$F$_$?$N$G$9$,!";d$N$H$3$m$G$Oe(B

% make test
test succeeded

e$B$H$J$j$^$7$?!#e(B
minirubye$B$G$N7k2L$Oe(B
% ./miniruby -e ‘x=2.6.round; p x.class, “%.20f” % x’
Fixnum
“3.00000000000000000000”
e$B$G$7$?!#e(B

e$B$$$C$?$$2?$,0c$&$N$+$o$+$i$J$$$N$G$<$s$<$s$*NO$K$J$l$J$$$N$G$9!J$9$_$^$;$s!K$,!"e(B
e$B$?$H$($P!“e(Bgcce$B$N%P!<%8%g%s$H$+$I$3$+$i;}$C$F$-$?$b$N$H$+$Oe(B
e$B>pJs$”$j$^$9$G$7$g$&$+!)e(B
e$B;d$O3N$+e(B
ftp.software.ibm.com:/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc
e$B$+$i$b$C$F$-$^$7$?!#e(B

e$B:G=i$N%a!<%k$K$Oe(B./configuree$B$K%%W%7%g%s$r;XDj$5$l$F$$$J$$$h$&$G$7$?$,!“e(B
e$B2?$+FCJL$J$b$N$r$4MxMQ$G$9$+!)e(B
e$B$”$k$$$O!"IUB0$Ne(Bconfiguree$B$G$O$J$/!"e(Bautoconfe$B$5$l$?$h$&$G$9$,!"e(B
autoconfe$B$N%P!<%8%g%s$O$$$/$D$r$
;H$$$G$7$g$&$+!)e(B
e$B%3%s%Q%$%k$G$-$F$$$k$h$&$G$9$N$G4X78$J$$$G$9$+$M!#e(B
e$B0l1~$3$A$i$Ne(Bmath.he$B$Ke(Brounde$B$OF~$C$F$$$^$7$?!#e(B

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

e$B%9%F!<%?%9e(B Feedbacke$B$+$ie(BClosede$B$KJQ99e(B
e$BC4Ev<Te(B Yutaka K.e$B$K%;%C%He(B

e$B2r7h$H$$$&$3$H$G$$$$$G$9$+$Me(B

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

e$B%A%1%C%He(B #2036 e$B$,99?7$5$l$^$7$?!#e(B (by e$BOBLoe(B e$B;{85e(B)

e$B;{85$G$9!#e(B

xlc(8.0.0)e$B%3%s%Q%$%i$K$F!"e(Bruby-1.8.7-p174e$B$r%$%s%9%H!<%k$7$?$H$3$me(B
make teste$B$G%(%i!<$K$J$i$J$$$G%$%s%9%H!<%k$G$-$^$7$?!#e(B

$ ./configure --without-gcc

$ make

$ ./miniruby -e ‘x=2.6.round; p x.class, “%.20f” % x’
Fixnum
“3.00000000000000000000”

% su

make install

exit

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [powerpc-aix5.2.0.0]


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