Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27651 - alsa-driver-0.9.6 2.4.23 compile fix
Summary: alsa-driver-0.9.6 2.4.23 compile fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-31 08:51 UTC by Thomas Weidner
Modified: 2003-09-24 02:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
alsa-driver-0.9.6.ebuild (alsa-driver-0.9.6.ebuild,2.18 KB, text/plain)
2003-09-10 06:45 UTC, Thomas Weidner
Details
alsa-compile-fix.patch (alsa-compile-fix.patch,746 bytes, patch)
2003-09-10 06:47 UTC, Thomas Weidner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2003-08-31 08:51:17 UTC
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*/
Comment 1 Stephen Boulet 2003-09-10 04:55:20 UTC
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. 
Comment 2 Thomas Weidner 2003-09-10 06:45:01 UTC
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.
Comment 3 Thomas Weidner 2003-09-10 06:47:02 UTC
Created attachment 17433 [details, diff]
alsa-compile-fix.patch
Comment 4 Stephen Boulet 2003-09-10 17:09:51 UTC
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 ]
Comment 5 Thomas Weidner 2003-09-11 06:05:28 UTC
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?
Comment 6 Stephen Boulet 2003-09-11 06:20:29 UTC
Yes I did. It used to work for me, but I can't figure out what's changed ... 
 
-- Stephen 
Comment 7 Stephen Boulet 2003-09-11 11:07:25 UTC
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
Comment 8 Stephen Boulet 2003-09-11 20:40:14 UTC
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 
Comment 9 Hanno Böck gentoo-dev 2003-09-24 02:57:50 UTC
I've commited the compile-fix to cvs.