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: Compiling Emacs on Mac OS X 10.6 Snow Leopard Date: Tue, 01 Sep 2009 14:24:13 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <7EAD2D44-AA8C-4AAD-904B-BD0E0F6BF611@gmail.com> NNTP-Posting-Host: lo.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 1251782679 17745 80.91.229.12 (1 Sep 2009 05:24:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 05:24:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 07:24:32 2009 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 1MiLr5-0004Fn-EQ for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 07:24:31 +0200 Original-Received: from localhost ([127.0.0.1]:60876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiLr4-0005HC-Jg for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 01:24:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiLqv-0005H7-De for emacs-devel@gnu.org; Tue, 01 Sep 2009 01:24:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiLqq-0005Gv-HY for emacs-devel@gnu.org; Tue, 01 Sep 2009 01:24:20 -0400 Original-Received: from [199.232.76.173] (port=57538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiLqq-0005Gs-9b for emacs-devel@gnu.org; Tue, 01 Sep 2009 01:24:16 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:61644) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiLqp-0003H7-Cb for emacs-devel@gnu.org; Tue, 01 Sep 2009 01:24:16 -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 419DCC054F; Tue, 1 Sep 2009 14:24:13 +0900 (JST) In-Reply-To: <7EAD2D44-AA8C-4AAD-904B-BD0E0F6BF611@gmail.com> 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 monty-python.gnu.org: NetBSD 3.0 (DF) 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:114935 Archived-At: >>>>> On Mon, 31 Aug 2009 13:50:06 -0400, David Reitter said: > On Aug 31, 2009, at 6:36 AM, YAMAMOTO Mitsuharu wrote: >> * For Emacs 22.3 and 23.1, you need to apply the patch below. It >> has already been applied to the CVS trunk. > This works, even though I had to include loader.h explicitly with a > full path, because it otherwise seems to include an older loader.h > that doesn't define LC_DYLD_INFO. How did you build it? The standard procedure should include the right loader.h. > The bigger problem now is that it won't run on 10.5 systems: > ./emacs dyld: unknown required load command 0x80000022 Trace/BPT > trap > (LC_DYLD_INFO = 0x22) Yes. It is mentioned in "Dynamic Loader Release Notes" http://developer.apple.com/mac/library/releasenotes/DeveloperTools/RN-dyld/index.html > So I set the deployment target... > export MACOSX_DEPLOYMENT_TARGET=10.4 > In that case it builds fine, even without LC_DYLD_INFO being > defined. I think the linker will correctly generate compatible > mach-o files. > It still won't execute on 10.5. Not sure what this is about: > ./Emacs -nw dyld: lazy symbol binding failed: Symbol not found: > _fdopen$UNIX2003 Referenced from: > /Users/dr/Emacs.app/Contents/MacOS/./Emacs Expected in: > /usr/lib/libSystem.B.dylib > dyld: Symbol not found: _fdopen$UNIX2003 Referenced from: > /Users/dr/Emacs.app/Contents/MacOS/./Emacs Expected in: > /usr/lib/libSystem.B.dylib I can't reproduce this with the CVS trunk HEAD. What I did was: mkdir emacs-ns-i386-10.4 cd emacs-ns-i386-10.4 MACOSX_DEPLOYMENT_TARGET=10.4 CC='gcc -arch i386' ../emacs/configure --with-ns MACOSX_DEPLOYMENT_TARGET=10.4 make install The resulting binary runs on both 10.5 and 10.4. You can check which object uses _fdopen$UNIX2003 by running "nm -A src/*.o | grep fdopen". Or maybe Emacs is unconsciously linked with some external libraries? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp