On Sun, Aug 29, 2010 at 12:16:40PM +0200, Frank Kardel wrote:
Kurt Schreiner wrote:
Hi,
with -current source update half an hour or so ago build.sh ... distribution
fails compiling ntpd/ntpd.o:
compile ntpd/ntpd.o
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntpd.c:136:20: error: dns_sd.h: No
such file or directory
[...some failing declarations etc...]
*** Failed target: ntpd.o
Where should "dns_sd.h" come from? I can find only this one:
.../src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h
which isn't used as MKMDNS=no in /etc/mk.conf...
Kurt
Thanks for the report !
Please update src/external/bsd/ntp and compile again.
Thanks for the quick fix!
But there's one more change needed to get ntpd linked: linking in
libdns_sd has to depend an MKMDNS, too. The following patch get
things going for me:
-1014: cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/src/external/bsd/ntp/bin/ntpd/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 29 Aug 2010 10:13:07 -0000 1.4
+++ Makefile 29 Aug 2010 11:04:19 -0000
@@ -74,7 +74,7 @@
refclock_wwvb.c \
refclock_zyfer.c
-LDADD+= -L${LIBPARSE} -lparse -L${LIBISC} -liscntp -lm -lutil -ldns_sd
+LDADD+= -L${LIBPARSE} -lparse -L${LIBISC} -liscntp -lm -lutil
DPADD+= ${LIBPARSE}/libparse.a ${LIBISC}/libiscntp.a
${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
.include "${.CURDIR}/../Makefile.inc"
@@ -85,6 +85,7 @@
.if ("${MKMDNS}" != "no")
CPPFLAGS+=-DUSE_MDNS
+LDADD+=-ldns_sd
.endif
.PATH: ${DIST}
Kurt