分页: 1 / 1

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

发表于 : 2008-01-14 23:43
kwindva
装一个时间同步的软件时,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

发表于 : 2008-01-15 10:34
dbzhang800
为什么不从源里装,我想先问下这个

发表于 : 2008-01-15 18:11
kwindva
这是我们校内提供的时间同步服务,有源码包下载。源里有这个吗?

发表于 : 2008-01-31 21:45
anandayang
编译错误, 自己改代码吧, 要么改 system.c, 要么改头文件, 你自己选择了。