GNU bug report logs -
#2857
GNU Emacs 22.3 for Mac missing executable
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2857 in the body.
You can then email your comments to 2857 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2857
; Package
emacs
.
(Thu, 02 Apr 2009 11:45:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Anders Bolt-Evensen <a-bolt <at> online.no>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 02 Apr 2009 11:45:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Hey!
Two things:
1) Emacs 22.3 does not include any executeable files for Mac. When I double-clicked the Emacs.app which is found in emacs-22.3/mac, I get an error message which says "You can't open the application Emacs.app because it may be damaged or incomplete.". When I then checked emacs-22.3/Mac/Emacs.app/Contents/MacOS and saw that the executable file was missing.
2) I tried to install GNU Emacs 22.2 and Emacs 22.3 on Mac OS X Snow Leopard (beta), but the "sudo make install" command fails on both versions with
"make[1]: *** [mac.o] Error 1
make: *** [src] Error 2"
During the make process there are a lot of warnings (and 1 error as I saw) that occured. I've made a log file with the output that was written to the terminal during the ./configure and "make install" processes.
[emacs_22.3_log.rtf (application/rtf, attachment)]
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2857
; Package
emacs
.
(Fri, 03 Apr 2009 00:15:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 03 Apr 2009 00:15:05 GMT)
Full text and
rfc822 format available.
Message #10 received at 2857 <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> On Thu, 2 Apr 2009 13:39:49 +0200 (MEST), Anders Bolt-Evensen <a-bolt <at> online.no> said:
> 1) Emacs 22.3 does not include any executeable files for Mac.
Yes, that's normal.
> 2) I tried to install GNU Emacs 22.2 and Emacs 22.3 on Mac OS X Snow
> Leopard (beta), but the "sudo make install" command fails on both
> versions
Could you try the following patch?
YAMAMOTO Mitsuharu
mituharu <at> math.s.chiba-u.ac.jp
*** src/mac.c~ 2008-08-30 00:16:02.000000000 +0900
--- src/mac.c 2009-04-03 09:00:50.000000000 +0900
*************** static int wakeup_from_rne_enabled_p = 0
*** 93,99 ****
#ifndef MAC_OSX
static OSErr posix_pathname_to_fsspec P_ ((const char *, FSSpec *));
static OSErr fsspec_to_posix_pathname P_ ((const FSSpec *, char *, int));
- #endif
/* When converting from Mac to Unix pathnames, /'s in folder names are
converted to :'s. This function, used in copying folder names,
--- 93,98 ----
*************** posix_to_mac_pathname (const char *ufn,
*** 271,276 ****
--- 270,276 ----
return 1;
}
+ #endif /* !MAC_OSX */
/***********************************************************************
*************** link (const char *name1, const char *nam
*** 2986,2992 ****
return -1;
}
- #endif /* ! MAC_OSX */
/* Determine the path name of the file specified by VREFNUM, DIRID,
and NAME and place that in the buffer PATH of length
--- 2986,2991 ----
*************** path_from_vol_dir_name (char *path, int
*** 3036,3042 ****
}
- #ifndef MAC_OSX
static OSErr
posix_pathname_to_fsspec (ufn, fs)
--- 3035,3040 ----
*************** getpid ()
*** 3307,3313 ****
#endif
#endif /* __MWERKS__ */
- #endif /* ! MAC_OSX */
/* Return the path to the directory in which Emacs can create
--- 3305,3310 ----
*************** get_temp_dir_name ()
*** 3363,3369 ****
return temp_dir_name;
}
- #ifndef MAC_OSX
/* Allocate and construct an array of pointers to strings from a list
of strings stored in a 'STR#' resource. The returned pointer array
--- 3360,3365 ----
*************** component. */)
*** 4449,4454 ****
--- 4445,4451 ----
}
+ #ifndef MAC_OSX
DEFUN ("mac-file-name-to-posix", Fmac_file_name_to_posix,
Smac_file_name_to_posix, 1, 1, 0,
doc: /* Convert Macintosh FILENAME to Posix form. */)
*************** DEFUN ("posix-file-name-to-mac", Fposix_
*** 4481,4486 ****
--- 4478,4484 ----
else
return Qnil;
}
+ #endif
DEFUN ("mac-coerce-ae-data", Fmac_coerce_ae_data, Smac_coerce_ae_data, 3, 3, 0,
*************** syms_of_mac ()
*** 5464,5471 ****
--- 5462,5471 ----
defsubr (&Smac_get_file_creator);
defsubr (&Smac_get_file_type);
defsubr (&Sdo_applescript);
+ #ifndef MAC_OSX
defsubr (&Smac_file_name_to_posix);
defsubr (&Sposix_file_name_to_mac);
+ #endif
DEFVAR_INT ("mac-system-script-code", &mac_system_script_code,
doc: /* The system script code. */);
bug reassigned from package `emacs' to `emacs,ns'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 06 Apr 2009 17:55:06 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#2857
; Package
emacs,ns
.
(Sat, 25 Apr 2009 00:25:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Sat, 25 Apr 2009 00:25:06 GMT)
Full text and
rfc822 format available.
Message #17 received at 2857 <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> On Fri, 03 Apr 2009 09:09:55 +0900, YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp> said:
>>>>> On Thu, 2 Apr 2009 13:39:49 +0200 (MEST), Anders Bolt-Evensen <a-bolt <at> online.no> said:
>> 2) I tried to install GNU Emacs 22.2 and Emacs 22.3 on Mac OS X
>> Snow Leopard (beta), but the "sudo make install" command fails on
>> both versions
> Could you try the following patch?
Did it work? I can't test it myself.
YAMAMOTO Mitsuharu
mituharu <at> math.s.chiba-u.ac.jp
bug reassigned from package `emacs,ns' to `emacs22'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 17 Jun 2009 19:30:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, owner <at> emacsbugs.donarmstrong.com
:
bug#2857
; Package
emacs22
.
(Sun, 30 Aug 2009 09:20:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
:
Extra info received and forwarded to list. Copy sent to
owner <at> emacsbugs.donarmstrong.com
.
(Sun, 30 Aug 2009 09:20:07 GMT)
Full text and
rfc822 format available.
Message #24 received at 2857 <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> On Thu, 2 Apr 2009 13:39:49 +0200 (MEST), Anders Bolt-Evensen <a-bolt <at> online.no> said:
> 2) I tried to install GNU Emacs 22.2 and Emacs 22.3 on Mac OS X Snow
> Leopard (beta), but the "sudo make install" command fails on both
> versions with "make[1]: *** [mac.o] Error 1 make: *** [src] Error 2"
> During the make process there are a lot of warnings (and 1 error as
> I saw) that occured. I've made a log file with the output that was
> written to the terminal during the ./configure and "make install"
> processes.
To compile Emacs 22.3 Carbon port on Mac OS X 10.6 Snow Leopard, you
need to apply the patch below and explicitly specify a compiler option
like "CC='gcc -m32' ./configure". Snow Leopard seems to try to make a
64-bit binary by default and it is not compatible with the GUI
implementation with Carbon.
Alternatively, you can try the Carbon+AppKit port, which contains
several fixes and enhancements that have been made after the Emacs
22.3 release.
http://lists.gnu.org/archive/html/emacs-devel/2009-08/msg01309.html
YAMAMOTO Mitsuharu
mituharu <at> math.s.chiba-u.ac.jp
Index: src/unexmacosx.c
===================================================================
RCS file: /sources/emacs/emacs/src/unexmacosx.c,v
retrieving revision 1.22.2.5
diff -c -p -r1.22.2.5 unexmacosx.c
*** src/unexmacosx.c 8 Jan 2008 04:29:48 -0000 1.22.2.5
--- src/unexmacosx.c 30 Aug 2009 09:01:00 -0000
*************** print_load_command_name (int lc)
*** 584,589 ****
--- 584,597 ----
printf ("LC_UUID ");
break;
#endif
+ #ifdef LC_DYLD_INFO
+ case LC_DYLD_INFO:
+ printf ("LC_DYLD_INFO ");
+ break;
+ case LC_DYLD_INFO_ONLY:
+ printf ("LC_DYLD_INFO_ONLY");
+ break;
+ #endif
default:
printf ("unknown ");
}
*************** copy_data_segment (struct load_command *
*** 821,826 ****
--- 829,835 ----
|| strncmp (sectp->sectname, "__const", 16) == 0
|| strncmp (sectp->sectname, "__cfstring", 16) == 0
|| strncmp (sectp->sectname, "__gcc_except_tab", 16) == 0
+ || strncmp (sectp->sectname, "__program_vars", 16) == 0
|| strncmp (sectp->sectname, "__objc_", 7) == 0)
{
if (!unexec_copy (sectp->offset, old_file_offset, sectp->size))
*************** copy_twolevelhints (struct load_command
*** 1088,1093 ****
--- 1097,1132 ----
curr_header_offset += lc->cmdsize;
}
+ #ifdef LC_DYLD_INFO
+ /* Copy a LC_DYLD_INFO(_ONLY) load command from the input file to the output
+ file, adjusting the file offset fields. */
+ static void
+ copy_dyld_info (struct load_command *lc, long delta)
+ {
+ struct dyld_info_command *dip = (struct dyld_info_command *) lc;
+
+ if (dip->rebase_off > 0)
+ dip->rebase_off += delta;
+ if (dip->bind_off > 0)
+ dip->bind_off += delta;
+ if (dip->weak_bind_off > 0)
+ dip->weak_bind_off += delta;
+ if (dip->lazy_bind_off > 0)
+ dip->lazy_bind_off += delta;
+ if (dip->export_off > 0)
+ dip->export_off += delta;
+
+ printf ("Writing ");
+ print_load_command_name (lc->cmd);
+ printf (" command\n");
+
+ if (!unexec_write (curr_header_offset, lc, lc->cmdsize))
+ unexec_error ("cannot write dyld info command to header");
+
+ curr_header_offset += lc->cmdsize;
+ }
+ #endif
+
/* Copy other kinds of load commands from the input file to the output
file, ones that do not require adjustments of file offsets. */
static void
*************** dump_it ()
*** 1154,1159 ****
--- 1193,1204 ----
case LC_TWOLEVEL_HINTS:
copy_twolevelhints (lca[i], linkedit_delta);
break;
+ #ifdef LC_DYLD_INFO
+ case LC_DYLD_INFO:
+ case LC_DYLD_INFO_ONLY:
+ copy_dyld_info (lca[i], linkedit_delta);
+ break;
+ #endif
default:
copy_other (lca[i]);
break;
Index: src/s/darwin.h
===================================================================
RCS file: /sources/emacs/emacs/src/s/darwin.h,v
retrieving revision 1.28.2.4
diff -c -p -r1.28.2.4 darwin.h
*** src/s/darwin.h 17 Jul 2008 09:07:06 -0000 1.28.2.4
--- src/s/darwin.h 30 Aug 2009 09:01:01 -0000
*************** Boston, MA 02110-1301, USA. */
*** 351,356 ****
--- 351,359 ----
#define malloc unexec_malloc
#define realloc unexec_realloc
#define free unexec_free
+ /* Don't use posix_memalign because it is not compatible with
+ unexmacosx.c. */
+ #undef HAVE_POSIX_MEMALIGN
#endif
/* This makes create_process in process.c save and restore signal
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 10 Mar 2011 06:50:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Anders Bolt-Evensen <a-bolt <at> online.no>
:
bug acknowledged by developer.
(Thu, 10 Mar 2011 06:50:03 GMT)
Full text and
rfc822 format available.
Message #29 received at 2857-done <at> debbugs.gnu.org (full text, mbox):
Thanks for the report. Emacs 22 is very old and has not been supported
for some time. The latest version is 23.3. Please open new reports for
any issues you have with the new version.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 07 Apr 2011 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.