unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc
@ 2008-07-20 20:23 Yuji Yamano
  2008-07-21  4:25 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 2+ messages in thread
From: Yuji Yamano @ 2008-07-20 20:23 UTC (permalink / raw)
  To: emacs-devel

I got the folllwiong compilation error message while buillding
emacs EMACS_22_BASE on Mac OS X 10.4.11/ppc. 

macterm.c: In function 'XDrawLine':
macterm.c:422: error: 'kCGBitmapByteOrder32Host' undeclared (first use in this function)
macterm.c:422: error: (Each undeclared identifier is reported only once
macterm.c:422: error: for each function it appears in.)
macterm.c: In function 'XCreatePixmapFromBitmapData':
macterm.c:754: error: 'kCGBitmapByteOrder32Host' undeclared (first use in this function)
make[2]: *** [macterm.o] Error 1
make[1]: *** [bootstrap-build] Error 2
make: *** [bootstrap] Error 2

Here is the pacth to fix the problem.

Index: macterm.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macterm.h,v
retrieving revision 1.57.2.9
diff -u -r1.57.2.9 macterm.h
--- macterm.h	11 Jul 2008 08:53:20 -0000	1.57.2.9
+++ macterm.h	20 Jul 2008 18:51:01 -0000
@@ -46,6 +46,11 @@
 #define FONT_BASE(f)    ((f)->ascent)
 #define FONT_DESCENT(f) ((f)->descent)
 
+/* kCGBitmapByteOrder32Host is not defined on macosx/ppc 10.4 */ 
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 || !defined(kCGBitmapByteOrder32Host)
+#define kCGBitmapByteOrder32Host 0
+#endif
+
 /* Structure recording bitmaps and reference count.
    If REFCOUNT is 0 then this record is free to be reused.  */
 
-- Yuji Yamano
Peace, unity, love and having fun!




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

* Re: EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc
  2008-07-20 20:23 EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc Yuji Yamano
@ 2008-07-21  4:25 ` YAMAMOTO Mitsuharu
  0 siblings, 0 replies; 2+ messages in thread
From: YAMAMOTO Mitsuharu @ 2008-07-21  4:25 UTC (permalink / raw)
  To: Yuji Yamano; +Cc: emacs-devel

>>>>> On Sun, 20 Jul 2008 13:23:05 -0700 (PDT), Yuji Yamano <yyamano@kt.rim.or.jp> said:

> I got the folllwiong compilation error message while buillding
> emacs EMACS_22_BASE on Mac OS X 10.4.11/ppc. 

> macterm.c: In function 'XDrawLine':
> macterm.c:422: error: 'kCGBitmapByteOrder32Host' undeclared (first use in this function)
> macterm.c:422: error: (Each undeclared identifier is reported only once
> macterm.c:422: error: for each function it appears in.)
> macterm.c: In function 'XCreatePixmapFromBitmapData':
> macterm.c:754: error: 'kCGBitmapByteOrder32Host' undeclared (first use in this function)
> make[2]: *** [macterm.o] Error 1
> make[1]: *** [bootstrap-build] Error 2
> make: *** [bootstrap] Error 2

> Here is the pacth to fix the problem.

> Index: macterm.h
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/macterm.h,v
> retrieving revision 1.57.2.9
> diff -u -r1.57.2.9 macterm.h
> --- macterm.h	11 Jul 2008 08:53:20 -0000	1.57.2.9
> +++ macterm.h	20 Jul 2008 18:51:01 -0000
> @@ -46,6 +46,11 @@
>  #define FONT_BASE(f)    ((f)->ascent)
>  #define FONT_DESCENT(f) ((f)->descent)
 
> +/* kCGBitmapByteOrder32Host is not defined on macosx/ppc 10.4 */ 
> +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 || !defined(kCGBitmapByteOrder32Host)
> +#define kCGBitmapByteOrder32Host 0
> +#endif
> +
>  /* Structure recording bitmaps and reference count.
>     If REFCOUNT is 0 then this record is free to be reused.  */
 
Thanks for the report.  I've installed slightly different changes.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp




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

end of thread, other threads:[~2008-07-21  4:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 20:23 EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc Yuji Yamano
2008-07-21  4:25 ` YAMAMOTO Mitsuharu

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).