ALSA RPM rebuild fails, other compilation problems
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ALSA RPM rebuild fails, other compilation problems
Hi, my first post (but not my last) so please bear with me.
Big picture: I'm having a problem with my VT82C686B audio on an Asus A7V133 running RH 9.0 2.4.20-24.9. It's a vanilla install from the Shrike ISOs that's been upgraded using the automatic tool the RH installs.
Little picture: I'm clueless about the driver configuration process. I've been following the ALSA docs. The "./configure" works, but the "make" fails.
My suspicion is that I don't have the correct source tree or headers or something in place, but I don't know how to go about the process.
The question: How can I resolve the compile issue? How do I verify my source tree?
The output from the "make" is too large to post here, but I'll email it along if you are willing to look at it and give me some analysis.
truncated dmesg output:
Via 686a/8233/8235 audio driver 1.9.1-ac3rh2
PCI: Found IRQ 9 for device 00:04.5
PCI: Sharing IRQ 9 with 00:0a.0
PCI: Setting latency timer of device 00:04.5 to 64
ac97_codec: AC97 Audio codec, id: ICE17 (ICE1232)
via82cxxx: board #1 at 0xB800, IRQ 9
truncated lspci -vv output:
00:04.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
Subsystem: Asustek Computer, Inc.: Unknown device 1106
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin C routed to IRQ 9
Region 0: I/O ports at b800 [size=256]
Region 1: I/O ports at b400 [size=4]
Region 2: I/O ports at b000 [size=4]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
I've pasted in the initial output and the final output for a couple of screens. The error message talks about a building vs. the kernel problem, but I haven't been able to wrap my head around the resolution process. I did try adding some symbolic links here and there to "create" path to the file in question based on some of the errors, but to no avail.
I would consider just going to OSS and paying for the software, but the fact that I have this build problem indicates to me that I have an environmental config issue on top of a sound driver issue.
I have more of the output, but I had to set my terminal to capture 15000 lines and it still didn't get all of it, so I don't think splitting a huge post up will be of much use (but then again, what do I know anyway...). Besides that I can't seem to copy and paste such a big chunk of text into this message window.
[root@localhost alsa-driver-0.9.8]# make
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.9.8/support'
make[1]: Nothing to be done for `first_rule'.
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.8/support'
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.9.8/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/usr/src/alsa/alsa-driver-0.9.8/include -I/lib/modules/2.4.20-24.9/build/include -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -DEXPORT_SYMTAB -c memalloc.c
In file included from /lib/modules/2.4.20-24.9/build/include/linux/module.h:20,
from /usr/src/alsa/alsa-driver-0.9.8/include/adriver.h:51,
from memalloc.inc:11,
from memalloc.c:1:
/lib/modules/2.4.20-24.9/build/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/lib/modules/2.4.20-24.9/build/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/lib/modules/2.4.20-24.9/build/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/lib/modules/2.4.20-24.9/build/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/lib/modules/2.4.20-24.9/build/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /lib/modules/2.4.20-24.9/build/include/linux/fs.h:23,
from /lib/modules/2.4.20-24.9/build/include/linux/capability.h:17, from /lib/modules/2.4.20-24.9/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.20-24.9/build/include/linux/sched.h:9,
from /usr/src/alsa/alsa-driver-0.9.8/include/adriver.h:126,
from memalloc.inc:11,
from memalloc.c:1:
/lib/modules/2.4.20-24.9/build/include/linux/string.h:8:2: warning: #warning Using
kernel header in userland!
In file included from /lib/modules/2.4.20-24.9/build/include/linux/sched.h:14,
from /usr/src/alsa/alsa-driver-0.9.8/include/adriver.h:126,
from memalloc.inc:11,
from memalloc.c:1:
/lib/modules/2.4.20-24.9/build/include/linux/timex.h:173: field `time' has incomplete type
SNIP!
In file included from memalloc.c:1004:
memalloc.inc1:22: parse error before "config_must_be_included_before_module"
memalloc.inc1:2
In file included from /lib/modules/2.4.20-24.9/build/include/linux/sched.h:14,
from /usr/src/alsa/alsa-driver-0.9.8/includ2: warning: type defaults to `int' in declaration of `config_must_be_included_before_module'
memalloc.inc1:22: warning: data definition has no type or storage class
memalloc.c:43: warning: `enable' defined but not used
memalloc.c:51: warning: `DECLARE_MUTEX' declared `static' but never defined
make[1]: *** [memalloc.o] Error 1[root@localhost alsa-driver-0.9.8]#
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-0.9.8/acore'
make: *** [compile] Error 1
[root@localhost alsa-driver-0.9.8]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.