[PC周辺] __ctype_b, __ctype_tolower, and __ctype_toupper of glibc 2.6-2 (20070719)

[myn:2007021000] の続き.

undefined reference to `__ctype_b'
undefined reference to `__ctype_tolower'
undefined reference to `__ctype_toupper'

とかで怒られるというあれ.いわゆる上記の symbol 入り libc をつくる件.

% apt-get source glibc (これで glibc-2.6 という directory ができる)
% cd glibc-2.6
% head -1 debian/changelog
glibc (2.6-2) unstable; urgency=low
% emacs debian/changelog
C-c C-v (要 debian-changelog-mode)
2.6-3 となるところをなんとなく 2.6-3.1 とかに修正
C-c C-f, C-x C-s, C-x C-c
% head -1 debian/changelog
glibc (2.6-3.1) unstable; urgency=low
% cp somewhere/glibc26-ctype-compat.dpatch debian/patches/any
% echo any/glibc26-ctype-compat.dpatch >> debian/patches/series

ここまでが下準備.

glibc26-ctype-compat.dpatch は自前で用意したので <URL:http://myn.meganecco.org/files/glibc26-ctype-compat.dpatch> に置いてあります (無保証).

で,前回

% nice -19 fakeroot make -f debian/rules binary \
"RUN_TESTSUITE=no" \
"DEB_INDEP_REGULAR_PACKAGES=locales" \
"DEB_ARCH_REGULAR_PACKAGES=libc6 libc6-dev libc6-amd64 libc6-dev-amd64" \
"DEB_UDEB_PACKAGES=" \
"GLIBC_PASSES=libc nptl amd64"

とかで OK だったのであるが,今回は,

% nice -19 fakeroot make -f debian/rules binary \
"RUN_TESTSUITE=no" \
"DEB_INDEP_REGULAR_PACKAGES=locales" \
"DEB_ARCH_REGULAR_PACKAGES=libc6 libc6-dev libc6-i686 libc6-xen libc6-amd64 libc6-dev-amd64" \
"DEB_UDEB_PACKAGES=" \
"GLIBC_PASSES=libc i686 xen amd64"

という感じで,

xen は不要なのであるが,これがなければ

# extra_debhelper_pkg_install is used for debhelper.mk only.
# when you want to install extra packages, use extra_pkg_install.
mkdir -p debian/libc6-dev/usr/lib/xen
cp -af debian/tmp-xen/usr/lib/*.a debian/libc6-dev/usr/lib/xen
cp: cannot stat `debian/tmp-xen/usr/lib/*.a': そのようなファイルやディレクトリはありません
make: *** [/home/myn/glibc-2.6/stamp-dir/binaryinst_libc6-dev] エラー 1

とかで build に失敗するので.

関連リンク


Last-modified: Fri Jul 20 10:49:34 +0900 2007

全インデックス