Subject: bin/14927: 9Dec pullup of usr.sbin/iopctl does not compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <windsor@warthog.com>
List: netbsd-bugs
Date: 12/12/2001 13:51:50
>Number: 14927
>Category: bin
>Synopsis: 9Dec pullup of usr.sbin/iopctl does not compile
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 12 11:52:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Rob Windsor
>Release: NetBSD 1.5.3_ALPHA
>Organization:
Nose Pickers Anonymous
>Environment:
System: NetBSD dasher 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (DASHER) #33: Sun Dec 2 12:17:11 CST 2001 windsor@dasher:/usr/src/sys/arch/i386/compile/DASHER i386
>Description:
dependall ===> usr.sbin/iopctl
mkdep -a iopctl.c
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -c iopctl.c
cc1: warnings being treated as errors
iopctl.c: In function `usage':
iopctl.c:168: warning: implicit declaration of function `getprogname'
iopctl.c:168: warning: format argument is not a pointer (arg 3)
*** Error code 1
>How-To-Repeat:
Try to compile it
>Fix:
apply following patch:
--- iopctl.c.FCS Wed Dec 12 13:40:41 2001
+++ iopctl.c Wed Dec 12 13:42:23 2001
@@ -60,6 +60,8 @@
#include <dev/i2o/i2o.h>
#include <dev/i2o/iopio.h>
+extern char *__progname; /* from crt0.o */
+
const char *class2str(int);
void getparam(int, int, void *, int);
int gettid(char **);
@@ -165,7 +167,7 @@
{
(void)fprintf(stderr, "usage: %s [-f dev] <command> [target]\n",
- getprogname());
+ __progname);
exit(EXIT_FAILURE);
/* NOTREACHED */
}
>Release-Note:
>Audit-Trail:
>Unformatted: