Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compiling new ntp failed for me

Done - committed !

I should have seen that myself...


Kurt Schreiner wrote:
On Sun, Aug 29, 2010 at 12:16:40PM +0200, Frank Kardel wrote:
Kurt Schreiner wrote:

with -current source update half an hour or so ago ... 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:
which isn't used as MKMDNS=no in /etc/mk.conf...

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                         \
-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}/../"
@@ -85,6 +85,7 @@
.if ("${MKMDNS}" != "no")


Home | Main Index | Thread Index | Old Index