[问题]make时出这个错误。

编译打包和其他
回复
头像
kwindva
帖子: 562
注册时间: 2007-05-05 23:30

[问题]make时出这个错误。

#1

帖子 kwindva » 2008-01-14 23:43

装一个时间同步的软件时,make时,这样显示:
Compiling with GCC now generates lots of new warnings.

Don't be concerned. They're just warnings.

Don't send bug reports about the warnings, either.

Feel free to send patches that fix these warnings, though.

(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 `/home/hrym/ntp-4.2.0'
Making all in scripts
make[2]: Entering directory `/home/hrym/ntp-4.2.0/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/hrym/ntp-4.2.0/scripts'
Making all in include
make[2]: Entering directory `/home/hrym/ntp-4.2.0/include'
Making all in isc
make[3]: Entering directory `/home/hrym/ntp-4.2.0/include/isc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/hrym/ntp-4.2.0/include/isc'
make[3]: Entering directory `/home/hrym/ntp-4.2.0/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/hrym/ntp-4.2.0/include'
make[2]: Leaving directory `/home/hrym/ntp-4.2.0/include'
Making all in ElectricFence
make[2]: Entering directory `/home/hrym/ntp-4.2.0/ElectricFence'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/hrym/ntp-4.2.0/ElectricFence'
Making all in libntp
make[2]: Entering directory `/home/hrym/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 `/home/hrym/ntp-4.2.0/libntp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hrym/ntp-4.2.0'
make: *** [all] Error 2
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

#2

帖子 dbzhang800 » 2008-01-15 10:34

为什么不从源里装,我想先问下这个
头像
kwindva
帖子: 562
注册时间: 2007-05-05 23:30

#3

帖子 kwindva » 2008-01-15 18:11

这是我们校内提供的时间同步服务,有源码包下载。源里有这个吗?
anandayang
帖子: 138
注册时间: 2008-01-24 16:24

#4

帖子 anandayang » 2008-01-31 21:45

编译错误, 自己改代码吧, 要么改 system.c, 要么改头文件, 你自己选择了。
回复