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: Re: make for emacs fails under OS X 10.5 Date: Mon, 29 Oct 2007 08:26:29 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <93DF8565-CAA3-4D03-949D-2B8BF6C5B812@mac.com> 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: ger.gmane.org 1193614016 784 80.91.229.12 (28 Oct 2007 23:26:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 23:26:56 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Steffen Heise Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 00:26:58 2007 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.50) id 1ImHWt-0004xM-DR for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2007 00:26:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImHWj-0005XI-N7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2007 19:26:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImHWg-0005Uk-DJ for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2007 19:26:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImHWe-0005TJ-Ua for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2007 19:26:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImHWe-0005T1-PY for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2007 19:26:36 -0400 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImHWe-0005Tk-9v for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2007 19:26:36 -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 2804C2CAD; Mon, 29 Oct 2007 08:26:31 +0900 (JST) In-Reply-To: <93DF8565-CAA3-4D03-949D-2B8BF6C5B812@mac.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:16858 Archived-At: >>>>> On Sat, 27 Oct 2007 18:10:11 -0400, Steffen Heise said: > make fails with the following error message: > Assertion failed: (filesize <= ranges->size), function > unexec_regions_recorder, file unexmacosx.c, line 454. > make[1]: *** [emacs] Abort trap > make[1]: *** Deleting file `emacs' > make: *** [src] Error 2 Could you try the following patch? I can't test it myself as I don't have Leopard yet. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp Index: src/unexmacosx.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/unexmacosx.c,v retrieving revision 1.22.2.1 diff -c -p -r1.22.2.1 unexmacosx.c *** src/unexmacosx.c 25 Jul 2007 05:15:30 -0000 1.22.2.1 --- src/unexmacosx.c 28 Oct 2007 23:16:01 -0000 *************** unexec_regions_recorder (task_t task, vo *** 443,457 **** while (num && num_unexec_regions < MAX_UNEXEC_REGIONS) { ! /* Subtract the size of trailing null pages from filesize. It can be smaller than vmsize in segment commands. In such a ! case, trailing pages are initialized with zeros. */ ! for (p = ranges->address + ranges->size; p > ranges->address; ! p -= sizeof (int)) ! if (*(((int *) p)-1)) break; ! filesize = ROUNDUP_TO_PAGE_BOUNDARY (p - ranges->address); ! assert (filesize <= ranges->size); unexec_regions[num_unexec_regions].filesize = filesize; unexec_regions[num_unexec_regions++].range = *ranges; --- 443,455 ---- while (num && num_unexec_regions < MAX_UNEXEC_REGIONS) { ! /* Subtract the size of trailing null bytes from filesize. It can be smaller than vmsize in segment commands. In such a ! case, trailing bytes are initialized with zeros. */ ! for (p = ranges->address + ranges->size; p > ranges->address; p--) ! if (*(((char *) p)-1)) break; ! filesize = p - ranges->address; unexec_regions[num_unexec_regions].filesize = filesize; unexec_regions[num_unexec_regions++].range = *ranges;