comparison PROBLEMS @ 724:76d5a3dd827a

[xemacs-hg @ 2002-01-05 07:33:11 by stephent] Pre-21.5.4 commit of stuff on notebook -- updated CHANGES-beta -- fix some slow startups - default with_ipv6_cname=no -- Stephen Turnbull -- Cygwin nox-xpm detection -- Charles Wilson -- eliminate bogus check for Athena widgets -- Alexey Mahotkin
author stephent
date Sat, 05 Jan 2002 07:33:24 +0000
parents 512e4a478e9d
children e7ad6587a7a0
comparison
equal deleted inserted replaced
723:a65ddffa00a5 724:76d5a3dd827a
1457 A newer problem is due to XEmacs changing to use the modern 1457 A newer problem is due to XEmacs changing to use the modern
1458 getaddrinfo() interface from the older gethostbyname() interface. The 1458 getaddrinfo() interface from the older gethostbyname() interface. The
1459 solution above is insufficient, because getaddrinfo() by default tries 1459 solution above is insufficient, because getaddrinfo() by default tries
1460 to get IPv6 information for localhost. This always involves a dns 1460 to get IPv6 information for localhost. This always involves a dns
1461 lookup to get the CNAME, and the strategies above don't work. It then 1461 lookup to get the CNAME, and the strategies above don't work. It then
1462 falls back to IPv4 behavior. This is good[tm]; trust us. 1462 falls back to IPv4 behavior. This is good[tm] according the people at
1463 WIDE who know about IPv6.
1463 1464
1464 ***** Robust network case 1465 ***** Robust network case
1465 1466
1466 Configure your network so that there are no nameservers configured 1467 Configure your network so that there are no nameservers configured
1467 until the network is actually running. getaddrinfo() will not try to 1468 until the network is actually running. getaddrinfo() will not try to
1474 IPv4 behavior. Explicitly setting DISPLAY=127.0.0.1:0.0 (or whatever 1475 IPv4 behavior. Explicitly setting DISPLAY=127.0.0.1:0.0 (or whatever
1475 is appropriate) works in most cases. 1476 is appropriate) works in most cases.
1476 1477
1477 If you cannot or do not want to do that, you can hard code IPv4 1478 If you cannot or do not want to do that, you can hard code IPv4
1478 behavior in src/process-unix.c. This is bad[tm], on your own head be 1479 behavior in src/process-unix.c. This is bad[tm], on your own head be
1479 it. In the function unix_canonicalize_host_name() about ten lines 1480 it. Use the configure option `--with-ipv6-cname=no'.
1480 down, change the statement
1481
1482 hints.ai_family = AF_UNSPEC;
1483
1484 to
1485
1486 hints.ai_family = PF_INET;
1487
1488 and rebuild XEmacs.
1489
1490 getaddrinfo() is also called in src/sysdep.c:init_system_name() and in
1491 src/process-unix.c:unix_open_network_stream(). It should not be
1492 useful to make this change in either of those places.
1493
1494 1481
1495 ** IRIX 1482 ** IRIX
1496 *** On Irix, I don't see the toolbar icons and I'm getting lots of 1483 *** On Irix, I don't see the toolbar icons and I'm getting lots of
1497 entries in the warnings buffer. 1484 entries in the warnings buffer.
1498 1485