From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: make bootstrap: need moral support. :-( Date: Mon, 20 Feb 2006 04:03:39 +0000 (GMT) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1140451607 32253 80.91.229.2 (20 Feb 2006 16:06:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2006 16:06:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 20 17:06:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FBDYY-00041S-MR for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2006 17:06:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBDEe-0003ZP-Sn for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2006 10:46:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FB9jB-0008RG-PN for emacs-devel@gnu.org; Mon, 20 Feb 2006 07:01:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FB9MD-0004Lo-5Z for emacs-devel@gnu.org; Mon, 20 Feb 2006 06:38:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FB96c-0008WD-VA for emacs-devel@gnu.org; Mon, 20 Feb 2006 06:21:27 -0500 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FB9CZ-000633-0r; Mon, 20 Feb 2006 06:27:36 -0500 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id EAA03493; Mon, 20 Feb 2006 04:03:40 GMT X-Sender: root@acm.acm Original-To: Eli Zaretskii In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50811 Archived-At: Hi, Eli! On Mon, 20 Feb 2006, Eli Zaretskii wrote: >> Date: Sun, 19 Feb 2006 15:07:54 +0000 (GMT) >> From: Alan Mackenzie >> >> I've got CC Mode 5.31.3 ready for merging into the Emacs CVS. First, I >> should be testing it on an up to date Emacs 22. >> >> So, I cvs updated my copy of CVS Emacs this morning. I followed this >> with a ./configure and a make bootstrap. It failed in process.c with a >> "dereferencing pointer to incomplete type" error, whatever that is. >> [...] >> Would somebody cheer me up, please. > >How about if you tell us the details, like the precise error message, >for example? It was process.c: In function `conv_sockaddr_to_lisp': process.c:2245: dereferencing pointer to incomplete type process.c:2246: dereferencing pointer to incomplete type process.c:2249: dereferencing pointer to incomplete type process.c:2249: dereferencing pointer to incomplete type process.c:2249: dereferencing pointer to incomplete type The source code in process.c looks like this: #ifdef AF_INET6 case AF_INET6: { struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa; uint16_t *ip6 = (uint16_t *)&sin6->sin6_addr; <======= L2245 All of these places were within #ifdef AF_INET6 regions. This symbol is defined in socket.h, and "ls -lu" indicates that my Emacs compiled with the socket.h in a linux-2.4.17 tree. It seems that that this socket.h and Emacs have different ideas about the type sockaddr_in6. I worked around this problem by putting #undef AF_INET6 near the top of the file. Emacs then built immediately! (well, actually, it took nearer 3 hours, but it managed without further intervention from me. :-). However, when I started it up, it complained about this form in my site-start.el: (define-key help-mode-map "\M-n" 'clone-buffer) I had to wrap this form in an (eval-after-load "help-mode" ....). Is this failure to load help-mode at start-up deliberate, or is it a bug? It used to be loaded, at least as recently as last September. -- Alan.