試験運用中なLinux備忘録・旧記事

はてなダイアリーで公開していた2007年5月-2015年3月の記事を保存しています。

Linux 2.6.24でのklibcとsplashutilsの覚え書き

カーネルを2.6.24にした後でklibcを更新しようとしたところ、下のようなエラーで止まってしまった。

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.24-tuxonice
>>> Unpacking source...
>>> Unpacking klibc-1.5.tar.bz2 to /var/tmp/portage/dev-libs/klibc-1.5/work
 * CTARGET = x86_64-pc-linux-gnu

 * Your kernel sources are not configured for your chosen arch!
 * (KERNEL_ARCH="x86", ARCH="x86_64")
 *
 * ERROR: dev-libs/klibc-1.5 failed.
 * Call stack:
 *          ebuild.sh, line 1701:  Called dyn_unpack
 *          ebuild.sh, line  817:  Called qa_call 'src_unpack'
 *          ebuild.sh, line   44:  Called src_unpack
 *   klibc-1.5.ebuild, line   82:  Called die
 * The specific snippet of code:
 *              die "Your kernel sources are not configured for your chosen arch!"

使用したカーネルは、tuxonice-sources-2.6.23-r9のebuildをもとに

--- /usr/portage/sys-kernel/tuxonice-sources/tuxonice-sources-2.6.23-r9.ebuild
+++ [ローカルOverlay]/sys-kernel/tuxonice-sources/tuxonice-sources-2.6.24.ebuild
@@ -1,10 +1,10 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/tuxonice-sources/tuxonice-sources-2.6.23-r9.ebuild,v 1.1 2008/01/25 07:41:52 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/tuxonice-sources/tuxonice-sources-2.6.23-r8.ebuild,v 1.1 2008/01/21 11:10:02 nelchael Exp $
 
 ETYPE="sources"
 K_WANT_GENPATCHES="base extras"
-K_GENPATCHES_VER="7"
+K_GENPATCHES_VER="1"
 
 inherit kernel-2
 detect_version
@@ -14,7 +14,7 @@
 HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.tuxonice.net"
 
 TUXONICE_VERSION="3.0-rc5"
-TUXONICE_TARGET="2.6.23.14"
+TUXONICE_TARGET="2.6.24-rc8-git4"
 TUXONICE_SRC="tuxonice-${TUXONICE_VERSION}-for-${TUXONICE_TARGET}"
 TUXONICE_URI="http://www.tuxonice.net/downloads/all/${TUXONICE_SRC}.patch.bz2"
 

GentooのパッチセットとTuxOnIceのバージョンだけ最新に合わせたもの。
エラーはアーキテクチャ文字列関係なので
www.atmarkit.co.jp/flinux/rensai/watch2007/watch11a.html
にある「x86マージ」の影響なのかもしれない。
klibcのバージョン1.5.7のebuildからはこの問題は起こらないため、バージョンを上げることで対処できた。
その後入れようとしたsplashutilsのバージョン1.5.2.1では、

 * The kernel tree against which dev-libs/klibc was built was not patched
 * with a compatible version of fbcondecor. Splashutils will be compiled
 * without fbcondecor support (i.e. verbose mode will not work).

このようなメッセージが出たため、バージョン1.5.3.2に上げて「USE=fbcondecor」で入れたのだが、fbsplashは正常に動作している。
その他、カーネルソースを使用するモジュールパッケージ(VMware/VirtualBox/NVIDIAドライバ/KVM)は2.6.24になっても特に問題なくビルドでき、動作も良好。