近藤と申します。
以下の環境で ALSA がうまくコンパイルできません。
どなたか、助けて下さい。
環境:
CPU=Pentium 4
チップセット=i856G
サウンドデバイス=チップセット内蔵
これまでやったこと。
1. Vine 3.1 をインストール。
2. vmlinuz-2.4.27-0vl7smp を使っていた時に、
alsa-driver-1.0.5a-0vl2.src.rpm を再コンパイルした
alsa-driver-2.4.27-0vl7smp-1.0.5a-0vl2.i386.rpm
alsa-driver-common-1.0.5a-0vl2.i386.rpm
その他、alsa-lib, alsa-utils
alsa-lib-1.0.5-0vl1.i386.rpm
alsa-utils-1.0.5-0vl1.i386.rpm
をインストールしたら、サウンドはうまく使えた。
3. vmlinuz-2.4.27-0vl7smp は、poweroff コマンドが使えないので、
kernel-2.4.27-0vl7.3.src.rpm から APM を有効にした
SMP カーネルを作り直すことにする。
mkkpkg --enable-smp --target=i686 kernel-2.4.27-0vl7.3.src.rpm
とすると、kernel-2.4.27-0vl7.3k1.i686.rpm と
kernel-smp-2.4.27-0vl7.3k1.i686.rpm ができたので、smp カーネルの方を
インストール。poweroff コマンドは正常に働いた。
(0vl7.3k1 は、自作カーネルのリリース名)
kernel-headers などができていなかったので、
mkkpkg --enable-smp --target=i686 kernel-2.4.27-0vl7.3.src.rpm
を再度実行して作られた kernel-headers-2.4.27-0vl7.3k1.i386.rpm
をインストール。
4. alsa-driver を再コンパイルしようとしたら、末尾に添付するように、
failed (probably missing
/lib/modules/2.4.27-0vl7.3k1smp/build/include/linux/version.h)
とエラーが出た。
-- 近藤靖浩 <nkon@xxxxxxxxxxxxx>
[root@crimson SRPMS]# rpm --rebuild alsa-driver-1.0.5a-0vl2.src.rpm
alsa-driver-1.0.5a-0vl2.src.rpm をインストール中
実行中(%prep): /bin/sh -e /var/tmp/rpm-tmp.58646
+ umask 022
+ cd /root/rpm/BUILD
+ cd /root/rpm/BUILD
+ rm -rf alsa-driver-1.0.5a
+ /usr/bin/bzip2 -dc /root/rpm/SOURCES/alsa-driver-1.0.5a.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd alsa-driver-1.0.5a
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (alsa-driver-0.9.2-usb_header.patch):'
Patch #0 (alsa-driver-0.9.2-usb_header.patch):
+ patch -p0 -b --suffix .usb -s
+ exit 0
実行中(%build): /bin/sh -e /var/tmp/rpm-tmp.23295
+ umask 022
+ cd /root/rpm/BUILD
+ cd alsa-driver-1.0.5a
+ CFLAGS=-O2 -pipe -march=i386 -mcpu=i686
+ export CFLAGS
+ CXXFLAGS=-O2 -pipe -march=i386 -mcpu=i686
+ export CXXFLAGS
+ FFLAGS=-O2 -pipe -march=i386 -mcpu=i686
+ export FFLAGS
+ '[' -f configure.in ']'
+ libtoolize --copy --force
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
+ ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var/lib --sharedstatedir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-sequencer=yes --with-isapnp=auto --with-oss=yes --with-cards=all
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /root/rpm/BUILD/alsa-driver-1.0.5a
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.27-0vl7.3k1smp/build
checking for kernel version... expr: syntax error
expr: syntax error
expr: syntax error
failed (probably missing /lib/modules/2.4.27-0vl7.3k1smp/build/include/linux/version.h)
エラー: /var/tmp/rpm-tmp.23295 の不正な終了ステータス (%build)
RPM ビルドエラー:
/var/tmp/rpm-tmp.23295 の不正な終了ステータス (%build)
[root@crimson SRPMS]# rpm -q kernel-smp
kernel-smp-2.4.27-0vl7
kernel-smp-2.4.27-0vl7.3k1
[root@crimson SRPMS]# rpm -q kernel-headers
kernel-headers-2.4.27-0vl7.3k1
[root@crimson SRPMS]#