delorie.com/archives/browse.cgi | search |
Date: | Sun, 27 Oct 2002 00:47:57 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | lauras AT softhome DOT net |
Message-Id: | <7458-Sun27Oct2002004757+0200-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <139735779174.20021026193923@softhome.net> (message from Laurynas |
Biveinis on Sat, 26 Oct 2002 19:39:23 +0200) | |
Subject: | Re: GCC 3.2 building with 2.04 trouble on W2K (NTVDM crash) |
References: | <10210210510 DOT AA21415 AT clio DOT rice DOT edu> |
<75381002462 DOT 20021022170727 AT softhome DOT net> | |
<39723724651 DOT 20021026161829 AT softhome DOT net> | |
<1659-Sat26Oct2002170848+0200-eliz AT is DOT elta DOT co DOT il> <139735779174 DOT 20021026193923 AT softhome DOT net> | |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> Date: Sat, 26 Oct 2002 19:39:23 +0200 > From: Laurynas Biveinis <lauras AT softhome DOT net> > > Now about that particular failure: > _shell_command() from system.c does: > > char *atfile = (char *) alloca (L_tmpnam); > errno = 0; > respf = fopen (tmpnam (atfile), "wb"); > if (respf) > { > ... > } > else > return emiterror ("Cannot open script file for $SHELL", errno); > > Now that fopen(...) call fails _open() like this: > --- > _open() failed: > filename = c:/devel/djgpp/tmp/dj410000 > oflag = 901 > DOS error code = 5 > --- So it fails when it tries to create a response file. > I've checked with RBIL and see that 0x05 is, well, 'access denied'. > How comes? Any pointers? One idea is to put a call to `getch' conditioned by the specific way that it fails. When getch is called, the program is put on hold until you hit a key. I'd then suggest to open another DOS box and look around in the directory where it tries to create the response file. Are there any files there? how many? is dj410000 one of them? can you create a file by that name in the same directory with some other program, like `touch'?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |