From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Building emacs 22.3 with djgpp 2.04 beta/Windows XP SP3 MCE 2005 Date: Sun, 04 Jan 2009 18:56:02 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1231088191 6920 80.91.229.12 (4 Jan 2009 16:56:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2009 16:56:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 04 17:57:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LJWIE-0006gE-2y for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jan 2009 17:57:38 +0100 Original-Received: from localhost ([127.0.0.1]:53257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJWGy-0006Oq-Lo for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jan 2009 11:56:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJWGg-0006OG-Cw for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 11:56:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJWGb-0006Lm-TW for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 11:56:02 -0500 Original-Received: from [199.232.76.173] (port=48437 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJWGb-0006Lc-PG for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 11:55:57 -0500 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:55726) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJWGb-0004H2-8i for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 11:55:57 -0500 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KCY00M00HLSGV00@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 18:55:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.20.81]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KCY00JABHP8NDI0@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Sun, 04 Jan 2009 18:55:57 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61052 Archived-At: > From: Allan > Date: Sun, 04 Jan 2009 01:55:36 -0600 > > I took your suggestions and was able to get an acceptable (but maybe not > perfect) build. I had to run `make bootstrap' before I could get it to > build That's strange. I suspect something went wrong when unpacking the distro, or perhaps you inadvertently deleted all *.elc files in one of your previous attempts. > Directory ././erc Directory ././eshell Directory ././gnus Directory > ././international Directory ././language Cannot open load file: > composite make.exe[1]: *** [custom-deps] Error -1 make.exe[1]: Leaving > directory `d:/emacs-22.3/lisp' make.exe: *** [bootstrap] Error 2 I don't think I tried a full bootstrap in Emacs 22.x for a long time; it's possible that something broke since I last did. The DJGPP build of Emacs 22 was not maintained for several years, so it's quite possible that it bit-rotted. > D:\emacs-22.3> ... > But after this when I ran `make all' it did create > the executables except for `movemail'. I am still having a problem with > the `_emacs' initialization file even though I have set the `HOME' > environment variable to the Windows XP convention default. It says user > `dosuser' has no `HOME' environment variable defined. That's a known problem in Emacs 22.3; it is corrected in the development sources for the upcoming Emacs 23 release. To fix this in Emacs 22.3, apply the patch below, then byte-compile startup.el and say "make install" in the top-level directory to rebuild Emacs. (In case you didn't know, to byte-compile startup.el, chdir to the `lisp' subdirectory and type "make startup.elc".) Index: lisp/startup.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v retrieving revision 1.520 diff -u -r1.520 startup.el --- lisp/startup.el 4 Nov 2008 16:54:25 -0000 1.520 +++ lisp/startup.el 8 Nov 2008 13:13:33 -0000 @@ -977,13 +977,15 @@ init-file-user) :error) (if (file-directory-p (expand-file-name - ;; We don't support ~USER on MS-Windows except - ;; for the current user, and always load .emacs - ;; from the current user's home directory (see - ;; below). So always check "~", even if invoked - ;; with "-u USER", or if $USER or $LOGNAME are - ;; set to something different. - (if (eq system-type 'windows-nt) + ;; We don't support ~USER on MS-Windows + ;; and MS-DOS except for the current + ;; user, and always load .emacs from + ;; the current user's home directory + ;; (see below). So always check "~", + ;; even if invoked with "-u USER", or + ;; if $USER or $LOGNAME are set to + ;; something different. + (if (memq system-type '(windows-nt ms-dos)) "~" (concat "~" init-file-user)))) nil