[pkg-ntp-maintainers] Bug#522696: Bug#522696: ntp: silently fails to start on kfreebsd-i386

Kurt Roeckx kurt at roeckx.be
Sun Apr 5 22:35:55 UTC 2009


On Mon, Apr 06, 2009 at 12:10:07AM +0200, Kurt Roeckx wrote:
> On Sun, Apr 05, 2009 at 11:50:59PM +0200, Axel Beckert wrote:
> > Package: ntp
> > Version: 1:4.2.4p6+dfsg-1
> > Severity: grave
> > User: glibc-bsd-devel at lists.alioth.debian.org
> > Usertags: kfreebsd
> > 
> > ntpd silently fails to start on kfreebsd-i386:
> > 
> > !10 Z11 ?0 L1 root at metisse:ttyp5 23:47:28 [~] # /etc/init.d/ntp start
> > Starting NTP server: ntpd.
> > !11 Z12 ?0 L1 root at metisse:ttyp5 23:47:31 [~] # ps auxwww | fgrep ntp
> > Unknown HZ value! (23) Assume 100.
> > root     57075  0.0  0.0   4172     0 ?        S+   Mar23   0:00 fgrep ntp
> > !12 Z13 ?0 L1 root at metisse:ttyp5 23:47:37 [~] # 
> > 
> > In the syslog I found the following messages:
> > 
> > Apr  5 23:47:31 metisse ntpd[57063]: ntpd 4.2.4p6 at 1.1549-o Wed Feb 18 19:14:31 UTC 2009 (1)
> > Apr  5 23:47:31 metisse ntpd[57065]: precision = 2.794 usec
> > Apr  5 23:47:31 metisse ntpd[57065]: init_socket_sig: ioctl(I_SETSIG, S_INPUT) failed: Inappropriate ioctl for device
> 
> So that's this code:
> # ifdef USE_UDP_SIGPOLL
>         {
>                 if (ioctl(fd, I_SETSIG, S_INPUT) < 0)
>                 {
>                         msyslog(LOG_ERR,
>                                 "init_socket_sig: ioctl(I_SETSIG, S_INPUT) failed: %m");
>                         exit(1);
>                 }
>         }
> 
> I think I saw an upstream bug report about disabling that for
> Solaris.  Maybe USE_UDP_SIGPOLL should get disabled for
> kFreeBSD too?
> 
> Do you have any idea if this is kFreeBSD specific?  I doubt
> that a normal FreeBSD system has a problem with that since
> upstream probably tests that more than anything else.

So it seems that in configure there is just a list of arches
that it decides to enable it on, with the default being on.

It has this in it:
     *-*-linux*)
        ans=no
        ;;

So I guess I need to know the proper way to disable this on
kFreeBSD.


Kurt






More information about the pkg-ntp-maintainers mailing list