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

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Feb 27 18:54:47 EST 2011

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.