From xemacs-m  Wed Sep 24 16:50:58 1997
Received: from gmg.com ([192.132.14.81])
	by xemacs.org (8.8.5/8.8.5) with SMTP id QAA06410
	for <xemacs-beta@xemacs.org>; Wed, 24 Sep 1997 16:44:54 -0500 (CDT)
Received: from olympus by gmg.com (SMI-8.6/SMI-SVR4)
	id PAA27490; Wed, 24 Sep 1997 15:39:33 -0600
Sender: robert@gmg.com
Message-ID: <3429889B.41C6@gmg.com>
Date: Wed, 24 Sep 1997 15:39:39 -0600
From: Robert Heitkamp <robert@gmg.com>
Organization: Green Mountain Geophysics, Inc.
X-Mailer: Mozilla 3.01SGoldC-SGI (X11; I; IRIX 6.3 IP32)
MIME-Version: 1.0
To: xemacs-beta@xemacs.org
CC: robert@gmg.com
Subject: NT build problem
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I just recently downloaded b23 and have tried to get it
to build on NT. I've successfuly built the X libraries.

NT version: 4.00.1381
Visual C++ version: 4.2

Near the end of the build, I get the following error:

..\src\temacs.exe -batch -l make-docfile.el -o ..\lib-src\DOC -d ..\src
-i ..\site-package

temacs can only be run in -batch mode
NMAKE: fatal error U1077: '..\src\temacs.exe' : return code '0xffffffff'
Stop.

After examining the source code for temacs.exe, I've found
where it is aborting:

Apparently in emacs.c, main_1(), the variable load_me
is not being set before the call to initial_command_loop().
The logic is trying to set load_me as follows:

if (argc > 2 + skip_args && !strcmp (argv[1 + skip_args], "-l"))
   load_me = build_string (argv[2 + skip_args]);

Since the command line arguments are sorted earlier (in main_1() call
to sort_args()), the argument list looks like this:

argv[0] = "..\src\temacs.exe"
argv[1] = "-batch"
argv[2] = "-d"
argv[3] = "..\src"
argv[4] = "-i"
argv[5] = "..\site-package"
argv[6] = "-l"
argv[7] = "make-docfile.el"
argv[8] = "-o"
argv[9] = "..\lib-src\DOC"

with skip_args == 2, the "-l" arg is not found and load_me is
not set.

I've fudged the compile to actually get a xemacs.exe built,
but it dies at run time. Since I feel that the build was not 
entirely successful, I'm not sure there is a problem with xemacs.

If anyone has had any experience building xemacs under NT, I would
greatly appreciate any advice you have.

Thanks,
-- 
Robert Heitkamp
robert@gmg.com
http://www.gmg.com

