编译 realtek 声卡驱动 的 alsa-driver-1.0.14-4.06 错误

发布于 2022-09-19 14:07:33 字数 5386 浏览 10 评论 0

下载了realtek 公司网站上的声卡驱动(地址:ftp://202.65.194.211/pc/audio/realtek-linux-audiopack-4.06a.tar.bz2),放在 /root 目录下, 解压缩后出现三个 压缩文件 分别为 alsa-driver-1.0.14-4.06a.tar.bz2 ,alsa-lib-1.0.14.tar.bz2,alsa-utils-1.0.14.tar.bz2  ,分别进行解压缩 ,进入alsa-driver-1.0.14-4.06a目录下进行编译出错
错误提示如下:
make[2]: Entering directory `/root/realtek-linux-audiopack-4.06a/alsa-driver-1.0.14-4.06a/pci/riptide'
gcc -D__KERNEL__ -DMODULE=1 -I/root/realtek-linux-audiopack-4.06a/alsa-driver-1.0.14-4.06a/include  -I/lib/modules/2.4.20-8/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include /lib/modules/2.4.20-8/build/include/linux/modversions.h  -DKBUILD_BASENAME=riptide   -c -o riptide.o riptide.c
riptide.c:1282:1: directives may not be used inside a macro argument
riptide.c:1281:68: unterminated argument list invoking macro "request_firmware"
riptide.c: In function `riptide_reset':
riptide.c:1283: `request_firmware' undeclared (first use in this function)
riptide.c:1283: (Each undeclared identifier is reported only once
riptide.c:1283: for each function it appears in.)
riptide.c:1283: parse error before "pci_name"
riptide.c: At top level:
riptide.c:1303: parse error before numeric constant
riptide.c:1304: parse error before numeric constant
riptide.c:1307: parse error before numeric constant
riptide.c:1308: parse error before numeric constant
riptide.c:1309: parse error before numeric constant
riptide.c:1310: parse error before numeric constant
riptide.c:1311: parse error before numeric constant
riptide.c:1313: parse error before numeric constant
riptide.c:1313: warning: type defaults to `int' in declaration of `writearm'
riptide.c:1313: warning: function declaration isn't a prototype
riptide.c:1313: warning: data definition has no type or storage class
riptide.c:1314: parse error before numeric constant
riptide.c:1314: warning: type defaults to `int' in declaration of `writearm'
riptide.c:1314: warning: function declaration isn't a prototype
riptide.c:1314: warning: data definition has no type or storage class
riptide.c:1317: parse error before numeric constant
riptide.c:1318: parse error before numeric constant
riptide.c:1318: warning: type defaults to `int' in declaration of `setmixer'
riptide.c:1318: warning: function declaration isn't a prototype
riptide.c:1318: warning: data definition has no type or storage class
riptide.c:1319: parse error before '(' token
riptide.c:1322: parse error before numeric constant
riptide.c:1323: parse error before numeric constant
riptide.c:1323: warning: type defaults to `int' in declaration of `setmixer'
riptide.c:1323: warning: function declaration isn't a prototype
riptide.c:1323: warning: data definition has no type or storage class
riptide.c:1324: parse error before numeric constant
riptide.c:1324: warning: type defaults to `int' in declaration of `writearm'
riptide.c:1324: warning: function declaration isn't a prototype
riptide.c:1324: warning: data definition has no type or storage class
riptide.c:1325: parse error before numeric constant
riptide.c:1325: warning: type defaults to `int' in declaration of `writearm'
riptide.c:1325: warning: function declaration isn't a prototype
riptide.c:1325: warning: data definition has no type or storage class
riptide.c:1326: parse error before numeric constant
riptide.c:1326: warning: type defaults to `int' in declaration of `writearm'
riptide.c:1326: warning: function declaration isn't a prototype
riptide.c:1326: warning: data definition has no type or storage class
riptide.c:1327: parse error before '(' token
riptide.c:1331: parse error before numeric constant
riptide.c:1333: parse error before numeric constant
riptide.c:1334: parse error before numeric constant
riptide.c:1335: parse error before '(' token
riptide.c:1336: parse error before '(' token
riptide.c:1337: parse error before '(' token
riptide.c:1339: parse error before '(' token
riptide.c:1340: parse error before '(' token
riptide.c:1341: parse error before '(' token
riptide.c:595: warning: `lbus_play_opl3' defined but not used
riptide.c:598: warning: `lbus_play_modem' defined but not used
riptide.c:601: warning: `lbus_play_i2s' defined but not used
riptide.c:604: warning: `lbus_play_out' defined but not used
riptide.c:607: warning: `lbus_play_outhp' defined but not used
riptide.c:836: warning: `writearm' defined but not used
make[2]: *** [riptide.o] Error 1
make[2]: Leaving directory `/root/realtek-linux-audiopack-4.06a/alsa-driver-1.0.14-4.06a/pci/riptide'
make[1]: *** [_modsubdir_riptide] Error 2
make[1]: Leaving directory `/root/realtek-linux-audiopack-4.06a/alsa-driver-1.0.14-4.06a/pci'
make: *** [compile] Error 1

我的环境为redhat9.0 内核为redhat9.0标准内核2.4.20-8,编译器和链接库等都是redhat9.0自带的编译器 版本为3.2.2-5

希望有高手指教!先谢谢了!

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

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

发布评论

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

评论(1

薆情海 2022-09-26 14:07:33

试试更新的版本,我在realtek上下的版本是realtek-linux-audiopack-5.01.tar.bz2,如果还不行,升级你的alsa到更新版本,许多都是1.0.16了,我就是这样搞的。安装最终还是报错,但使用正常。

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