Current-Users archive

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

compiling new ntpd fails on i386



Hi,

with current-source updated some minutes ago new ntpd fails
to compile on i386

    compile  ntpd/ntp_control.o
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntp_control.c: In function 'ctl_putdata':
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntp_control.c:804:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 #define MIN(a, b) (((a) <= (b)) ? (a) : (b))
                         ^
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntp_control.c:1350:16: note: in expansion of macro 'MIN'
   currentlen = MIN(dlen, dataend - datapt);
                ^
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntp_control.c:804:39: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
 #define MIN(a, b) (((a) <= (b)) ? (a) : (b))
                                       ^
/u/NetBSD/src/external/bsd/ntp/dist/ntpd/ntp_control.c:1350:16: note: in expansion of macro 'MIN'
   currentlen = MIN(dlen, dataend - datapt);
                ^
cc1: all warnings being treated as errors

*** Failed target:  ntp_control.o

This is no problem on amd64, fwiw.

Kurt


Home | Main Index | Thread Index | Old Index