I was following the gentoo sound install guide and alsa-utils fails with this error (using gcc-3.2.1-r6): gcc -march=athlon -O3 -pipe -o alsamixer alsamixer.o -lncurses -lasound -lm -ldl -lpthread alsamixer.o(.text+0x2df9): In function `mixer_reinit': : undefined reference to `snd_mixer_selem_is_enumerated' alsamixer.o(.text+0x443c): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_get_enum_item' alsamixer.o(.text+0x444c): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_get_enum_items' alsamixer.o(.text+0x446f): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_set_enum_item' alsamixer.o(.text+0x449b): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_get_enum_item' alsamixer.o(.text+0x44af): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_get_enum_items' alsamixer.o(.text+0x44da): In function `mixer_write_cbar': : undefined reference to `snd_mixer_selem_set_enum_item' alsamixer.o(.text+0x597f): In function `mixer_update_cbar': : undefined reference to `snd_mixer_selem_get_enum_item' alsamixer.o(.text+0x59b1): In function `mixer_update_cbar': : undefined reference to `snd_mixer_selem_get_enum_item_name' collect2: ld returned 1 exit status make[1]: *** [alsamixer] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-utils-0.9.0_rc6/work/alsa-utils-0.9.0rc6/alsamixer' make: *** [all-recursive] Error 1 !!! ERROR: media-sound/alsa-utils-0.9.0_rc6 failed. !!! Function src_compile, Line 20, Exitcode 2 !!! Parallel Make Failed
Please try changing CFLAGS to "-march=i686 -O2 -pipe" and recompiling. If that doesn't work, post the output of "emerge info".
Changing CFLAGS to "-march=i686 -O2 -pipe" did allow me to compile. Since no one else has complained of this bug, and since it's compilable with these generic CFLAGS, then I'm going to close it.... Thanks!
db fix