From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#6781: emacs server with X11 build on OSX Date: Wed, 04 Aug 2010 09:52:23 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <83F33443-0C3F-4F9B-B584-D9301250B8FC@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1280884108 1142 80.91.229.12 (4 Aug 2010 01:08:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2010 01:08:28 +0000 (UTC) Cc: 6781@debbugs.gnu.org, Ken Raeburn , Andreas Schwab , Leo , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 04 03:08:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OgSSz-0004un-HJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Aug 2010 03:08:22 +0200 Original-Received: from localhost ([127.0.0.1]:47729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgSSx-0007iT-Uk for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 21:08:19 -0400 Original-Received: from [140.186.70.92] (port=46960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgSSm-0007fr-Tt for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 21:08:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgSSi-0000Lc-Un for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 21:08:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52840) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgSSi-0000LY-TP for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 21:08:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgSEA-0007lw-5g; Tue, 03 Aug 2010 20:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 00:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6781-submit@debbugs.gnu.org id=B6781.128088312329863 (code B ref 6781); Wed, 04 Aug 2010 00:53:02 +0000 Original-Received: (at 6781) by debbugs.gnu.org; 4 Aug 2010 00:52:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgSDD-0007lc-BL for submit@debbugs.gnu.org; Tue, 03 Aug 2010 20:52:03 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgSD9-0007lE-0a for 6781@debbugs.gnu.org; Tue, 03 Aug 2010 20:52:00 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D581AC055D; Wed, 4 Aug 2010 09:52:23 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 03 Aug 2010 20:53:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39225 Archived-At: >>>>> On Tue, 3 Aug 2010 15:03:08 +0200, Juanma Barranquero said: > On Tue, Aug 3, 2010 at 15:01, Andreas Schwab > wrote: >> gethostbyname works quite different from getaddrinfo. > Still a problem that (make-network-process ... :host 'local) fails. > Something's obviously not right. I suspect there is a bug in getaddrinfo on Mac OS X 10.6.4. At least, the behavior of the following program is incompatible with that on Mac OS X 10.5.8. #include #include #include #include #include main () { struct addrinfo hints, *res; char *servnames[] = {"0", "1", NULL}; int error, i; memset (&hints, 0, sizeof (hints)); hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; for (i = 0; i < sizeof (servnames) / sizeof (servnames[0]); i++) { if (servnames[i]) printf ("servname = \"%s\":\n", servnames[i]); else printf ("servname = (null):\n"); error = getaddrinfo ("localhost", servnames[i], &hints, &res); if (error != 0) puts (gai_strerror (error)); else { struct addrinfo *r; for (r = res; r; r = r->ai_next) { printf ("family = %d, socktype = %d, protocol = %d\n", r->ai_family, r->ai_socktype, r->ai_protocol); } freeaddrinfo (res); } puts (""); } } *** Mac OS X 10.6.4 *** servname = "0": nodename nor servname provided, or not known servname = "1": family = 30, socktype = 1, protocol = 6 family = 30, socktype = 1, protocol = 6 family = 2, socktype = 1, protocol = 6 servname = (null): family = 30, socktype = 1, protocol = 6 family = 30, socktype = 1, protocol = 6 family = 2, socktype = 1, protocol = 6 *** Mac OS X 10.5.8 *** servname = "0": family = 30, socktype = 1, protocol = 6 family = 30, socktype = 1, protocol = 6 family = 2, socktype = 1, protocol = 6 servname = "1": family = 30, socktype = 1, protocol = 6 family = 30, socktype = 1, protocol = 6 family = 2, socktype = 1, protocol = 6 servname = (null): family = 30, socktype = 1, protocol = 6 family = 30, socktype = 1, protocol = 6 family = 2, socktype = 1, protocol = 6 Actually, one can find a major rewrite in getaddrinfo's implementation. (Libinfo in http://opensource.apple.com/release/mac-os-x-1064/ and http://opensource.apple.com/release/mac-os-x-1058/ ) YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp