From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.9 Description of problem: In Dir_AddDir() in dir.c the following code can be found: /* * Skip the first two entries -- these will *always* be . and .. */ (void)readdir(d); (void)readdir(d); The comment is a lie! This bad behavior is corrected in the FreeBSD version of pmake. I will attach a patch to this bug report with the FreeBSD fix. Version-Release number of selected component (if applicable): pmake-1.45-14 How reproducible: Sometimes Steps to Reproduce: mkdir bug cd bug touch access_network.c touch stuff.c cat >Makefile default: stuff.o access_network.o .c.o: $(CC) $(CFLAGS) -c ${.IMPSRC} ^D pmake Actual Results: $ pmake cc -O -c stuff.c make: don't know how to make access_network.o. Stop Expected Results: $ pmake cc -O -c stuff.c cc -O -c access_network.c Additional info:
Created attachment 103286 [details] Fix that uses the same code as FreeBSD to fix the bug.
The patch was not complete, new patch coming soon!
Created attachment 103287 [details] Version 2 of fix that uses the same code as FreeBSD to fix the bug.
Should be fixed in 1.45-16 in rawhide. Thanks.