alastair, i think getaddrinfo was added to support ipv6.
i've attached the docs for this fun.
please investigate and see if there's an obvious solution, e.g. different
params. if not, perhaps we should declare getaddrinfo[] broken on RH 6.0
[perhaps it's fixed in later versions]. the way to do this is to put something
like
#undef BROKEN_GETADDRINFO
into config.h, and then have configure test for Red Hat 6.0 and turn the define
on. [even better, you could make a proper configure test! have configure run a
little program that calls getaddrinfo[], then waits 30 seconds or until it
dies. if it's still around 30 seconds later, kill the program and define
BROKEN_GETADDRINFO. maybe the timeout should be longer, for modem users?]
martin, you're the configure expert; want to write this support?
"Alastair J. Houghton" wrote:
I just got the most recent CVS sources, and they *still*
don't work on my system. gdb reveals that in process-unix.c,
the (recent) change to the canonicalize_host_name function
to use getaddrinfo() appears to be the culprit.
getaddrinfo() just seems to hang on my system - at least
with the set of parameters that are passed to it by XEmacs.
And *I* don't have any docs for it either (i.e. no man
pages & it isn't in the libc info [I'm using vanilla RedHat
6.0, with very little extra installed]).
Anyone else have this problem? (It could be my fault - I've
got a caching named set up, with my ISP's DNS set up as a
forwarder, and a zone for the small LAN we've got at home...
however, it works if I #undef HAVE_GETADDRINFO in s/linux.h,
and all the other software I have seems to work OK).
Kind regards,
Alastair.
____________________________________________________________
Alastair Houghton ajhoughton(a)lineone.net
--
Ben
In order to save my hands, I am cutting back on my mail. I also write
as succinctly as possible -- please don't be offended. If you send me
mail, you _will_ get a response, but please be patient, especially for
XEmacs-related mail. If you need an immediate response and it is not
apparent in your message, please say so. Thanks for your understanding.
See also
http://www.666.com/ben/chronic-pain/