Subject: bin/2930: usr.bin/make (Ultrix) undeclared variable
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 11/11/1996 14:20:09
>Number:         2930
>Category:       bin
>Synopsis:       usr.bin/make (Ultrix) undeclared variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 10 19:35:01 1996
>Last-Modified:
>Originator:     Simon Burge
>Organization:
Telstra Corp.
>Release:        NetBSD-current 11/11/96
>Environment:
	System: ULTRIX balrog 4.5 0 RISC
>Description:
	In the ultrix compatibility function strdup(), the "p"
	variable is undeclared.
>How-To-Repeat:
	On an Ultrix box, type:
		make util.o
	and watch the errors...
>Fix:
	Apply the following diff in /usr/src/usr.bin/make:

Index: util.c
===================================================================
RCS file: /support/cvsroot/util/make/util.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 util.c
*** util.c	1996/11/11 01:10:41	1.1.1.2
--- util.c	1996/11/11 01:20:46
***************
*** 51,56 ****
--- 51,57 ----
      const char *str;
  {
      size_t len;
+     char *p;
  
      if (str == NULL)
  	return NULL;
>Audit-Trail:
>Unformatted: