Subject: ruby socket extension and ipv6
To: None <>
From: rudolf <>
List: tech-pkg
Date: 03/01/2006 00:25:49

in order to get the socket extension for ruby from pkgsrc on Slackware 
Linux I have to change the pkgsrc/lang/ruby18-base/Makefile:
--- Makefile.orig       2006-02-28 23:55:53.000000000 +0100
+++ Makefile    2006-02-28 23:56:12.000000000 +0100
@@ -23,6 +23,7 @@
  GNU_CONFIGURE=         yes
  TEST_TARGET=           test
  CONFIGURE_ARGS+=       --enable-shared \
+               --enable-wide-getaddrinfo \
                 --with-ssl-include="${BUILDLINK_PREFIX.openssl}/include" \
  CONFIGURE_ENV+=                PREFIX=${PREFIX:Q}

Otherwise I get the following instead of the socket extension:
compiling socket

Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 
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.

There is no need to do this on NetBSD and I don't need to do this when 
compiling ruby on Slackware directly (without pkgsrc) either. Could this 
point to some problems with the tools?