From: David Reitter <david.reitter@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>,
Emacs Development <emacs-devel@gnu.org>
Subject: Re: Compiling Emacs on Mac OS X 10.6 Snow Leopard
Date: Tue, 1 Sep 2009 13:35:57 -0400 [thread overview]
Message-ID: <E1385401-1B89-41B7-BEBC-48F48930D70E@gmail.com> (raw)
In-Reply-To: <wly6ozz18i.wl%mituharu@math.s.chiba-u.ac.jp>
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
next prev parent reply other threads:[~2009-09-01 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 10:36 Compiling Emacs on Mac OS X 10.6 Snow Leopard YAMAMOTO Mitsuharu
2009-08-31 14:40 ` Stefan Monnier
2009-08-31 17:50 ` David Reitter
2009-09-01 5:24 ` YAMAMOTO Mitsuharu
2009-09-01 17:35 ` David Reitter [this message]
2009-08-31 18:02 ` CHENG Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1385401-1B89-41B7-BEBC-48F48930D70E@gmail.com \
--to=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).