all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15505: 24.3; Latest trunk fails to compile on 32 bit Mac OS X (macfont.m).
@ 2013-10-02  2:06 David Caldwell
  2013-10-02  2:28 ` Alp Aker
  0 siblings, 1 reply; 3+ messages in thread
From: David Caldwell @ 2013-10-02  2:06 UTC (permalink / raw)
  To: 15505

[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]

I'm configuring like this:

    env CC="i686-apple-darwin10-gcc-4.2.1 -mmacosx-version-min=10.5"
./configure --host=i686-apple-darwin --build=i686-apple-darwin --with-ns

It all compiles ok until it gets to macfont.m:

i686-apple-darwin10-gcc-4.2.1 -mmacosx-version-min=10.5  -std=gnu99 -c
-Demacs  -I. -I/Users/david/src/emacs-dev/emacs-bzr/build-2013-09-20/src
-I../lib
-I/Users/david/src/emacs-dev/emacs-bzr/build-2013-09-20/src/../lib
  -I/usr/include/libxml2          -MMD -MF deps/macfont.d -MP     -g3
-O2   macfont.m
macfont.m: In function 'macfont_draw':
macfont.m:2712: error: incompatible type for argument 2 of
'CGContextFillRect'
make[1]: *** [macfont.o] Error 1
make: *** [src] Error 2

On further examination, I found this: http://cocoadev.com/CGRect
which says that you need NSRectToCGRect() on 32 bit Mac OS X platforms
(which explains only the 32 bit compile is failing). Luckily there is
CGRectMake which analagous to NSMakeRect:

https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/uid/TP30000955-CH1g-F17161

The following patch fixes the issue:

=== modified file 'src/macfont.m'
--- src/macfont.m	2013-09-15 19:36:20 +0000
+++ src/macfont.m	2013-10-02 01:32:30 +0000
@@ -2708,7 +2708,7 @@
     {
       CG_SET_FILL_COLOR_WITH_GC_BACKGROUND (context, s);
       CGContextFillRect (context,
-			 NSMakeRect (x, y,
+			 CGRectMake (x, y,
                                      s->width, FONT_HEIGHT (s->font)));
     }


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15505: 24.3; Latest trunk fails to compile on 32 bit Mac OS X (macfont.m).
  2013-10-02  2:06 bug#15505: 24.3; Latest trunk fails to compile on 32 bit Mac OS X (macfont.m) David Caldwell
@ 2013-10-02  2:28 ` Alp Aker
  2013-10-02  2:30   ` Alp Aker
  0 siblings, 1 reply; 3+ messages in thread
From: Alp Aker @ 2013-10-02  2:28 UTC (permalink / raw)
  To: David Caldwell; +Cc: 15505

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

merge 15505 15000
thanks

Thanks for the report.  I'll install a fix momentarily.

[-- Attachment #2: Type: text/html, Size: 142 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15505: 24.3; Latest trunk fails to compile on 32 bit Mac OS X (macfont.m).
  2013-10-02  2:28 ` Alp Aker
@ 2013-10-02  2:30   ` Alp Aker
  0 siblings, 0 replies; 3+ messages in thread
From: Alp Aker @ 2013-10-02  2:30 UTC (permalink / raw)
  Cc: 15505

[-- Attachment #1: Type: text/plain, Size: 32 bytes --]

unmerge 15505
merge 15505 15500

[-- Attachment #2: Type: text/html, Size: 80 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-02  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02  2:06 bug#15505: 24.3; Latest trunk fails to compile on 32 bit Mac OS X (macfont.m) David Caldwell
2013-10-02  2:28 ` Alp Aker
2013-10-02  2:30   ` Alp Aker

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.