From: sandmann AT clio DOT rice DOT edu (Charles W. Sandmann) Subject: Make bug To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List) Date: Sat, 11 Dec 1993 17:12:57 -0600 (CST) Okay, I found out why make is aborting on me, and why some (but not all of you) might be seeing the problem. The abort occurs on line 1454 of job.c, which looks something like: fclose(fopen(bename, "w")) The problem is that bename looks like the following string (note double \\): e:\\mkxxxxxx.err So, the fopen fails, returns null, and fclose dies when passed NULL. My tmpdir string looks like: set tmpdir=e:/ Which is my ram disk - but the standard setdjgpp.bat sets it to be of a string type c:/tmp if it isn't set. The bug is that tempnam does not seem to handle tmpdir strings ending in "/" (root directory). A quick test, making a subdirectory on my ram disk and setting TMPDIR=E:/TMP worked around the problem.