首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编译gettext错误

编译gettext错误
EN

Unix & Linux用户
提问于 2017-08-03 14:38:12
回答 1查看 148关注 0票数 0

我得到了这个错误消息,试图用Linux内核2.4编译gettext

代码语言:javascript
复制
libtool: compile:  gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -I./libcroco -g -O2 -c uniname/uniname.c  -fPIC -DPIC -o uniname/.libs/uniname.o
In file included from uniname/uniname.c:26:
string.h:893: warning: `strstr' redefined
/usr/include/bits/string2.h:1070: warning: this is the location of the previous definition
uniname/uniname.c: In function `unicode_name_character':
uniname/uniname.c:410: parse error before `words'
uniname/uniname.c:424: `wordptr' undeclared (first use in this function)
uniname/uniname.c:424: (Each undeclared identifier is reported only once
uniname/uniname.c:424: for each function it appears in.)
uniname/uniname.c:424: `words' undeclared (first use in this function)
make[5]: *** [uniname/uniname.lo] Error 1
make[5]: Leaving directory `/home/niklros/gettext-0.19.8.1/gettext-tools/gnulib-lib'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/niklros/gettext-0.19.8.1/gettext-tools/gnulib-lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/niklros/gettext-0.19.8.1/gettext-tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/niklros/gettext-0.19.8.1/gettext-tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/niklros/gettext-0.19.8.1'
make: *** [all] Error 2

我能做些什么?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2017-08-03 20:25:41

提到的gettext版本是在2016年发布的,而Linux内核版本的发布日期是2003年(使用Debian,可能只比gettext版本早了十年)。考虑到一个老内核,以及开发人员的偏好(包括对更新的工具链特性的依赖),开发人员不太可能再“支持”那个版本的Linux了。

另一方面,很可能你能做的(如果你是耐心的)是移植新的(呃) gettext到旧的系统。

或者(更不用说工作了):由于有一个版本的gettext与Linux2.4并发,所以您可以简单地安装使用它的内容,例如0.13或0.14 (参见ftp站点)。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/383708

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档