Chinaunix首页 | 论坛 | 博客
  • 博客访问: 424424
  • 博文数量: 53
  • 博客积分: 2746
  • 博客等级: 少校
  • 技术积分: 829
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-14 10:41
文章分类

全部博文(53)

文章存档

2016年(2)

2013年(1)

2012年(7)

2011年(10)

2010年(5)

2009年(20)

2008年(8)

我的朋友

分类: LINUX

2011-05-13 14:18:18

一、编译:
    cd /home/longjindong/src/ntp-4.2.4p7
    ./configure --host=arm-linux
    make
 
二、出错信息:
  
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
make[3]: Leaving directory `/home/longjindong/src/ntp/ntp-4.2.4p7/ntpd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/longjindong/src/ntp/ntp-4.2.4p7/ntpd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/longjindong/src/ntp/ntp-4.2.4p7'
make: *** [all] Error 2
 
三、打补丁:
   

ripped from fedora

--- ntp-4.2.4p7/include/ntp_syscall.h
+++ ntp-4.2.4p7/include/ntp_syscall.h
@@ -14,5 +14,13 @@
 # include 
 #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

 

四、重编译:

    make

END

阅读(4599) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~