From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuji Yamano Newsgroups: gmane.emacs.devel Subject: EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc Date: Sun, 20 Jul 2008 13:23:05 -0700 (PDT) Message-ID: <20080720.132305.171165560.yyamano@kt.rim.or.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216611546 4711 80.91.229.12 (21 Jul 2008 03:39:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 03:39:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 21 05:39:54 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKmFe-0008PK-1w for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 05:39:54 +0200 Original-Received: from localhost ([127.0.0.1]:50435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKmEl-0005uM-0w for ged-emacs-devel@m.gmane.org; Sun, 20 Jul 2008 23:38:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKfqw-0005TG-Vu for emacs-devel@gnu.org; Sun, 20 Jul 2008 16:49:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKfqw-0005Si-2u for emacs-devel@gnu.org; Sun, 20 Jul 2008 16:49:58 -0400 Original-Received: from [199.232.76.173] (port=52418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKfqv-0005Se-Qv for emacs-devel@gnu.org; Sun, 20 Jul 2008 16:49:57 -0400 Original-Received: from mbos141-202.alpenstock.jp ([220.156.141.202]:49699 helo=m102.mbos.jp) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKfqv-0001EB-D9 for emacs-devel@gnu.org; Sun, 20 Jul 2008 16:49:57 -0400 Original-Received: (qmail 18210 invoked from network); 21 Jul 2008 05:23:10 +0900 Original-Received: from adsl-99-179-47-216.dsl.pltn13.sbcglobal.net (HELO localhost) (yyamano@kt.rim.or.jp@[99.179.47.216]) (envelope-sender ) by beijing.mbos (qmail-ldap-1.03) with SMTP for ; 21 Jul 2008 05:23:10 +0900 X-fingerprint: 0DD9 4D1C EBE1 D9B3 4EE0 AC5E F3A4 E5D6 F11A 4171 X-Mailer: Mew version 5.2.51 on Emacs 22.2.50 / Mule 5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-Greylist: delayed 1600 seconds by postgrey-1.27 at monty-python; Sun, 20 Jul 2008 16:49:55 EDT X-Mailman-Approved-At: Sun, 20 Jul 2008 23:38:53 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101043 Archived-At: 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!