我得到了这个错误消息,试图用Linux内核2.4编译gettext
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我能做些什么?
发布于 2017-08-03 20:25:41
提到的gettext版本是在2016年发布的,而Linux内核版本的发布日期是2003年(使用Debian,可能只比gettext版本早了十年)。考虑到一个老内核,以及开发人员的偏好(包括对更新的工具链特性的依赖),开发人员不太可能再“支持”那个版本的Linux了。
另一方面,很可能你能做的(如果你是耐心的)是移植新的(呃) gettext到旧的系统。
或者(更不用说工作了):由于有一个版本的gettext与Linux2.4并发,所以您可以简单地安装使用它的内容,例如0.13或0.14 (参见ftp站点)。
https://unix.stackexchange.com/questions/383708
复制相似问题