Hey guys, I noticed that ntp doesn't compile with the new glibc 2.10.1, and here's there error that appears when compiling (for googlers):
ntp_loopfilter.c: In function 'local_clock': ntp_loopfilter.c:571: error: 'MOD_NANO' undeclared (first use in this function) ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once ntp_loopfilter.c:571: error: for each function it appears in.) ntp_loopfilter.c: In function 'loop_config': ntp_loopfilter.c:896: error: 'MOD_NANO' undeclared (first use in this function) make[3]: *** [ntp_loopfilter.o] Error 1 The patch is attached, I tested it and it works fine ;-). Cheers El Kindi
diff -ruN ntp.orig/package/network/ntp/hot-fix.patch ntp.fix/package/network/ntp/hot-fix.patch --- ntp.orig/package/network/ntp/hot-fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ ntp.fix/package/network/ntp/hot-fix.patch 2009-09-03 18:03:17.289570697 +0100 @@ -0,0 +1,17 @@ +--- ntpd/include/ntp_syscall.h.orig 2009-05-19 16:44:55.048156467 -0400 ++++ ntpd/include/ntp_syscall.h 2009-05-19 16:46:19.293323686 -0400 +@@ -14,6 +14,14 @@ + # include <sys/timex.h> + #endif + ++#if defined(ADJ_NANO) && !defined(MOD_NANO) ++#define MOD_NANO ADJ_NANO ++#endif ++ ++#if defined(ADJ_TAI) && !defined(MOD_TAI) ++#define MOD_TAI ADJ_TAI ++#endif ++ + #ifndef NTP_SYSCALLS_LIBC + #ifdef NTP_SYSCALLS_STD + # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe t2
