From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Compiling Emacs on Mac OS X 10.6 Snow Leopard Date: Tue, 1 Sep 2009 13:35:57 -0400 Message-ID: References: <7EAD2D44-AA8C-4AAD-904B-BD0E0F6BF611@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1075.2) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251826586 24219 80.91.229.12 (1 Sep 2009 17:36:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 17:36:26 +0000 (UTC) To: YAMAMOTO Mitsuharu , Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 19:36:19 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 1MiXHG-0005CE-Nm for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 19:36:19 +0200 Original-Received: from localhost ([127.0.0.1]:41568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiXHG-0006My-1g for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 13:36:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiXH9-0006K2-94 for emacs-devel@gnu.org; Tue, 01 Sep 2009 13:36:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiXH4-0006DO-MY for emacs-devel@gnu.org; Tue, 01 Sep 2009 13:36:10 -0400 Original-Received: from [199.232.76.173] (port=44772 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiXH4-0006D6-Hf for emacs-devel@gnu.org; Tue, 01 Sep 2009 13:36:06 -0400 Original-Received: from mail-pz0-f191.google.com ([209.85.222.191]:52762) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiXH4-0002Wg-4g for emacs-devel@gnu.org; Tue, 01 Sep 2009 13:36:06 -0400 Original-Received: by pzk29 with SMTP id 29so160688pzk.1 for ; Tue, 01 Sep 2009 10:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=K9Im2HutSP5fXs6JHveaz2Kg19GTn7G12wyYvSGsWwY=; b=svUqeUVfYN6IvgulejFZceyZwZD61BlSDxI2Ct/91n9oYMITddvj7mUUd7Qfau5ujS tMQ0KqhK3g7sZvOccQ6l8XkkvTOpReOV6TbRMZv/GGwh6ncz8b7puGIhPBpQdfzu40bl AsTQF+yVrw5+98YnG5EIm9FqrCfDP+QkavMkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=tkceJB1gRDPRdCXYZFUAuyJ11vtvYHLQHCDhipgIYL66uasHeTWHgC0Ek0BNrq4rN/ HITa7AI/1hTiIBHf/wX2ibWFPrcS5E+qOqW+npxpppUp4FsKpkH9kVWLOb9IZneQ9dgo YtwMF0yS2tv/BZ+kkoIvqNRP6OPizyNuczG/I= Original-Received: by 10.115.24.9 with SMTP id b9mr4810690waj.86.1251826564485; Tue, 01 Sep 2009 10:36:04 -0700 (PDT) Original-Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id l38sm422317waf.44.2009.09.01.10.36.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Sep 2009 10:36:02 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1075.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:114952 Archived-At: On Sep 1, 2009, at 1:24 AM, YAMAMOTO Mitsuharu wrote: >> 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. CC='gcc -arch i386' ./configure --with-ns --without-x make bootstrap Turns out that I had a /usr/local/include/mach-o directory with the old loader.h file. It looks like it was installed along with llvm in spring 2008. It may have been part of a free iPhone OS related build stack that I installed around that time. I've fixed it for myself, but I can't tell how likely this sort of thing will happen on other people's systems. It's of course a problem with whatever I installed back then rather than with your code. >> export MACOSX_DEPLOYMENT_TARGET=10.4 > > 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? That brings up charset.o, lread.o and term.o. Well, I did a "make clean" and started from scratch with the 10.4 deployment target, and the results run fine on 10.5. Thanks - D