From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: Newbie: Compiling Emacs 21.2 with MinGW Date: 02 Sep 2003 21:26:08 +0100 Organization: freedom2surf Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1062599210 19065 80.91.224.253 (3 Sep 2003 14:26:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2003 14:26:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 16:26:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19uYau-0000gc-00 for ; Wed, 03 Sep 2003 16:26:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19uYZ4-0001uL-Lg for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2003 10:24:54 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!mephistopheles.news.clara.net!news.clara.net!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: 195.137.103.251 Original-X-Trace: news.freedom2surf.net 1062534388 14765 195.137.103.251 (2 Sep 2003 20:26:28 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Tue, 2 Sep 2003 20:26:28 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:116327 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12246 Kai.Grossjohann@gmx.net (Kai Grossjohann) writes: > I'm trying to compile Emacs 21.2 (it's the most recent tarball I could > find, > emacs-21.3.tar.gz seems to be still down) with MinGW. I have no > experience > whatsoever using Windows and MinGW... > > Anyhow, I installed MinGW and MSYS. I added c:\mingw\bin and > c:\msys\1.0\bin to %PATH%. Then I went to the emacs-21.2/nt directory > and invoked: > > configure --prefix=c:\programme\emacs-21.2 Windows batch files cannot (easily) understand --option=value, so you need to use "configure --prefix c:\programme\emacs-21.2". If you are using sh.exe (I am not sure it works, only cmd.exe and Cygwin bash.exe have been tested), then you will need to use forward slashes and include the .bat extension I think. > It told me to run gmake. I don't have gmake. So I ran make instead, > which gave an error. Running make again gives the following output: > > E:\src\emacs\emacs-21.2\nt>make > [Please ignore a syntax error on the next line - it is intentional] > /bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"' > /bin/sh.exe: -c: line 2: syntax error: unexpected end of file It looks like you are using sh.exe. As I said, this is untested, so maybe you should try starting from scratch using the native Windows shell. If that does not work, Cygwin bash should (that is what I use when building with gcc). > w32fns.c:13973:1: directives may not be used inside a macro argument > w32fns.c:13963:16: unterminated argument list invoking macro > "DEFVAR_LISP" This is suspicious. Can you look at line 13963 of that file and see what it says? > w32fns.c: In function `syms_of_w32fns': > w32fns.c:13974: `DEFVAR_LISP' undeclared (first use in this function) > w32fns.c:13974: (Each undeclared identifier is reported only once > w32fns.c:13974: for each function it appears in.) > w32fns.c:13974: parse error before string constant > make[1]: *** [oo-spd/i386/w32fns.o] Error 1 > make[1]: Leaving directory `/e/src/emacs/emacs-21.2/src' > make: *** [all-other-dirs-gmake] Error 2 > > E:\src\emacs\emacs-21.2\nt> > > So, what do I do now? > > Is it fixed in 21.3? Unlikely. There were no Windows specific fixes in 21.3 that I know of.