Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2423 - sox dies when USE="alsa"
Summary: sox dies when USE="alsa"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-03 20:50 UTC by Troy Dack
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Dack 2002-05-03 20:50:47 UTC
Emerging sox dies when alsa is set as a USE flag.

Alsa packages installed:

gentoo root # qpkg -I alsa*
media-libs/alsa-lib-0.9.0_rc1 *
media-libs/alsa-oss-0.9.0_rc1 *
media-sound/alsa-driver-0.9.0_rc1-r5 *
media-sound/alsa-utils-0.9.0_rc1 *
media-sound/alsa-xmms-0.9 *

Error output from: emerge sox

gcc -march=i686 -O3 -pipe -fomit-frame-pointer -Wall -DALSA_PLAYER -DOSS_PLAYER
-DFAST_ULAW_CONVERSION -DFAST_ALAW_CONVERSION  -DHAVE_LIBM=1 -DHAVE_GETOPT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_BYTESWAP_H=1 -DHAVE_GETOPT=1
-DHAVE_STRERROR=1 -DHAVE_MEMMOVE=1 -DHAVE_RAND=1 -DHAVE_SYS_SOUNDCARD_H=1  -I. 
 -c -o alsa.o alsa.c
alsa.c:18: linux/asound.h: No such file or directory
alsa.c: In function `st_alsastartread':
alsa.c:137: `snd_pcm_channel_info_t' undeclared (first use in this function)
alsa.c:137: (Each undeclared identifier is reported only once
alsa.c:137: for each function it appears in.)
alsa.c:137: parse error before `c_info'
alsa.c:138: `snd_pcm_channel_params_t' undeclared (first use in this function)
alsa.c:140: `c_info' undeclared (first use in this function)
alsa.c:141: `SND_PCM_IOCTL_CHANNEL_INFO' undeclared (first use in this function)
alsa.c:157: `c_params' undeclared (first use in this function)
alsa.c:161: `SND_PCM_START_DATA' undeclared (first use in this function)
alsa.c:162: `SND_PCM_STOP_STOP' undeclared (first use in this function)
alsa.c:169: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
alsa.c:173: `SND_PCM_IOCTL_CHANNEL_PARAMS' undeclared (first use in this function)
alsa.c:174: `SND_PCM_IOCTL_CHANNEL_PREPARE' undeclared (first use in this function)
alsa.c:136: warning: `bps' might be used uninitialized in this function
alsa.c: In function `st_alsastartwrite':
alsa.c:188: `snd_pcm_channel_info_t' undeclared (first use in this function)
alsa.c:188: parse error before `p_info'
alsa.c:189: `snd_pcm_channel_params_t' undeclared (first use in this function)
alsa.c:191: `p_info' undeclared (first use in this function)
alsa.c:192: `SND_PCM_IOCTL_CHANNEL_INFO' undeclared (first use in this function)
alsa.c:207: `p_params' undeclared (first use in this function)
alsa.c:211: `SND_PCM_START_FULL' undeclared (first use in this function)
alsa.c:212: `SND_PCM_STOP_STOP' undeclared (first use in this function)
alsa.c:219: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
alsa.c:223: `SND_PCM_IOCTL_CHANNEL_PARAMS' undeclared (first use in this function)
alsa.c:224: `SND_PCM_IOCTL_CHANNEL_PREPARE' undeclared (first use in this function)
alsa.c:187: warning: `bps' might be used uninitialized in this function
alsa.c: In function `get_format':
alsa.c:239: `SND_PCM_FMT_U8' undeclared (first use in this function)
alsa.c:239: `SND_PCM_FMT_S8' undeclared (first use in this function)
alsa.c:245: `SND_PCM_FMT_S16' undeclared (first use in this function)
alsa.c:258: `SND_PCM_SFMT_S8' undeclared (first use in this function)
alsa.c:265: `SND_PCM_SFMT_U8' undeclared (first use in this function)
alsa.c:281: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
alsa.c:284: `SND_PCM_FMT_U16' undeclared (first use in this function)
alsa.c:288: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
make: *** [alsa.o] Error 1

!!! ERROR: the make command did not complete successfully.
!!! ("make")
!!! Since this is a critical task, ebuild will be stopped.

!!! emerge aborting on  /usr/portage/media-sound/sox/sox-12.17.1.ebuild .
Comment 1 Arcady Genkin (RETIRED) gentoo-dev 2002-05-11 13:45:22 UTC
This happens because it tries to find alsa-0.5.X headers.  This probably means
that sox does not support alsa 0.9.X.

I've committed ebuild for the new version (12.17.3), in which I disabled alsa
support.  But at least it should compile and install for everyone.

Thanks for the report.