gettextのコンパイル中にエラーが発生しました。

gettextのコンパイル中にエラーが発生しました。

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

どうですか?

ベストアンサー1

言及されたバージョンはgettext2016年にリリースされましたが、Linuxカーネルバージョンは2003年頃にさかのぼります(Debianの場合、おそらくgettextそれより10年ほど速いでしょう)。カーネルが古すぎて開発者の好み(新しいツールチェーン機能への依存を含む)を考えると、開発者はもはやこのLinuxバージョンを「サポート」する可能性はありません。

一方、次のような状況が発生する可能性があります。できるこうすることは(忍耐心があれば)ポートgettext古いシステムのための新しいものです。

または(はるかに少ない作業):Linux 2.4にはgettextの同時バージョンがあるためできる0.13や0.14などの互換バージョンをインストールするだけです(参照:FTPサイト)。

おすすめ記事