Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217918 - media-sound/alsa-utils-1.0.16: configure fails with cryptic message when ALSA_PCM_PLUGINS does not include "linear"
Summary: media-sound/alsa-utils-1.0.16: configure fails with cryptic message when ALSA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 09:20 UTC by Jürgen Pierau
Modified: 2012-01-26 11:54 UTC (History)
1 user (show)

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


Attachments
build log of failed alsa-utils configure (media-sound%3Aalsa-utils-1.0.20-r4%3A20090813-160904.log,4.00 KB, text/plain)
2009-08-13 16:43 UTC, Jürgen Pierau
Details
environment for the above build.log (environment,84.77 KB, text/plain)
2009-08-13 16:43 UTC, Jürgen Pierau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Pierau 2008-04-16 09:20:43 UTC
When media-libs/alsa-lib is compiled without the "linear" PCM_PLUGIN, alsa-utils compile will fail with the wrong message (no linkable libasound).

Reproducible: Always

Steps to Reproduce:
1. Remove "linear" from ALSA_PCM_PLUGINS. 
2. Compile alsa-libs
3. Compile alsa-utils

Actual Results:  
emerge -av alsa-utils
[...]
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.15... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.


Expected Results:  
Emerge should display an error message saying that alsa-utils will not work without the "linear" ALSA pcm plugin.


Not sure if this should be fixed in the packages depending on alsa-libs or in autoconf. A similar problem comes up with gnome-base/nautilus-2.20.0-r1 and media-sound/mpd-0.13.1 (and virtually everything that uses snd_ctl_open) and it might not be worth the hassle to fix this in all ebuilds concerned. Maybe media-libs/alsa-lib should warn about this problem? It *was* kind of stupid of me to omit "linear", I'll admit, and judging from gentoo-users and b.g.o, nobody else has had this problem yet.

Further info/logs:

*** emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 VIA Esther processor 1500MHz
Timestamp of tree: Wed, 16 Apr 2008 00:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=i686 -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/var/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.modulix.net/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en de"
PKGDIR="/var/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 asterisk berkdb bzip2 ccache cdparanoia cli cpudetection cracklib crypt cups custom-cflags distcc dri dts dv dvb dvd dvdread www.encode expat ffmpeg firefox fortran freetype ftp gd gdbm gif gnome gpm gs iconv imagemagick imap isdnlog jpeg kde kdeenablefinal kdehiddenvisibility lame live lm_sensors midi mmx mp3 mudflap multiuser mysql ncurses nls nopie nossp nptl nptlonly nsplugin offensive ogg openmp pam pcre pdf perl php png postgres pppd python quicktime readline real reflection regex samba session slang spl sse sse2 ssl svg swat syslog tcpd tetex theora threads tiff truetype unicode usb userlocales v4l v4l2 vhosts vorbis win32codecs x264 x86 xml xorg xvid zaptel zeroconf zip zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="alaw adpcm mulaw multi" APACHE2_MODULES="access auth auth_dbm auth_anon auth_digest authn_file authz_host alias filter file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique_id proxy proxy_connect proxy_ftp proxy_http info include cgi cgid dav dav-fs vhost_alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="none" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="vesa chrome"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


*** emerge -av alsa-utils
[...]
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.15... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.

*** relevant part of /var/tmp/portage/media-sound/alsa-utils-1.0.16/work/alsa-utils-1.0.16/config.log:
[...]
configure:6300: checking for snd_ctl_open in -lasound
configure:6335: i686-pc-linux-gnu-gcc -o conftest -Os -march=i686 -mmmx -msse -msse2 -msse3 -mfpmath=sse   conftest.c -lasound   -lasound -lm -ldl -lpthread
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libasound.so: undefined reference to `snd1_pcm_linear_put_index'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libasound.so: undefined reference to `snd1_pcm_linear_get_index'
collect2: ld returned 1 exit status
configure:6341: $? = 1
configure: failed program was:
| /* confdefs.h.  */
[...]
| int
| main ()
| {
| return snd_ctl_open ();
|   ;
|   return 0;
| }
configure:6359: result: no
configure:6369: error: No linkable libasound was found.
[...]
Comment 1 Tucker Bradford 2009-01-23 06:31:23 UTC
I've had this problem as well. Building xbmc and mythtv from svn also failed with alsa related issues. Both compile without trouble when the linear plugin is included.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2009-08-13 14:34:16 UTC
(In reply to comment #0)
> When media-libs/alsa-lib is compiled without the "linear" PCM_PLUGIN,
> alsa-utils compile will fail with the wrong message (no linkable libasound).

Looks like it's okay with 1.0.20
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2009-08-13 14:34:46 UTC
(In reply to comment #1)
> I've had this problem as well. Building xbmc and mythtv from svn also failed
> with alsa related issues. Both compile without trouble when the linear plugin
> is included.
> 

Also try 1.0.20, and either one reopen if still an issue.  Thanks guys
Comment 4 Jürgen Pierau 2009-08-13 16:43:19 UTC
Still no luck with alsa-lib-1.0.20, alsa-utils-1.0.20-r4.
build.log and ebuild environment attached.
If you need more info on my system, don't hesitate to ask...
Comment 5 Jürgen Pierau 2009-08-13 16:43:31 UTC
Created attachment 201151 [details]
build log of failed alsa-utils configure
Comment 6 Jürgen Pierau 2009-08-13 16:43:56 UTC
Created attachment 201153 [details]
environment for the above build.log
Comment 7 Jürgen Pierau 2009-08-13 16:50:07 UTC
Just a reminder: The problem is not that it fails but that I have to crawl into config.log to find out why. The error message displayed is wrong and confusing. libasound is present and linkable. It just does not have all the functions expected by configure.
Comment 8 Steve Dibb (RETIRED) gentoo-dev 2009-08-13 17:01:31 UTC
(In reply to comment #7)
> Just a reminder: The problem is not that it fails but that I have to crawl into
> config.log to find out why. The error message displayed is wrong and confusing.
> libasound is present and linkable. It just does not have all the functions
> expected by configure.
> 

Ah, okay, you had ALSA_PCM_PLUGINS='alaw adpcm mulaw multi pcm'.  I didn't see that.  With NO plugins, it works fine.

Frankly, I dont feel like tracking down the inter-dependencies between PCM plugins and alsa-utils so ......... patches welcome, if you can figure it out. :)

Comment 9 Tony Vroon (RETIRED) gentoo-dev 2012-01-26 11:54:08 UTC
This has been addressed by removing the ability to disable individual plugins in alsa-lib. There is such a thing as too much choice I am afraid.