alsa emerge problems

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
boota
Newbie
Posts: 3
Joined: Thu Jan 06, 2005 10:32 pm

alsa emerge problems

Post by boota »

Hi,

Newly booted up xbox w/ gentoox pro 1.4. I have emerge sync'ed and magic'ed everything except KDE, XFCE4 and mplayer. When I go to emerge alsa-driver 1.0.7r4 (which are claimed necessary by mythfrontend and mplayer both), I get the following error:

Anyone seen anything similar or know of a fix?

thanks


rm -f snd-sonicvibes.o
ld -r -o snd-sonicvibes.o sonicvibes.o
rm -f snd-via82xx.o
ld -r -o snd-via82xx.o via82xx.o
make -C ac97 modules
make[2]: Entering directory `/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/pci/ac97'
gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/include -I/usr/src/linux/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DEXPORT_SYMTAB -c ac97_codec.c
In file included from ac97_codec.c:1:
../../alsa-kernel/pci/ac97/ac97_codec.c: In function `snd_ac97_mixer':
../../alsa-kernel/pci/ac97/ac97_codec.c:1971: error: syntax error before '{' token
../../alsa-kernel/pci/ac97/ac97_codec.c:1898: warning: unused variable `name'
../../alsa-kernel/pci/ac97/ac97_codec.c:1899: warning: unused variable `end_time'
../../alsa-kernel/pci/ac97/ac97_codec.c:1900: warning: unused variable `reg'
../../alsa-kernel/pci/ac97/ac97_codec.c:1901: warning: unused variable `ops'
../../alsa-kernel/pci/ac97/ac97_codec.c: At top level:
../../alsa-kernel/pci/ac97/ac97_codec.c:1978: error: syntax error before "if"
../../alsa-kernel/pci/ac97/ac97_codec.c:2003: warning: type defaults to `int' in declaration of `snd_ac97_free'
../../alsa-kernel/pci/ac97/ac97_codec.c:2003: warning: parameter names (without types) in function declaration
../../alsa-kernel/pci/ac97/ac97_codec.c:2003: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2004: error: syntax error before "return"
../../alsa-kernel/pci/ac97/ac97_codec.c:2014: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2014: warning: type defaults to `int' in declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2014: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2014: error: conflicting types for `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:332: error: previous declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2014: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2015: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2017: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2017: warning: type defaults to `int' in declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2017: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2017: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2018: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2018: warning: type defaults to `int' in declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2018: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2018: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2019: warning: type defaults to `int' in declaration of `end_time'
../../alsa-kernel/pci/ac97/ac97_codec.c:2019: error: initializer element is not constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2019: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2020: error: syntax error before "do"
../../alsa-kernel/pci/ac97/ac97_codec.c:2024: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2024: warning: type defaults to `int' in declaration of `schedule_timeout'
../../alsa-kernel/pci/ac97/ac97_codec.c:2024: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2024: error: conflicting types for `schedule_timeout'
/usr/src/linux/include/linux/sched.h:157: error: previous declaration of `schedule_timeout'
../../alsa-kernel/pci/ac97/ac97_codec.c:2024: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2026: error: syntax error before string constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2026: warning: type defaults to `int' in declaration of `snd_verbose_printk'
../../alsa-kernel/pci/ac97/ac97_codec.c:2026: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2026: error: conflicting types for `snd_verbose_printk'
/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/include/sound/core.h:365: error: previous declaration of `snd_verbose_printk'
../../alsa-kernel/pci/ac97/ac97_codec.c:2026: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2035: warning: type defaults to `int' in declaration of `tmp'
../../alsa-kernel/pci/ac97/ac97_codec.c:2035: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2036: error: syntax error before "if"
../../alsa-kernel/pci/ac97/ac97_codec.c:2048: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2049: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2051: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2052: warning: type defaults to `int' in declaration of `end_time'
../../alsa-kernel/pci/ac97/ac97_codec.c:2052: error: redefinition of `end_time'
../../alsa-kernel/pci/ac97/ac97_codec.c:2019: error: `end_time' previously defined here
../../alsa-kernel/pci/ac97/ac97_codec.c:2052: error: initializer element is not constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2052: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2053: error: syntax error before "do"
../../alsa-kernel/pci/ac97/ac97_codec.c:2057: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2057: warning: type defaults to `int' in declaration of `schedule_timeout'
../../alsa-kernel/pci/ac97/ac97_codec.c:2057: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2057: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2059: error: syntax error before string constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2070: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2070: warning: type defaults to `int' in declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2070: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2070: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: warning: type defaults to `int' in declaration of `snd_ac97_determine_rates'
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: error: conflicting types for `snd_ac97_determine_rates'
../../alsa-kernel/pci/ac97/ac97_codec.c:1662: error: previous declaration of `snd_ac97_determine_rates'
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2108: error: syntax error before '->' token
../../alsa-kernel/pci/ac97/ac97_codec.c:2109: error: syntax error before '(' token
../../alsa-kernel/pci/ac97/ac97_codec.c:2116: error: syntax error before '->' token
../../alsa-kernel/pci/ac97/ac97_codec.c:2116: warning: type defaults to `int' in declaration of `strcat'
../../alsa-kernel/pci/ac97/ac97_codec.c:2116: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2116: error: conflicting types for `strcat'
/usr/src/linux/include/asm/string.h:67: error: previous declaration of `strcat'
../../alsa-kernel/pci/ac97/ac97_codec.c:2116: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2134: error: syntax error before '->' token
../../alsa-kernel/pci/ac97/ac97_codec.c:2134: warning: type defaults to `int' in declaration of `strcat'
../../alsa-kernel/pci/ac97/ac97_codec.c:2134: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2134: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2153: error: syntax error before numeric constant
../../alsa-kernel/pci/ac97/ac97_codec.c:2153: warning: type defaults to `int' in declaration of `snd_ac97_write_cache'
../../alsa-kernel/pci/ac97/ac97_codec.c:2153: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2153: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2155: warning: type defaults to `int' in declaration of `snd_ac97_proc_init'
../../alsa-kernel/pci/ac97/ac97_codec.c:2155: warning: parameter names (without types) in function declaration
../../alsa-kernel/pci/ac97/ac97_codec.c:2155: error: conflicting types for `snd_ac97_proc_init'
../../alsa-kernel/pci/ac97/ac97_local.h:57: error: previous declaration of `snd_ac97_proc_init'
../../alsa-kernel/pci/ac97/ac97_codec.c:2155: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2156: error: syntax error before "if"
../../alsa-kernel/pci/ac97/ac97_codec.c:2160: warning: type defaults to `int' in declaration of `rac97'
../../alsa-kernel/pci/ac97/ac97_codec.c:2160: error: `ac97' undeclared here (not in a function)
../../alsa-kernel/pci/ac97/ac97_codec.c:2160: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2162: error: syntax error before "if"
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: error: `bus' undeclared here (not in a function)
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: error: `ac97' undeclared here (not in a function)
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: warning: type defaults to `int' in declaration of `shared_codec'
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: error: conflicting types for `shared_codec'
../../alsa-kernel/pci/ac97/ac97_codec.c:221: error: previous declaration of `shared_codec'
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: error: `ac97' undeclared here (not in a function)
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2165: error: syntax error before '&' token
../../alsa-kernel/pci/ac97/ac97_codec.c:2165: warning: type defaults to `int' in declaration of `up'
../../alsa-kernel/pci/ac97/ac97_codec.c:2165: warning: function declaration isn't a prototype
../../alsa-kernel/pci/ac97/ac97_codec.c:2165: error: conflicting types for `up'
/usr/src/linux/include/asm/semaphore.h:202: error: previous declaration of `up'
../../alsa-kernel/pci/ac97/ac97_codec.c:2165: warning: data definition has no type or storage class
../../alsa-kernel/pci/ac97/ac97_codec.c:2164: error: storage size of `shared_codec' isn't known
../../alsa-kernel/pci/ac97/ac97_codec.c:1324: warning: `snd_ac97_mixer_build' defined but not used
../../alsa-kernel/pci/ac97/ac97_codec.c:1637: warning: `snd_ac97_modem_build' defined but not used
../../alsa-kernel/pci/ac97/ac97_codec.c:2081: warning: `snd_ac97_determine_rates' defined but not used
{standard input}: Assembler messages:
{standard input}:6139: Error: symbol `end_time' is already defined
make[2]: *** [ac97_codec.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/pci/ac97'
make[1]: *** [_modsubdir_ac97] Error 2
make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/pci'
make: *** [compile] Error 1

!!! ERROR: media-sound/alsa-driver-1.0.7-r4 failed.
[/img]
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

Alsa should already be installed, it has to be tweaked by magic to make it work. I would inject the alsa package so that portage thinks it is installed.

Code: Select all

emerge --inject media-sound/alsa-driver
If you keep an open mind, will your brain fall out?
Post Reply