all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark Dickinson <dickinsm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Error when compiling CVS emacs on Mac OS snow leopard
Date: Fri, 4 Sep 2009 12:39:04 -0700 (PDT)	[thread overview]
Message-ID: <e49395f8-336f-4965-ade2-dac7085b4af0@c37g2000yqi.googlegroups.com> (raw)
In-Reply-To: 6bc61d41-9cc3-49ef-bbd3-b301e4982cf2@l13g2000yqb.googlegroups.com

On Sep 3, 12:34 pm, ramblex <alexdul...@googlemail.com> 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,
>                  from 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 ‘ns_char_width’:
nsfont.m:248: warning: ‘NSFont’ may not respond to ‘-widthOfString:’
nsfont.m:248: warning: (Messages without a matching method signature
nsfont.m:248: warning: will be assumed to return ‘id’ and accept
nsfont.m:248: warning: ‘...’ 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


  parent reply	other threads:[~2009-09-04 19:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 11:34 Error when compiling CVS emacs on Mac OS snow leopard ramblex
2009-09-03 20:32 ` Xah Lee
2009-09-04 19:39 ` Mark Dickinson [this message]
2009-09-05  7:05   ` CHENG Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e49395f8-336f-4965-ade2-dac7085b4af0@c37g2000yqi.googlegroups.com \
    --to=dickinsm@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.