On Sun, 31 Mar 2002 23:29:40 +0200 Frans Ketelaars <[EMAIL PROTECTED]> wrote:
> On Thu, 28 Mar 2002 02:30:29 +0100 (CET) > Reinout van Schouwen <[EMAIL PROTECTED]> wrote: > > > > > Hello all, > > > > Seeing the many unanswered questions about ALSA 0.9.0beta12 on Mandrake, I > > think you may want to know that I overcame the version.h problem by > > replacing the first line in /usr/src/linux/include/linux/version.h with > > > > #include </usr/src/linux/include/linux/rhconfig.h> > > > > (it cost me ~ 2 hours of hacking the configure script, just to discover > > that the full path to rhconfig.h should be specified :-/ ) > > Thanks! Worked for me. At least, it looked that way, the driver for my ISA-pnp opl3sa2 soundcard loaded. But later I discovered that only drivers for ISA cards where installed. Today (with a bit of luck :) ) I discovered that the configure script, with your suggested changes in /usr/src/linux/include/linux/version.h, makes the script fail to detect PCI support on my system. I changed /usr/src/linux/include/linux/version.h back to it's old state! Btw: I'm using Mandrake 8.2. > > However, after 'make install' > > At the end 'make install' fails on my system with: > > ----------------------------------------------------------------------------- > .............. > make[2]: Leaving directory `/home/frans/alsa-driver-0.9.0beta12/synth/emux' > make[1]: Leaving directory `/home/frans/alsa-driver-0.9.0beta12/synth' > /sbin/depmod -a -F /lib/modules/2.4.18-6mdk/build/System.map 2.4.18-6mdk > depmod: Can't read /lib/modules/2.4.18-6mdk/build/System.map > make: *** [install-modules] Error 1 > ----------------------------------------------------------------------------- > > Reading 'man depmod' and searching for the -F option it seems System.map > isn't located where ALSA expects it :( The 'Can't read /lib/modules/2.4.18-6mdk/build/System.map' problem is solved by making a symbolic link as root with: [root@amd frans]# cd /lib/modules/2.4.18-6mdk/build [root@amd build]# ln -s /boot/System.map before running the ./configure script. > > and 'depmod -a' I get errors about > > unresolved symbols in snd.o and snd-seq.o. > > [root@amd alsa-driver-0.9.0beta12]# depmod -a > [root@amd alsa-driver-0.9.0beta12]# > So no unresolved symbols here :) > > And the module snd-opl3sa2 loads (I haven't tested sound yet though, I just > installed alsa-driver, nothing else): > > [frans@amd alsa-driver-0.9.0beta12]$ cat /proc/asound/sndstat > Sound Driver:3.8.1a-980706 (ALSA v0.9.0beta12 emulation code) > Kernel: Linux amd.mydomain 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i586 > ..... > > > I tried the default gcc-2.96 as > > well as gcc-3.04 with march=athlon but still the same. > > I have a clean 'recommended' install of Mandrake 8.2 and compiled with the > default gcc-2.96. > > > I'm running the Athlon-optimized 2.4.18-7mdk kernel from pclinuxonline.com > > and have the corresponding kernel-source RPM installed. Any suggestions > > are welcome as I've ran out of ideas for now! > > Just an idea, I've read that 'unresolved symbols' problems can result from > using different compilers for the kernel and the ALSA drivers. > > And what do you think of the following solution? > > ------------------------------------------------------------------------------- > From: Arie Tal <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [Alsa-user] Re: Alsa-user] Need help compiling ALSA .9x > Date: Mon, 25 Mar 2002 09:46:19 -0500 (EST) > Sender: [EMAIL PROTECTED] > > It seems as though for some reason, /usr/src/linux/include is not in > the include search path of gcc in Mandrake. > I simply went into the ./configure script and modified all the > ac_compile and ac_link definitions to include -I/usr/src/linux/include > and it worked. > This is an ugly hack, but hey, it works ;) > > Arie Tal > ----------------------------------------------------------------------------- ^^^^^ I tried this today and it works :) > > regards, > > > > -- > > > > Reinout van Schouwen Artificial Intelligence student > > email: [EMAIL PROTECTED] mobile phone: +31-6-44360778 > > Btw, I couldn't find your post in the cooker-list archive. HTH and have fun! > > -Frans Note: I now get (Mandrake 8.2): [frans@amd frans]$ locate snd-emu10k1 | grep /lib/modules/ /lib/modules/2.4.18-6mdk/alsa/snd-emu10k1.o.gz /lib/modules/2.4.18-6mdk/kernel/sound/pci/emu10k1/snd-emu10k1-synth.o /lib/modules/2.4.18-6mdk/kernel/sound/pci/emu10k1/snd-emu10k1.o [frans@amd frans]$ The first and last snd-emu10k1 modules are respectively from ALSA 0.5.12a installed with the Mandrake 8.2 kernel RPM and the newly installed 0.9.0beta12 drivers. At least the modules are in different directories, so the unwanted ones can easily (though not cleanly in a RPM based system AFAIK) be (re)moved if modprobe tries to load the 'wrong' module. Oh, I guess modprobe can be told/configured where to look for modules first :) And testing, modprobe tries to load the 0.9 driver (and fails because I haven't a emu10k1 card, only a lowly ISA card :) ). -Frans (replying to his own post :/ ) _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user Sponsored by http://www.ThinkGeek.com/