Skip navigation
This discussion is archived

emacs broken in leopard?

17119 Views 51 Replies Latest reply: Jan 27, 2008 9:56 PM by mkikeda RSS
  • KiloNiner Calculating status...
    Currently Being Moderated
    Nov 28, 2007 9:33 AM (in response to Brian P. Campbell)
    This did the trick for me. Thanks!

    Funny that performing tie upgrade from 104 to 10.5 didn't break it for me the first time, but did when I reinstalled 10.4 and upgraded to 10.5 on the same day. shrugs
    Mac Mini, Mac OS X (10.5.1)
  • Michel.B.Delaunay Calculating status...
    Currently Being Moderated
    Nov 29, 2007 6:05 AM (in response to Brian P. Campbell)
    After created a new version of emacs for Leopard using your indications, i have another problem when i want to install emacs from macport:

    emacs --version
    GNU Emacs 22.1.1
    Copyright (C) 2007 Free Software Foundation, Inc.
    GNU Emacs comes with ABSOLUTELY NO WARRANTY.
    You may redistribute copies of Emacs
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.
    alien7:~ delaunay$ sudo port install emacs
    ---> Building emacs with target all
    Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/opt_local_var_macports_sources_rsync.macports.org_release_ports_editorsemacs/work/emacs-22.1" && make all " returned error 2
    Command output: Highest address of load commands in input file: 0x2b7000
    Lowest offset of all sections in __TEXT segment: 0x2380
    --- List of Load Commands in Input File ---
    # cmd cmdsize name address size
    0 LC_SEGMENT 56 __PAGEZERO 0 0x1000
    1 LC_SEGMENT 396 __TEXT 0x1000 0x135000
    __text 0x3380 0x122eb8
    __cstring 0x126238 0xfc23
    __literal8 0x135e60 0x78
    __const 0x135ee0 0x100
    __literal4 0x135fe0 0x4
    2 LC_SEGMENT 328 __DATA 0x136000 0x156000
    __data 0x136000 0x119ac2
    __dyld 0x24fac4 0x1c
    __bss 0x24fae0 0x31aa5
    __common 0x2815a0 0xaa51
    3 LC_SEGMENT 192 __IMPORT 0x28c000 0x2000
    __pointers 0x28c000 0x1584
    _jumptable 0x28d5c0 0x3fc
    4 LC_SEGMENT 56 __LINKEDIT 0x28e000 0x29000
    5 LC_SYMTAB 24
    6 LC_DYSYMTAB 80
    7 LCLOADDYLINKER 28
    8 LC_UNIXTHREAD 80
    9 LCLOADDYLIB 60
    10 LCLOADDYLIB 52
    11 LCLOADDYLIB 52
    make[1]: * [emacs] Abort trap
    make[1]: * Deleting file `emacs'
    make: * [src] Error 2

    could you help me ?
    thanks in advance.
    MacBook Pro, Mac OS X (10.5.1)
  • Brian P. Campbell Calculating status...
    Currently Being Moderated
    Dec 4, 2007 9:58 PM (in response to KiloNiner)
    The reason it breaks if you've recently installed 10.4, but not if you installed it a while ago, is that it's checking the modification date of /usr/bin/emacs. If it is newer than the one built with Leopard, it won't run the dumpemacs process which builds the new /usr/bin/emacs out of /usr/bin/emacs-i386 and a dump of the compiled elisp files. So, if your Tiger emacs is newer than your Leopard one (because you installed Tiger after Leopard was built), it just doesn't upgrade you.

    Why there's a check on the date of the emacs binary, I have no idea. I've filed a bug with Apple about this, but I haven't heard anything about it.
    MacBook Pro, Mac OS X (10.5.1)
  • fritzlang Calculating status...
    Currently Being Moderated
    Dec 12, 2007 7:05 AM (in response to stbose)
    Hi, I have the same problem: I tried to build emacs for x11 (after applying the patch). I tried the three possibilities :
    1)./configure
    2)./configure --without-carbon --with-x
    3) the one proposed by stbose
    nothing works and the message is always

    checking build system type... i386-apple-darwin9.0.0
    checking host system type... i386-apple-darwin9.0.0
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.

    I don't know what I can do!!!
    macbook, Mac OS X (10.5.1)
  • antoine.rousseau Calculating status...
    Currently Being Moderated
    Jan 10, 2008 1:15 AM (in response to Brian P. Campbell)
    Sorry doesn't work for me. Here comes the output...

    Last login: Thu Jan 10 10:01:41 on tty??
    elie:~ Antoine$ sudo mv /usr/bin/emacs-i386 /usr/bin/emacs-i386.backup
    Password:
    elie:~ Antoine$ sudo /usr/libexec/dumpemacs -d
    Checking if emacs is up-to-date
    emacs is not up-to-date. Needs dumping
    Generating random directory with template /tmp/emacs.XXXXXX
    Directory is /tmp/emacs.IgzbjZ
    Making directory /tmp/emacs.IgzbjZ/etc
    Making directory /tmp/emacs.IgzbjZ/lib-src
    Making directory /tmp/emacs.IgzbjZ/src
    Making symlink /tmp/emacs.IgzbjZ/etc/GNU -> /usr/share/emacs/22.1/etc/GNU
    Making symlink /tmp/emacs.IgzbjZ/etc/DOC -> /usr/share/emacs/22.1/etc/DOC-22.1.1
    Thinning /usr/bin/emacs-undumped to /tmp/emacs.IgzbjZ/src/temacs
    Attempting to dump emacs
    Loading loadup.el (source)...
    Using load-path (/usr/share/emacs/22.1/site-lisp /usr/share/emacs/site-lisp /usr/share/emacs/22.1/lisp /usr/share/emacs/22.1/leim)
    Loading emacs-lisp/byte-run...
    Loading emacs-lisp/backquote...
    Loading subr...
    Loading version.el (source)...
    Loading widget...
    Loading custom...
    Loading emacs-lisp/map-ynp...
    Loading env...
    Loading cus-start...
    Loading international/mule...
    Loading international/mule-conf.el (source)...
    Loading format...
    Loading bindings...
    Loading files...
    Loading cus-face...
    Loading faces...
    Lists of integers (garbage collection statistics) are normal output
    while building Emacs; they do not indicate a problem.
    ((10157 . 6835) (4583 . 0) (577 . 4) 15747 15428 (8 . 5) (17 . 0) (849 . 2175))
    Loading loaddefs.el (source)...
    ((28020 . 11589) (7535 . 0) (586 . 10) 41819 15428 (34 . 33) (17 . 0) (3702 . 1464))
    Loading simple...
    Loading help...
    Loading jka-cmpr-hook...
    Loading international/mule-cmds...
    Loading case-table...
    Loading international/utf-8...
    Loading international/utf-16...
    Loading international/characters...
    Loading international/latin-1.el (source)...
    Loading international/latin-2.el (source)...
    Loading international/latin-3.el (source)...
    Loading international/latin-4.el (source)...
    Loading international/latin-5.el (source)...
    Loading international/latin-8.el (source)...
    Loading international/latin-9.el (source)...
    Loading language/chinese...
    Loading language/cyrillic...
    Loading language/indian...
    Loading language/devanagari.el (source)...
    Loading language/malayalam.el (source)...
    Loading language/tamil.el (source)...
    Loading language/kannada.el (source)...
    Loading language/english.el (source)...
    Loading language/ethiopic...
    Loading language/european...
    Loading language/czech.el (source)...
    Loading language/slovak.el (source)...
    Loading language/romanian.el (source)...
    Loading language/greek.el (source)...
    Loading language/hebrew.el (source)...
    Loading language/japanese.el (source)...
    Loading language/korean.el (source)...
    Loading language/lao.el (source)...
    Loading language/thai.el (source)...
    Loading language/tibetan...
    Loading language/vietnamese...
    Loading language/misc-lang.el (source)...
    Loading language/utf-8-lang.el (source)...
    Loading language/georgian.el (source)...
    Loading international/ucs-tables...
    Loading indent...
    Loading window...
    Loading frame...
    Loading term/tty-colors...
    Loading font-core...
    Loading facemenu...
    Loading emacs-lisp/syntax...
    Loading font-lock...
    Loading jit-lock...
    Loading mouse...
    Loading scroll-bar...
    Loading select...
    Loading emacs-lisp/timer...
    Loading isearch...
    Loading rfn-eshadow...
    ((48186 . 18707) (10477 . 0) (620 . 69) 62975 159484 (64 . 3) (18 . 12) (4968 . 1899))
    Loading menu-bar...
    Loading paths.el (source)...
    Loading startup...
    Loading emacs-lisp/lisp...
    Loading textmodes/page...
    Loading register...
    Loading textmodes/paragraphs...
    Loading emacs-lisp/lisp-mode...
    Loading textmodes/text-mode...
    Loading textmodes/fill...
    ((55042 . 11851) (11132 . 0) (622 . 67) 76227 161154 (64 . 3) (18 . 12) (5507 . 2494))
    Loading replace...
    Loading abbrev...
    Loading buff-menu...
    Loading fringe...
    Loading image...
    Loading international/fontset...
    Loading dnd...
    Loading mwheel...
    Loading tool-bar...
    ((56679 . 10214) (11557 . 0) (623 . 66) 77178 161729 (66 . 8) (18 . 12) (5551 . 2324))
    Loading emacs-lisp/float-sup...
    ((56706 . 10187) (11561 . 0) (623 . 66) 77482 161729 (67 . 9) (18 . 12) (5559 . 2316))
    Loading vc-hooks...
    Loading ediff-hook...
    Loading tooltip...
    ((58012 . 8881) (11703 . 0) (624 . 65) 78479 161780 (69 . 7) (18 . 12) (5624 . 2251))
    Finding pointers to doc strings...
    Finding pointers to doc strings...done
    Dumping under names emacs and emacs-22.1.1
    --- List of All Regions ---
    address size prot maxp
    0 0x1000 none none
    0x1000 0x145000 r x rwx
    0x146000 0x11d000 rw rwx
    0x263000 0x3d000 rw rwx
    0x2a0000 0x3000 rwx rwx
    0x2a3000 0xc000 r rwx
    0x2af000 0x1000 none rwx
    0x2b0000 0x1000 rw rwx
    0x2b1000 0x1000 none rwx
    0x2b2000 0x6000 rw rwx
    0x2b8000 0x1000 none rwx
    0x2b9000 0x1000 rw rwx
    0x2ba000 0x1000 none rwx
    0x2bb000 0x5000 rw rwx
    0x2c0000 0x3000 rw rwx
    0x2c3000 0x5000 r rwx
    0x2c8000 0x1000 rw rwx
    0x2c9000 0x1c000 rw rwx
    0x2e5000 0x2000 rw rwx
    0x2e7000 0x2000 rw rwx
    0x2e9000 0x1000 rw rwx
    0x2ea000 0x1000 rw rwx
    0x2eb000 0x1000 rw rwx
    0x2ec000 0x1000 rw rwx
    0x2ed000 0x1000 rw rwx
    0x2ee000 0x1000 rw rwx
    0x2ef000 0x1000 rw rwx
    0x2f0000 0x1000 rw rwx
    0x2f1000 0x1000 rw rwx
    0x2f2000 0x1000 rw rwx
    0x2f3000 0x1000 rw rwx
    0x2f4000 0x1000 rw rwx
    0x2f5000 0x1000 rw rwx
    0x2f6000 0x1000 rw rwx
    0x2f7000 0x1000 rw rwx
    0x2f8000 0x1000 rw rwx
    0x2f9000 0x5000 rw rwx
    0x2fe000 0x1000 r rw
    0x300000 0x100000 rw rwx
    0x400000 0x400000 rw rwx
    0x800000 0x800000 rw rwx
    0x1000000 0x100000 rw rwx
    0x1100000 0x1000 rw rwx
    0x1101000 0x1000 rw rwx
    0x1102000 0x1000 rw rwx
    0x1103000 0x1000 rw rwx
    0x1104000 0x1000 rw rwx
    0x1105000 0x1000 rw rwx
    0x1106000 0x1000 rw rwx
    0x1107000 0x1000 rw rwx
    0x1108000 0x1000 rw rwx
    0x1109000 0x1e000 rw rwx
    0x1127000 0x1e000 rw rwx
    0x1145000 0x1e000 rw rwx
    0x1163000 0x1e000 rw rwx
    0x1181000 0x5000 rw rwx
    0x1258000 0x1e000 rw rwx
    0x1276000 0x19000 rw rwx
    0x128f000 0xc000 rw rwx
    --- List of Regions to be Dumped ---
    address size prot maxp
    0 0x1000 none none
    0x1000 0x145000 r x rwx
    0x146000 0x15a000 rw rwx
    0x2a0000 0x3000 rwx rwx
    0x2a3000 0xc000 r rwx
    0x2af000 0x1000 none rwx
    0x2b0000 0x1000 rw rwx
    0x2b1000 0x1000 none rwx
    0x2b2000 0x6000 rw rwx
    0x2b8000 0x1000 none rwx
    0x2b9000 0x1000 rw rwx
    0x2ba000 0x1000 none rwx
    0x2bb000 0x8000 rw rwx
    0x2c3000 0x5000 r rwx
    0x2c8000 0x36000 rw rwx
    0x2fe000 0x1000 r rw
    0x300000 0xe86000 rw rwx
    0x1258000 0x43000 rw rwx
    --- Header Information ---
    Magic = 0xfeedface
    CPUType = 7
    CPUSubType = 3
    FileType = 0x2
    NCmds = 19
    SizeOfCmds = 2072
    Flags = 0x00000085
    Highest address of load commands in input file: 0x2af000
    Lowest offset of all sections in __TEXT segment: 0x1934
    --- List of Load Commands in Input File ---
    # cmd cmdsize name address size
    0 LC_SEGMENT 56 __PAGEZERO 0 0x1000
    1 LC_SEGMENT 396 __TEXT 0x1000 0x145000
    __text 0x2934 0x12d4b9
    __cstring 0x12fdf0 0x1395f
    __literal8 0x143750 0xf0
    __const 0x143840 0x27a0
    __literal4 0x145fe0 0x1c
    2 LC_SEGMENT 464 __DATA 0x146000 0x15a000
    __data 0x146000 0x11aee6
    __dyld 0x260ee8 0x1c
    __const 0x260f20 0x17c0
    __cfstring 0x2626e0 0xa0
    __bss 0x262780 0x31e8d
    __common 0x294620 0xac91
    3 LC_SEGMENT 192 __IMPORT 0x2a0000 0x3000
    __pointers 0x2a0000 0x17c4
    _jumptable 0x2a1800 0xe6a
    4 LC_SEGMENT 56 __LINKEDIT 0x2a3000 0xc000
    5 LC_SYMTAB 24
    6 LC_DYSYMTAB 80
    7 LCLOADDYLINKER 28
    8 LC_UUID 24
    9 LC_UNIXTHREAD 80
    10 LCLOADDYLIB 88
    11 LCLOADDYLIB 92
    12 LCLOADDYLIB 104
    13 LCLOADDYLIB 56
    14 LCLOADDYLIB 52
    15 LCLOADDYLIB 52
    16 LCLOADDYLIB 100
    17 LCLOADDYLIB 112
    18 LCCODESIGNATURE 16
    0x10fc080 (sz: 0/ 0x3f0a)
    0x1000000 (sz: 0x1/ 0xfc080)
    0x1ff8000 (sz: 0x2/ 0x7f80)
    0x1800000 (sz: 0x3/0x7f8000)
    0x2f9000 (sz: 0x4/ 0x5000)
    0x2bb000 (sz: 0x5/ 0x5000)
    0x1296000 (sz: 0x6/ 0x5000)
    0x128f000 (sz: 0x7/ 0x7000)
    0x128a000 (sz: 0x8/ 0x5000)
    0x1285000 (sz: 0x9/ 0x5000)
    0x1181000 (sz: 0xa/ 0x5000)
    0x1280000 (sz: 0xb/ 0x5000)
    0x117c000 (sz: 0xc/ 0x5000)
    0x127b000 (sz: 0xd/ 0x5000)
    0x1177000 (sz: 0xe/ 0x5000)
    0x1276000 (sz: 0xf/ 0x5000)
    0x1172000 (sz: 0x10/ 0x5000)
    0x1271000 (sz: 0x11/ 0x5000)
    0x116d000 (sz: 0x12/ 0x5000)
    0x126c000 (sz: 0x13/ 0x5000)
    0x1168000 (sz: 0x14/ 0x5000)
    0x1267000 (sz: 0x15/ 0x5000)
    0x1163000 (sz: 0x16/ 0x5000)
    0x1262000 (sz: 0x17/ 0x5000)
    0x115e000 (sz: 0x18/ 0x5000)
    0x125d000 (sz: 0x19/ 0x5000)
    0x1159000 (sz: 0x1a/ 0x5000)
    0x1258000 (sz: 0x1b/ 0x5000)
    0x1154000 (sz: 0x1c/ 0x5000)
    0x114f000 (sz: 0x1d/ 0x5000)
    0x114a000 (sz: 0x1e/ 0x5000)
    0x1145000 (sz: 0x1f/ 0x5000)
    0x1140000 (sz: 0x20/ 0x5000)
    0x113b000 (sz: 0x21/ 0x5000)
    0x1136000 (sz: 0x22/ 0x5000)
    0x1131000 (sz: 0x23/ 0x5000)
    0x112c000 (sz: 0x24/ 0x5000)
    0x1127000 (sz: 0x25/ 0x5000)
    0x1122000 (sz: 0x26/ 0x5000)
    0x111d000 (sz: 0x27/ 0x5000)
    0x1118000 (sz: 0x28/ 0x5000)
    0x1113000 (sz: 0x29/ 0x5000)
    0x110e000 (sz: 0x2a/ 0x5000)
    0x1109000 (sz: 0x2b/ 0x5000)
    Page ( 0x1000) aligning region @0x1000000 size from 0xfff8a to 0x100000
    Page ( 0x1000) aligning region @0x1800000 size from 0x7fff80 to 0x800000
    --- Load Commands written to Output File ---
    Writing segment __PAGEZERO @ 0 ( 0/ 0x1000 @ 0)
    Writing segment __TEXT @ 0 (0x145000/0x145000 @ 0x1000)
    Writing segment __DATA @ 0x145000 (0x15a000/0x15a000 @ 0x146000)
    section __data at 0x145000 - 0x25fee6 (sz: 0x11aee6)
    section __dyld at 0x25fee8 - 0x25ff04 (sz: 0x1c)
    section __const at 0x25ff20 - 0x2616e0 (sz: 0x17c0)
    section __cfstring at 0x2616e0 - 0x261780 (sz: 0xa0)
    section __bss at 0x261780 - 0x29360d (sz: 0x31e8d)
    section __common at 0x293620 - 0x29e2b1 (sz: 0xac91)
    Writing segment __DATA @ 0x29f000 ( 0x5000/ 0x5000 @ 0x2bb000)
    Writing segment __DATA @ 0x2a4000 ( 0x5000/ 0x5000 @ 0x2f9000)
    Writing segment __DATA @ 0x2a9000 (0x100000/0x100000 @ 0x1000000)
    Writing segment __DATA @ 0x3a9000 ( 0x7d000/ 0x7d000 @ 0x1109000)
    Writing segment __DATA @ 0x426000 ( 0x43000/ 0x43000 @ 0x1258000)
    Writing segment __DATA @ 0x469000 (0x800000/0x800000 @ 0x1800000)
    Writing segment __IMPORT @ 0xc69000 ( 0x3000/ 0x3000 @ 0x2a0000)
    Writing segment __LINKEDIT @ 0xc6c000 ( 0xb860/ 0xc000 @ 0x2a3000)
    Writing LC_SYMTAB command
    Fixed up 10/10 external relocation entries in data segment.
    Writing LC_DYSYMTAB command
    Writing LCLOADDYLINKER command
    Writing LC_UUID command
    Writing LC_UNIXTHREAD command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCLOADDYLIB command
    Writing LCCODESIGNATURE command
    4016 unused bytes follow Mach-O header
    1100910 pure bytes used
    emacs dumped as /tmp/emacs.IgzbjZ/src/emacs
    Installing dumped emacs
    elie:~ Antoine$ emacs --version
    GNU Emacs 21.2.1
    Copyright (C) 2001 Free Software Foundation, Inc.
    GNU Emacs comes with ABSOLUTELY NO WARRANTY.
    You may redistribute copies of Emacs
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.
    elie:~ Antoine$ emacs
    Fatal malloc_jumpstart() error
    elie:~ Antoine$
    MacBook, Mac OS X (10.5.1)
  • briandcox Calculating status...
    Currently Being Moderated
    Jan 15, 2008 8:18 PM (in response to Brian P. Campbell)
    I have Leopard 10.5.1 and emacs gave me the same error.

    This worked perfectly for me.

    Thank you very much.
    MacBook Pro, Mac OS X (10.5.1)
  • mkikeda Calculating status...
    Currently Being Moderated
    Jan 27, 2008 9:56 PM (in response to fritzlang)
    Just ran the suggested commands from stbose and was able to get things working. Make sure to use the patch as noted in cizmas Nov 19, 8:40AM post:

    curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-22.1.tar.gz
    tar xvfz emacs-22.1.tar.gz
    curl -O http://ephemera.continuation.org/patches/emacs-leopard-unexec.patch
    patch -p0 <emacs-leopard-unexec.patch

    when applying the patch it asked for which file to patch so i entered:
    emacs-22.1/src/unexmacosx.c

    and then from stbose Nov 19, 11:58PM

    ./configure --without-carbon --with-x --without-toolkit-scroll-bars --x-libraries=/usr/X11R6/lib --x-include=/usr/X11R6/include XMKMF=/usr/X11R6/bin
    make bootstrap
    make
    sudo make install

    Thanks for your help!
1 2 3 4 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.