gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DEXPORT_SYMTAB -c timer.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, from ../alsa-kernel/core/timer.c:22, from timer.c:1: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DEXPORT_SYMTAB -c sound.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, from ../alsa-kernel/core/rawmidi.c:22, from rawmidi.c:1: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DKBUILD_BASENAME=init -c -o init.o init.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, from ../alsa-kernel/core/sound.c:22, from sound.c:2: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want sound.c:41: `snd_hack_usb_set_interface' undeclared here (not in a function) sound.c:41: initializer element is not constant sound.c:41: (near initialization for `__ksymtab_snd_hack_usb_set_interface.value') make[1]: *** [sound.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, from ../alsa-kernel/core/init.c:22, from init.c:2: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/acore' make: *** [compile] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 63, Exitcode 2
Yeah, I know. That's why it is still masked out; I haven't had a chance to look into this. If you want, you can work around this temporarilly by specifying which driver(s) to build (provided you have a PCI card): env ALSA_CARDS="emu10k1" emerge alsa-driver HTH.
hi guys, take a look at http://sourceforge.net/tracker/index.php? func=detail&aid=597453&group_id=27464&atid=390601 seems that fixes some problems. hth thomas
Thomas, thanks for the research. Looks like this might fix the compilation, but I am not certain that it won't break anything at runtime. Since the patch is not officially endorsed or acknowledged, I don't feel comfortable with including it in the ebuild.
Arcardy, on www.alsa-project.org you'll find the following statement: "Note for compiling alsa-driver-0.9.0rc3: Please remove the file - alsa-driver- 0.9.0rc3/include/linux/isapnp.h - before running the configure script." I tried this and the solution from http://sourceforge.net/tracker/index.php? func=detail&aid=597453&group_id=27464&atid=390601 Both soluitons fixes the bug with isapnp.h. But i got now other problems which i think results of using kernel 2.4.20-pre5.
Thanks again, Thomas. The version 1.3 of the _rc3 ebuild (in CVS now) removes the isapnp.h file. It seems that the previous bug has gone away (Bart, confirm, please). However, it still doesn't compile for me. I'm using kernel 2.4.20-pre4-ac1 on my current workstation. I'll try on my home box once I get there.
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want sound.c:41: `snd_hack_usb_set_interface' undeclared here (not in a function) sound.c:41: initializer element is not constant sound.c:41: (near initialization for `__ksymtab_snd_hack_usb_set_interface.value') make[1]: *** [sound.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, from ../alsa-kernel/core/isadma.c:29, from isadma.c:2: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/acore' make: *** [compile] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -11, Exitcode 2 !!! Parallel Make Failed Still no go.. :o(
rc3 has been working for me for a long while now on multiple systems. In fact the via8233 driver (in this case for an Avance Logic ALC201A AC97 on-board sound card on a Gigabyte motherboard) will only work with RC3. Bart, maybe try emerging it again? the unmasking of _rc3 is long overdue. :)
I don't feel right about unmasking _rc3. The alsa-driver package has many compilation problems, some gcc 3 related, some not. The same problems are not present with _rc2. I feel that we'll get hammered with bug reports if we unmask _rc3. alsa-lib and alsa-utils, OTOH, compile fine, even against alsa-driver _rc2, and seem to work with it. Not sure whether it is entirely kosher to unmaske the -lib and -utils packages, but leave -driver at _rc2. I'd rather not experiment. ;^) Anyhow, the portage tree is in a freeze now, and it's probably the worst time to unmask anything as important as alsa.
The rc5 ebuilds have been in the portage for a couple of days now. Do they work for everybody on the CC list of this bug? ;^)
the drivers only build for me if I specify the card that I am using... if I just let it install and compile all the drivers it stops on some usb audio stuff... this has happened on all machines I have tried this on so far. Maybe want to put a comment about the via audio drivers... via686 and via8233 are now via82xx
What version of gcc do you have? The Alsa people have released an updated tarball for rc5 of alsa-driver, that's supposed to fix some gcc 3.2 related compile-time problem (see http://www.alsa-project.org). Not e that they did that without updating a revision number. Make sure that you tarball's MD5 checksum is 8f570619fc4aa771cf536822824f7d82 alsa-driver-0.9.0rc5.tar.bz2
I had some problems with compiling usb audio stuff too, but then I tried the new version of rc5 and everything compiled fine.
Nick, could you please do the following: 1. rm /usr/portage/distfiles/alsa-driver-0.9.0rc5.tar.bz2 2. emerge rsync (to update the digest file if needed) 3. emerge alsa-driver and tell me whether it still fails? Like I said in my previous comment: perhaps you downloaded an older tarball.
The new bz2ball appears to compile without a problem. :)
Looks like this bug is no longer an issue. Feel free to scream at me and reopen the bug.