在linux下安装NTP源代码出现错误。
./configure配置后错误为:
config.status: creating scripts/summary
config.status: creating util/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make后的错误为:
[root@Hisi3716C ntp-4.2.0]# make
(bk version) >/dev/null 2>&1 && \
cd . && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
y=`cat version 2>/dev/null` || true && \
case "$x" in ''|$y) ;; *) echo $x > version ;; esac
make all-recursive
make[1]: Entering directory `/usr/local/src/ntp-4.2.0'
Making all in scripts
make[2]: Entering directory `/usr/local/src/ntp-4.2.0/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/ntp-4.2.0/scripts'
Making all in include
make[2]: Entering directory `/usr/local/src/ntp-4.2.0/include'
Making all in isc
make[3]: Entering directory `/usr/local/src/ntp-4.2.0/include/isc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/ntp-4.2.0/include/isc'
make[3]: Entering directory `/usr/local/src/ntp-4.2.0/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/ntp-4.2.0/include'
make[2]: Leaving directory `/usr/local/src/ntp-4.2.0/include'
Making all in ElectricFence
make[2]: Entering directory `/usr/local/src/ntp-4.2.0/ElectricFence'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/ntp-4.2.0/ElectricFence'
Making all in libntp
make[2]: Entering directory `/usr/local/src/ntp-4.2.0/libntp'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -MT systime.o -MD -MP -MF ".deps/systime.Tpo" \
-c -o systime.o `test -f 'systime.c' || echo './'`systime.c; \
then mv -f ".deps/systime.Tpo" ".deps/systime.Po"; \
else rm -f ".deps/systime.Tpo"; exit 1; \
fi
In file included from systime.c:11:
../include/ntp_stdlib.h:138: error: array type has incomplete element type
make[2]: *** [systime.o] Error 1
make[2]: Leaving directory `/usr/local/src/ntp-4.2.0/libntp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ntp-4.2.0'
make: *** [all] Error 2
[root@Hisi3716C ntp-4.2.0]#
用的是centOS的linux系统 不知道怎么解决这个问题了。请大神帮忙~~~~~
laoyao1 于 2013-03-08 11:14:31发表:
求助啊求助啊~~~~~~来个大神帮忙看看啊