Subject: dhclient in 1.5_ALPHA doesn't build (??)
To: None <current-users@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: current-users
Date: 07/26/2000 17:03:49
I updated -rnetbsd-1-5 last night and have been trying to build it on my
sparcbook. Initially this was to test my tctrl0 bugfix in the kernel, but
now I am doing a general 'make build' so I can finish upgrading my sparcbook.
Anyway, I got a failure in dhclient:
dependall ===> client/scripts
cc -O2 -Werror -DCLIENT_PATH='"/usr/bin:/usr/sbin:/bin:/sbin"' -I/usr/toddpw/rnetbsd-1-5/src/usr.sbin/dhcp/client/.. -I/usr/toddpw/rnetbsd-1-5/src/usr.sbin/dhcp/client/../includes -c dhclient.c
dhclient.c: In function `dhcp_option_ev_name':
dhclient.c:2385: argument `buflen' doesn't match prototype
/usr/toddpw/rnetbsd-1-5/src/usr.sbin/dhcp/client/../includes/dhcpd.h:1641: prototype declaration
*** Error code 1
The following patch fixes it:
Index: client/dhclient.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/dhcp/client/dhclient.c,v
retrieving revision 1.26.2.3
diff -u -r1.26.2.3 dhclient.c
--- dhclient.c 2000/07/23 05:38:53 1.26.2.3
+++ dhclient.c 2000/07/26 23:37:21
@@ -2380,7 +2380,7 @@
int dhcp_option_ev_name (buf, buflen, option)
char *buf;
- unsigned buflen;
+ size_t buflen;
struct option *option;
{
int i;
Checking -current, it appears somebody already made this change there.
Could somebody please pull this up, or tell me if it's ok for me to do it.
Thanks.
Todd Whitesel
toddpw @ best.com