Hi, 2.4.23-pre seems to backport some stuff from 2.5/2.6,but alsa defines the same stuff,since it wasn't in <=2.4.22,so emerge alsa-driver fails due to double defines. here is a patch which should fix this: diff -ru /var/tmp/portage/alsa-driver-0.9.6/work/alsa-driver-0.9.6/include/adriver.h alsa-driver-0.9.6/include/adriver.h --- /var/tmp/portage/alsa-driver-0.9.6/work/alsa-driver-0.9.6/include/adriver.h 2003-08-31 17:28:59.000000000 +0200 +++ alsa-driver-0.9.6/include/adriver.h 2003-08-31 17:26:38.000000000 +0200 @@ -193,7 +193,8 @@ #undef synchronize_irq #define synchronize_irq(irq) synchronize_irq_wrapper(irq) #endif /* LINUX_VERSION_CODE < 2.5.28 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 68) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 68) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0)) \ + || LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 23) #define IRQ_NONE /*void*/ #define IRQ_HANDLED /*void*/ #define IRQ_RETVAL(x) /*void*/
I'm also experiencing a build failure for this ebuild using kernel 2.4.23-pre3 (needed because of reportedly better nforce2 chipset performance), but I'm not really clear about how and to what to apply it. Can someone alter the ebuild to use it? Thanks.
Created attachment 17432 [details] alsa-driver-0.9.6.ebuild don't think that adding a revision like -r1 is necessary as the driver isn't changed.
Created attachment 17433 [details, diff] alsa-compile-fix.patch
Thanks. Putting alsa-compile-fix.patch in /usr/portage/media-sound/alsa-driver/files and replacing the regular ebuild worked as far as building the module goes, but starting alsasound failed: # /etc/init.d/alsasound restart * WARNING: you are stopping a boot service. /sbin/runscript.sh: line 116: error: command not found * Loading ALSA drivers... * Loading: snd-seq-oss /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: unresolved symbol __builtin_va_start /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o failed /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod snd-seq-oss failed * Loading: snd-pcm-oss /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: unresolved symbol __builtin_va_start /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o failed /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod snd-pcm-oss failed * Loading: snd-mixer-oss /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: unresolved symbol __builtin_va_start /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o failed /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod snd-mixer-oss failed * Loading: snd-emu10k1 /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: unresolved symbol __builtin_va_start /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o failed /lib/modules/2.4.23-pre3/kernel/sound/acore/snd.o: insmod snd-emu10k1 failed * Running card-dependant scripts * ERROR: Failed to load neccessary drivers * Restoring Mixer Levels cat: /proc/asound/cards: No such file or directory [ ok ]
works without problems for me. only a wild guess: did you compile alsa-driver with the same compiler (and compiler version!) as you did the kernel?
Yes I did. It used to work for me, but I can't figure out what's changed ... -- Stephen
Actually, now that I think of it, since I'm running ~x86, I remember that I recently changed from gcc 3.2 to 3.3. I don't know if this will help, but I'm doing an "emerge -eD system" right now, and then I'll try again. -- Stephen
I don't know if it was ccache or distccd (my other computer on the lan is a P3 -- can that be combined with an athlon-xp?), but changing my make.conf to not use either of those worked. Other things wouldn't build correctly otherwise, like sed. -- Stephen
I've commited the compile-fix to cvs.