From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Dickinson Newsgroups: gmane.emacs.help Subject: Re: Error when compiling CVS emacs on Mac OS snow leopard Date: Fri, 4 Sep 2009 12:39:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6bc61d41-9cc3-49ef-bbd3-b301e4982cf2@l13g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252129680 25727 80.91.229.12 (5 Sep 2009 05:48:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2009 05:48:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 05 07:47:53 2009 Return-path: Envelope-to: geh-help-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 1Mjo7s-0003Fh-6t for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2009 07:47:52 +0200 Original-Received: from localhost ([127.0.0.1]:57099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mjo7q-0006ZC-L3 for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2009 01:47:50 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!c37g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 86.45.203.129 Original-X-Trace: posting.google.com 1252093145 13568 127.0.0.1 (4 Sep 2009 19:39:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Sep 2009 19:39:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c37g2000yqi.googlegroups.com; posting-host=86.45.203.129; posting-account=IPYfawoAAAB-GCgvkANdx48e_OEnfIQo User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172742 X-Mailman-Approved-At: Sat, 05 Sep 2009 01:47:13 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67887 Archived-At: On Sep 3, 12:34=A0pm, ramblex wrote: > I recently upgraded Mac OS X to Snow Leopard and tried to compile CVS > emacs; I get the following error: > > In file included from nsterm.h:20, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from nsterm.m:41: > dispextern.h:1250: error: array type has incomplete element type Replacing the line: #define NativeRectangle struct _NSRect in nsgui.h with #define NativeRectangle NSRect seems to fix this particular error. The next problem that turns up is in nsfont.m, in ns_char_width: nsfont.m: In function =91ns_char_width=92: nsfont.m:248: warning: =91NSFont=92 may not respond to =91-widthOfString:= =92 nsfont.m:248: warning: (Messages without a matching method signature nsfont.m:248: warning: will be assumed to return =91id=92 and accept nsfont.m:248: warning: =91...=92 as arguments.) nsfont.m:248: error: incompatible types in assignment Here the problem seems to be that the widthOfString NSFont method was deprecated, and no longer exists for 64-bit builds. The fix isn't at all obvious to me. -- Mark