Subject: install/13284: dhclient -DSMALL fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <prlw1@cam.ac.uk>
List: netbsd-bugs
Date: 06/22/2001 22:10:30
>Number:         13284
>Category:       install
>Synopsis:       x_dhclient broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 14:08:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Welche
>Release:        21 Jun 2001 13:33 GMT
>Organization:
>Environment:
NetBSD-1.5W/i386
>Description:
dhclient doens't build with -DSMALL => make release fails
>How-To-Repeat:
cd src/usr.sbin/dhcp/client
make "CPPFLAGS+=-DSMALL" and see what happens..
BTW the link between SMALL and NSUPDATE is in includes/cf/netbsd.h
>Fix:
(compiles, rather obvious, but haven't tested binary yet)
Index: dhclient.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/dhcp/client/dhclient.c,v
retrieving revision 1.39
diff -p -r1.39 dhclient.c
*** dhclient.c	2001/06/18 19:01:52	1.39
--- dhclient.c	2001/06/22 21:03:38
*************** void client_dns_update (struct client_st
*** 3049,3054 ****
--- 3049,3055 ----
  		return;
  	}
  
+ #ifdef NSUPDATE
  	/* Start the resolver, if necessary. */
  	if (!resolver_inited) {
  		minires_ninit (&resolver_state);
*************** void client_dns_update (struct client_st
*** 3056,3061 ****
--- 3057,3063 ----
  		resolver_state.retrans = 1;
  		resolver_state.retry = 1;
  	}
+ #endif
  
  	/*
  	 * Perform updates.
>Release-Note:
>Audit-Trail:
>Unformatted: