[racket] How to use tcp-listen with IPv6 on Linux?

From: Ken Shirriff (ken.shirriff at gmail.com)
Date: Mon Feb 28 01:26:34 EST 2011

Thank you Matthew.  I compiled racket with that change and IPv6 worked
fine.  Is this likely to get fixed in the source code?  It would be
nice for IPv6 to work out of the box.

Ken

On Sun, Feb 27, 2011 at 3:54 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Sat, 26 Feb 2011 12:07:23 -0800, Ken Shirriff wrote:
>> I'm trying to get Racket to listen on an IPv6 port, but I can only get
>> it to work with IPv4.
>
> It looks like the configure script is broken in a way that makes Racket
> use gethostbyname() instead of getaddrinfo() to resolve hostnames.
>
> Can you check "racket/mzconfig.h" in your build directory and confirm
> that it includes
>
>  /* #undef HAVE_GETADDRINFO */
>
> ?
>
> If so, does changing that line to
>
>  #define HAVE_GETADDRINFO 1
>
> and rebuilding fix the problem?
>
>



Posted on the users mailing list.