alsa-driver-1.0.13编译出错求救

发布于 2022-07-24 07:45:44 字数 3514 浏览 24 评论 2

cat /proc/version
Linux version 2.6.12 (root@localhost.localdomain) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #2 Thu Aug 14 15:08:26 CST 2003

[root@localhost alsa-driver-1.0.13]# /lib/tls/libc-2.3.2.so
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
Compiled on a Linux 2.4.20 system on 2003-03-13.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        NPTL 0.29 by Ulrich Drepper
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

[root@localhost alsa-driver-1.0.13]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
[root@localhost alsa-driver-1.0.13]#        
────────────────────────────────────────────────────────────────

CC [M]  /usr/src/alsa/alsa-driver-1.0.13/acore/sound.o
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c: In function `snd_open':
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:178: warning: assignment discards qualifiers from pointer target type
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:183: warning: assignment discards qualifiers from pointer target type
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c: In function `snd_register_device':
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:295: warning: implicit declaration of function `devfs_mk_cdev'
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c: In function `snd_unregister_device':
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:357: `mptr' undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:357: (Each undeclared identifier is reported only once
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:357: for each function it appears in.)
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:359: warning: implicit declaration of function `devfs_remove'
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c: In function `alsa_sound_init':
/usr/src/alsa/alsa-driver-1.0.13/acore/sound.c:495: warning: implicit declaration of function `devfs_mk_dir'
make[4]: *** [/usr/src/alsa/alsa-driver-1.0.13/acore/sound.o] Error 1
make[3]: *** [/usr/src/alsa/alsa-driver-1.0.13/acore] Error 2
make[2]: *** [_module_/usr/src/alsa/alsa-driver-1.0.13] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12'
make: *** [compile] Error 2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

套路撩心 2022-07-28 07:11:33

下了nv的驱动了。
http://download.chinaunix.net/download/0008000/7410.shtml
wget http://download.nvidia.com/XFree ... 6-1.0-0310-pkg1.run
./NFORCE-Linux-x86-1.0-0310-pkg1.run --extract-only
cd /usr/src/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main
make
mkdir -p //lib/modules/2.6.12/kernel/sound/oss
install -b -m 755 nvsound.ko //lib/modules/2.6.12/kernel/sound/oss

ヤ经典坏疍 2022-07-27 20:09:32

This doesn't require a kernel level pci_ids.h patch. Just apply the patch below to alsa,
configure, make, etc and modprobe.

diff -ruN alsa-driver-1.0.13rc2.orig/alsa-kernel/pci/hda/hda_intel.c alsa-driver-1.0.13rc2/alsa-kernel/pci/hda/hda_intel.c

--- alsa-driver-1.0.13rc2.orig/alsa-kernel/pci/hda/hda_intel.c     2006-09-12 06:40:56.000000000 -0700

+++ alsa-driver-1.0.13rc2/alsa-kernel/pci/hda/hda_intel.c         2006-09-24 10:43:37.000000000 -0700

@@ -1684,6 +1684,7 @@

            { 0x10b9, 0x5461, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ULI }, /* ULI M5461 */

            { 0x10de, 0x026c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 026c */

            { 0x10de, 0x0371, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 0371 */

+          { 0x10de, 0x03f0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 03f0 */

            { 0, }

};

MODULE_DEVICE_TABLE(pci, azx_ids);

Dan Cyr
über Linux geek, A+, Network+, i-Net+ Certified Professional

"The grand essentials of happiness: something to do, something to love, something to hope for."

diff -ruN alsa-driver-1.0.13rc2.orig/alsa-kernel/pci/hda/hda_intel.c alsa-driver-1.0.13rc2/alsa-kernel/pci/hda/hda_intel.c
--- alsa-driver-1.0.13rc2.orig/alsa-kernel/pci/hda/hda_intel.c        2006-09-12 06:40:56.000000000 -0700
+++ alsa-driver-1.0.13rc2/alsa-kernel/pci/hda/hda_intel.c        2006-09-24 10:43:37.000000000 -0700
@@ -1684,6 +1684,7 @@
        { 0x10b9, 0x5461, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ULI }, /* ULI M5461 */
        { 0x10de, 0x026c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 026c */
        { 0x10de, 0x0371, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 0371 */
+        { 0x10de, 0x03f0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_NVIDIA }, /* NVIDIA 03f0 */
        { 0, }
};
MODULE_DEVICE_TABLE(pci, azx_ids);

-------------------------------------------------------------------------

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文