views:

161

answers:

2

When I try to compile GNU Emacs 23.1 on my machine with Mac OS X 10.6.3 I repeatedly get the following ending:

Directories: /src/emacs-23.1/lisp/. /src/emacs-23.1/lisp/./calc /src/emacs-23.1/lisp/./calendar /src/emacs-23.1/lisp/./emacs-lisp /src/emacs-23.1/lisp/./emulation /src/emacs-23.1/lisp/./erc /src/emacs-23.1/lisp/./eshell /src/emacs-23.1/lisp/./gnus /src/emacs-23.1/lisp/./international /src/emacs-23.1/lisp/./language /src/emacs-23.1/lisp/./mail /src/emacs-23.1/lisp/./mh-e /src/emacs-23.1/lisp/./net /src/emacs-23.1/lisp/./nxml /src/emacs-23.1/lisp/./org /src/emacs-23.1/lisp/./play /src/emacs-23.1/lisp/./progmodes /src/emacs-23.1/lisp/./textmodes /src/emacs-23.1/lisp/./url
/bin/sh: line 1: 69491 Segmentation fault      EMACSLOADPATH=/src/emacs-23.1/lisp LC_ALL=C ../src/bootstrap-emacs -batch --no-site-file --multibyte -l autoload --eval '(setq generated-autoload-file "/src/emacs-23.1/lisp/loaddefs.el")' -f batch-update-autoloads $wins
make[2]: *** [autoloads] Error 139
make[1]: *** [/src/emacs-23.1/src/../lisp/loaddefs.el] Error 2
make: *** [src] Error 2

Does anyone know what this means and what I could do to resolve the issue?

By the way, here is my ./configure settings:

./configure --prefix=/usr/local --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-x

I've tried to compile both with and without X with no success.

+1  A: 

for standalone version,

./configure --with-ns
make
make install

compiles fine.

Hamza Yerlikaya
Now I get this when I configure with ns:nsterm.m:5219: warning: class 'EmacsView' does not implement the 'NSWindowDelegate' protocolmake[1]: *** [nsterm.o] Error 1make: *** [src] Error 2Any more suggestions? Thanks!
penyuan
I am using the latest CVS version 23.1.90.2 built couple of weeks ago. I would suggest checking out the latest version.
Hamza Yerlikaya
+2  A: 

Apparently the 23.1 release version does not build on 10.6; you need to checkout a development version. See here and here. You could also save yourself trouble by letting MacPorts do the work for you:

sudo port selfupdate
sudo port install emacs-app-devel

Works for me on 10.6.3.

Ned Deily
It worked, thanks a lot!
penyuan