configure: WARNING: sound/asound.h: present but cannot be compiled configure: WARNING: sound/asound.h: check for missing prerequisite headers? configure: WARNING: sound/asound.h: proceeding with the preprocessor's result #... later during the actual compile i get these errors In file included from alsa.c:32: /usr/include/sound/asound.h:140: error: syntax error before '*' token /usr/include/sound/asound.h:143: error: syntax error before '}' token /usr/include/sound/asound.h:149: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:451: error: variable or field `__user' declared void /usr/include/sound/asound.h:451: error: syntax error before '*' token /usr/include/sound/asound.h:453: error: syntax error before '}' token /usr/include/sound/asound.h:457: error: variable or field `__user' declared void /usr/include/sound/asound.h:457: error: syntax error before '*' token /usr/include/sound/asound.h:459: error: syntax error before '}' token /usr/include/sound/asound.h:484: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:485: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:486: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:487: error: invalid application of `sizeof' to an incomplete type /usr/include/sound/asound.h:781: error: syntax error before '*' token /usr/include/sound/asound.h:783: error: syntax error before '}' token /usr/include/sound/asound.h:845: error: invalid application of `sizeof' to an incomplete type make: *** [alsa.o] Error 1 make: *** Waiting for unfinished jobs.... Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: cleanly compiled program Expected Results: sox media-sound/sox-12.17.4-r2 +alsa +encode +mad +oggvorbis +oss
compiles fine with -alsa in the use flags..
emerge -uv sox. Looks like you have an old alsa-lib installed.
either that or you may need to re-emerge alsa-headers-1.0.6a