From: Philippe Lucas Date: 2005-06-28T02:29:11+09:00 Subject: Ruby 1.8.3 preview1 Build Error on AIX 5.2 ------=_NextPart_000_00C5_01C57B4F.7B4E77A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, I've found other errors on AIX 5.2 with gcc 3.4.4 : -A) Configuration error : The configure script don't choose the right install program. It chooses the ../install-sh. In the /usr/bin directory, there are 2 install program (install and installbsd). The script must choose "/usr/sbin/installbsd -c" For instance, one can add the following lines after line 3803 of configure : ... if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" ; then # AIX install. (AIX >= 4 can have install and installbsd) # First assure that we have AIX # Then we have installbsd program ac_prog=installbsd if test -x "$as_dir/$ac_prog$ac_exec_ext"; then # # AIX install with installbsd ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi . # AIX install. It has an incompatible calling convention. elif test $ac_prog = install && ... -B) Can't build the socket extension for 2 reasons : -B1) The t_open function is in the libxti. So you have to change the extconf.rb. Probably one can write something like : when /powerpc-aix[45].*/ test_func = "socket" have_library("xti", "t_open") have_library("c","socket") else ... -B2) The configuration fails with an IPV6 test. But, i don't use IPV6. So I have no idea about this error. In the attached file, you will find mkmf.log. On the screen i have the following messages : RUBY_PLATFORM => [powerpc-aix5.2.0.0] checking for t_open() in -lxti... yes checking for socket() in -lc... yes checking for ipv6... yes checking for struct sockaddr_in.sin_len... yes checking for struct sockaddr_storage.ss_family... no checking for struct sockaddr_storage.ss_family... yes checking for struct sockaddr.sa_len... yes checking for netinet/tcp.h... yes checking for netinet/udp.h... yes checking for sendmsg()... yes checking for recvmsg()... yes checking for struct msghdr.msg_control... yes checking for struct msghdr.msg_accrights... no checking for wide getaddrinfo... no Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature. But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry, you cannot compile IPv6 socket classes with broken these functions. You can try --enable-wide-getaddrinfo. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include=${opt-dir}/include --with-opt-lib=${opt-dir}/lib --with-make-prog=make --srcdir=. --curdir=/usr11/home/phil/RUBY/ruby-1.8.3/UNIX_SHARED/PB_SOCKET --ruby=/usr/local/ruby-183/bin/ruby --with-xtilib=xti --with-clib=c --enable-ipv6 --disable-ipv6 --with-ipv6-lib --with-ipv6-libdir --enable-wide-getaddrinfo --disable-wide-getaddrinfo Any body has an idea ? Philippe Lucas ------=_NextPart_000_00C5_01C57B4F.7B4E77A0 Content-Type: application/gz; name="mkmf.log.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mkmf.log.gz" H4sICLNRwEIAA21rbWYubG9nAO1a/1PaShD/PX/FVmdaYiEBtbQTqm9Q02mmCA6g0/c6nbwzHOSm IWGSQ+W1/u9v7/KFgPBEq9X6jCPkLrt3e5/P7t4mwSVn1PbYaUjCiQGOS51vzB9APwiB28GI+gUV mA8l74IzTdOgtOCACY0UZW3gOABQCpzA73MacShZ+jgKKxXdDYZUH7nM09vHe3/q4fh0Uqpo77Qt /bhpfbY7H+tt80A/2rM7rf1PZjdR1L3AIV4i/W5LRytlQ0dVfRSc03DklAi7eKNtamWtjFMPoNTa BEgN0NCeUmNtyVhrwlhP9kSccObEixSdPQ8/nHAywjV4QynnrCkSHNqDURgMQjKEcxIZir4Bp3SA CG3oCjZ4MMIT5nMYEiaw+w4h5ePQh3INLuUFLntTcGsz13E06vfkWIuAVhR3OV1RgNbxlC7nyZGV sTNL2a+lLQX5hrTNEMVGZ9UnyI6zmKHb87LOfMcb9yi8jyaRzicjGmnu7lx3TIjoj5lTviuQslT/ YFtNs1stggDD7nTbZv2wCGW1pqzAmSSh5DwY9KUDs1nfa5i2dXRShTwViF12bmwbWwas0zBEz8r3 vzFAdhowImFE4waCix5I4dXu7ivgwTfq34QGn3KG/zrzBd5p1Kyzvt+jfRBmIt5tq26fmO2O1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