From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Emacs Mac port Date: Thu, 20 Sep 2012 17:51:44 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1348131128 17174 80.91.229.3 (20 Sep 2012 08:52:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 08:52:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 20 10:52:10 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TEcUT-0001rg-Bo for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2012 10:52:09 +0200 Original-Received: from localhost ([::1]:33872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEcUM-0008Gc-1J for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2012 04:52:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEcUF-0008El-2n for emacs-devel@gnu.org; Thu, 20 Sep 2012 04:52:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEcU9-0007qW-Qn for emacs-devel@gnu.org; Thu, 20 Sep 2012 04:51:55 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:53852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEcU9-0007p6-3y for emacs-devel@gnu.org; Thu, 20 Sep 2012 04:51:49 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B35DBC055D for ; Thu, 20 Sep 2012 17:51:44 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153400 Archived-At: >>>>> On Mon, 27 Aug 2012 16:40:10 +0900, YAMAMOTO Mitsuharu said: > The second update of Emacs 24 Mac port 3.x is available from > ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.2-mac-3.2.tar.gz > This version is based on Emacs 24.2. > The third update of Emacs 23 Mac port 2.x is also available from > ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-23.4-mac-2.3.tar.gz If you build them with the Command Line Tools for Xcode 4.5 (on both Lion and Mountain Lion) that has just been released, then it might be better to apply the following patch that I've just installed to the emacs-24 branch. I don't know if there's a real problem without this patch, but just in case... YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'src/unexmacosx.c' *** src/unexmacosx.c 2012-08-27 08:21:38 +0000 --- src/unexmacosx.c 2012-09-20 08:32:27 +0000 *************** *** 117,122 **** --- 117,129 ---- #include + /* LC_DATA_IN_CODE is not defined in mach-o/loader.h on OS X 10.7. + But it is used if we build with "Command Line Tools for Xcode 4.5 + (OS X Lion) - Septemper 2012". */ + #ifndef LC_DATA_IN_CODE + #define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ + #endif + #ifdef _LP64 #define mach_header mach_header_64 #define segment_command segment_command_64 *************** *** 614,619 **** --- 621,631 ---- printf ("LC_MAIN "); break; #endif + #ifdef LC_DATA_IN_CODE + case LC_DATA_IN_CODE: + printf ("LC_DATA_IN_CODE "); + break; + #endif #ifdef LC_SOURCE_VERSION case LC_SOURCE_VERSION: printf ("LC_SOURCE_VERSION"); *************** *** 1217,1225 **** #endif #ifdef LC_FUNCTION_STARTS ! /* Copy a LC_FUNCTION_STARTS/LC_DYLIB_CODE_SIGN_DRS load command from ! the input file to the output file, adjusting the data offset ! field. */ static void copy_linkedit_data (struct load_command *lc, long delta) { --- 1229,1237 ---- #endif #ifdef LC_FUNCTION_STARTS ! /* Copy a LC_FUNCTION_STARTS/LC_DATA_IN_CODE/LC_DYLIB_CODE_SIGN_DRS ! load command from the input file to the output file, adjusting the ! data offset field. */ static void copy_linkedit_data (struct load_command *lc, long delta) { *************** *** 1317,1322 **** --- 1329,1337 ---- #endif #ifdef LC_FUNCTION_STARTS case LC_FUNCTION_STARTS: + #ifdef LC_DATA_IN_CODE + case LC_DATA_IN_CODE: + #endif #ifdef LC_DYLIB_CODE_SIGN_DRS case LC_DYLIB_CODE_SIGN_DRS: #endif