Subject: bin/3436: dhcp doesn't build if OBJMACHINE is defined in /etc/mk.conf
To: None <>
From: Dave Huang <>
List: netbsd-bugs
Date: 04/01/1997 19:43:35
>Number:         3436
>Category:       bin
>Synopsis:       dhcp doesn't build if OBJMACHINE is defined in /etc/mk.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr  1 17:50:02 1997
>Originator:     Dave Huang
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet:   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of March 31, 1997
System: NetBSD 1.2D NetBSD 1.2D (SPIFF) #30: Mon Mar 31 23:09:08 CST 1997 i386

If OBJMACHINE is defined in /etc/mk.conf (to get per-machine object
directories, such as obj.i386, obj.mac68k, etc...), the link of dhcpd
will not get the correct path to libdhcp.a.

usr.sbin/dhcp/ includes, but, which
includes /etc/mk.conf, hasn't been read in yet.

define OBJMACHINE in /etc/mk.conf, make obj in usr.sbin/dhcp, make
depend, then make.

The following works for me... although perhaps should be
changed to include before

--- /usr/src/usr.sbin/dhcp/	Tue Apr  1 06:25:17 1997
+++	Tue Apr  1 19:32:40 1997
@@ -30,6 +30,7 @@
+.include <>
 .include <>
 .if exists(${.CURDIR}/../common/${__objdir})