在CentOS 4中附魔编译抛出错误

时间:2011-07-22 10:20:14

标签: c compilation

我们正在尝试从CentOS 4中的源代码编译附魔,我们收到以下错误:

附魔版本1.6.0 gcc版本3.4.6 20060404(Red Hat 3.4.6-11)

-DENCHANT_VERSION_STRING=\"1.6.0\" -g -O2 -MT enchant.lo -MD -MP -MF .deps/enchant.Tpo -c enchant.c  -fPIC -DPIC -o .libs/enchant.o
enchant.c: In function `_enchant_ensure_dir_exists':
enchant.c:165: error: implicit declaration of function `g_mkdir_with_parents'
enchant.c:165: warning: nested extern declaration of `g_mkdir_with_parents'
enchant.c: In function `enchant_get_module_dirs':
enchant.c:211: warning: unused variable `prefix'
enchant.c: In function `enchant_dict_suggest':
enchant.c:947: warning: passing arg 2 of `enchant_dict_get_good_suggestions' from incompatible pointer type
enchant.c:957: warning: passing arg 4 of `enchant_pwl_suggest' from incompatible pointer type
enchant.c:960: warning: passing arg 2 of `enchant_dict_get_good_suggestions' from incompatible pointer type
enchant.c:975: warning: passing arg 2 of `enchant_dict_merge_suggestions' from incompatible pointer type
enchant.c:975: warning: passing arg 4 of `enchant_dict_merge_suggestions' from incompatible pointer type
enchant.c:980: warning: passing arg 2 of `enchant_dict_merge_suggestions' from incompatible pointer type
enchant.c:980: warning: passing arg 4 of `enchant_dict_merge_suggestions' from incompatible pointer type
enchant.c: In function `enchant_get_version':
enchant.c:2336: warning: return discards qualifiers from pointer target type
make[2]: *** [enchant.lo] Error 1
make[2]: Leaving directory `/tmp/tmpyTE_CNbuildout-enchant/enchant-1.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/tmpyTE_CNbuildout-enchant/enchant-1.6.0/src'
make: *** [all-recursive] Error 1
enchant: cmmi failed: /tmp/tmpyTE_CNbuildout-enchant

任何人都可以告诉我这里的问题是什么?

0 个答案:

没有答案