NetBSD Problem Report #3556
Received: (qmail-queue invoked from smtpd); 29 Apr 1997 23:17:39 -0000
Message-Id: <199704292304.IAA06700@pavlov.enami.ba2.so-net.or.jp>
Date: Wed, 30 Apr 1997 08:04:17 +0900 (JST)
From: enami@ba2.so-net.or.jp
Reply-To: enami@ba2.so-net.or.jp
To: gnats-bugs@gnats.netbsd.org
Subject: make depend of bc fails if there is obj directory
X-Send-Pr-Version: 3.95
>Number: 3556
>Category: bin
>Synopsis: make depend of bc fails if there is obj directory
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 29 16:20:01 +0000 1997
>Closed-Date: Tue Apr 29 23:31:32 +0000 1997
>Last-Modified: Tue Apr 29 23:31:54 +0000 1997
>Originator: enami tsugutomo
>Release: NetBSD-current 1997 Apr 28
>Organization:
an individual
>Environment:
System: NetBSD pavlov.enami.ba2.so-net.or.jp 1.2D NetBSD 1.2D (PAVLOV) #241: Tue Apr 29 11:00:42 JST 1997 enami@pavlov.enami.ba2.so-net.or.jp:/b/netbsd/kernel/compile/PAVLOV i386
>Description:
`make depend' of bc fails if there is obj directory. It fails
to create bc.c and/or bc.h.
>How-To-Repeat:
Script started on Wed Apr 30 07:44:42 1997
enami@pavlov% cd /usr/src/gnu/usr.bin/bc
enami@pavlov% ls -ld obj/
drwxr-xr-x 2 enami wheel 512 Apr 29 12:04 obj/
enami@pavlov% /usr/bin/make depend
yacc -d bc.y
yacc: f - cannot open "bc.y"
*** Error code 2
Stop.
enami@pavlov% exit
Script done on Wed Apr 30 07:45:04 1997
>Fix:
Here is my fix (why ${.IMPSRC} is expaneded to null string if
bc.c exists but bc.h doesn't exists? That's why I used
.ALLSRC instead).
Index: Makefile
===================================================================
RCS file: /a/cvsroot/NetBSD/src/gnu/usr.bin/bc/Makefile,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 Makefile
--- Makefile 1997/04/29 12:34:12 1.1.1.2
+++ Makefile 1997/04/29 22:42:41
@@ -11,8 +11,9 @@
CLEANFILES+= bc.c scan.c bc.h
+beforedepend: bc.h
bc.c bc.h: bc.y
- $(YACC) -d bc.y
+ ${YACC} -d ${.ALLSRC}
mv y.tab.c bc.c
mv y.tab.h bc.h
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: phil
State-Changed-When: Tue Apr 29 16:31:32 PDT 1997
State-Changed-Why:
Patch applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.