hey guys, i get a problem from ntpdate saying: ntpdate[34131]: cannot find family compatible socket to send ntp packet and i got a tip off google awhile back and changed 'sock' in /usr/src/contrib/ntp/ntpdate/ntpdate.c from '0' to '-1'. but now, how do i recompile, since there's only a Makefile.am & Makefile.in in /usr/src/contrib/ntp/ntpdate/ ? do i need to go into /usr/src and type 'make'? thanx gareth
On 3/30/06, gareth <bsd@lordcow.org> wrote:> hey guys, i get a problem from ntpdate saying: > > ntpdate[34131]: cannot find family compatible socket to send ntp packet > > and i got a tip off google awhile back and changed 'sock' in > /usr/src/contrib/ntp/ntpdate/ntpdate.c from '0' to '-1'. but now, how > do i recompile, since there's only a Makefile.am & Makefile.in in > /usr/src/contrib/ntp/ntpdate/ ? do i need to go into /usr/src > and type 'make'? >There are 2 ways you could rebuild ntpdate: 1. rebuild the entire world 2. change to sub directory where FreeBSD builds ntpdate: cd /usr/src/usr.sbin/ntp/ntpdate make clean make make install make clean Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
cd /usr/src/usr.sbin/ntp make depend make make install gareth wrote:> On Thu 2006-03-30 (08:54), Scot Hetzel wrote: >> 2. change to sub directory where FreeBSD builds ntpdate: >> cd /usr/src/usr.sbin/ntp/ntpdate >> make clean >> make >> make install >> make clean > > cool, thanx, i found that earlier with a 'locate ntpdate | grep Makefile' > and tried to run make but it gives: > > root@cow:/usr/src/usr.sbin/ntp/ntpdate# make > Warning: Object directory not changed from original/usr/src/usr.sbin/ntp/ntpdate> cc -O -pipe -I/usr/src/usr.sbin/ntp/ntpdate/../../../contrib/ntp/include-I/usr/src/usr.sbin/ntp/ntpdate/../ -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -c /usr/src/usr.sbin/ntp/ntpdate/../../../contrib/ntp/ntpdate/ntpdate.c> sh -e /usr/src/usr.sbin/ntp/ntpdate/../scripts/mkver ntpdate > Version <ntpdate 4.2.0-a Thu Mar 30 17:29:58 SAST 2006 (1)> > cc -O -pipe -I/usr/src/usr.sbin/ntp/ntpdate/../../../contrib/ntp/include-I/usr/src/usr.sbin/ntp/ntpdate/../ -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -c version.c> cc -O -pipe -I/usr/src/usr.sbin/ntp/ntpdate/../../../contrib/ntp/include-I/usr/src/usr.sbin/ntp/ntpdate/../ -DSYS_FREEBSD -DPARSE -DHAVE_CONFIG_H -DOPENSSL -o ntpdate ntpdate.o version.o /usr/src/usr.sbin/ntp/ntpdate/../libntp/libntp.a -lmd> cc: /usr/src/usr.sbin/ntp/ntpdate/../libntp/libntp.a: No such file ordirectory> *** Error code 1 > > Stop in /usr/src/usr.sbin/ntp/ntpdate. > > > and the same thing if i run 'make clean' first. there's a > directory called /usr/src/contrib/ntp/libntp/ , but there's > no libntp.a on the system. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
On Thu 2006-03-30 (10:35), Michael Proto wrote:> cd /usr/src/usr.sbin/ntp > make depend > make > make installyay, ok that works ta (going into /usr/src/usr.sbin/ntp as opposed to /usr/src/usr.sbin/ntp/ntpdate) and the binary gets rebuilt. but, same problem :/ # ntpdate nom.uct.ac.za Looking for host nom.uct.ac.za and service ntp host found : 2001:4200:300:100:20e:cff:fe5c:f5c4 30 Mar 17:58:16 ntpdate[35787]: cannot find family compatible socket to send ntp packet #
Just curious, do you have ipv6 enabled in your kernel and working on your Ethernet interface? It looks like you're only getting an ipv6 address returned by the resolver for nom.uct.ac.za. I did a lookup myself and I got both an ipv4 and ipv6 address: descartes:mproto/ $ host nom.uct.ac.za nom.uct.ac.za has address 137.158.128.11 nom.uct.ac.za has IPv6 address 2001:4200:300:100:20e:cff:fe5c:f5c4 Perhaps someone with a better knowledge of the resovler can answer to why no ipv4 address is returned. -Proto gareth wrote:> On Thu 2006-03-30 (10:35), Michael Proto wrote: >> cd /usr/src/usr.sbin/ntp >> make depend >> make >> make install > > yay, ok that works ta (going into /usr/src/usr.sbin/ntp > as opposed to /usr/src/usr.sbin/ntp/ntpdate) and the > binary gets rebuilt. but, same problem :/ > > # ntpdate nom.uct.ac.za > Looking for host nom.uct.ac.za and service ntp > host found : 2001:4200:300:100:20e:cff:fe5c:f5c4 > 30 Mar 17:58:16 ntpdate[35787]: cannot find family compatible socket tosend ntp packet> # > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >