Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 166046

Summary: kdemultimedia-3.5.6: asoundlib.h not found (forgot to include library path?)
Product: Gentoo Linux Reporter: Urs Hunkeler <urs.hunkeler>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixed typo

Description Urs Hunkeler 2007-02-09 10:29:05 UTC
While trying to emerge kdemultimedia, the process aborts with an error message that asoundlib.h was not found, followed by a series of other error messages (which are likely caused by the headerfile not being found).

Reproducible: Always

Steps to Reproduce:
emerge --update kdemultimedia
Actual Results:  
Does not compile.

...
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../arts/runtime -I./freeverb -I/usr/kde/3.5/include/arts -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium-m -pipe -msse3 -ffast-math -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o alsamidigateway_impl.lo alsamidigateway_impl.cc
alsamidigateway_impl.cc:37:23: error: asoundlib.h: No such file or directory
alsamidiport_impl.h:50: error: ISO C++ forbids declaration of 'snd_seq_t' with no type
alsamidiport_impl.h:50: error: expected ';' before '*' token
alsamidiport_impl.h:56: error: 'snd_seq_addr_t' does not name a type
alsamidiport_impl.h:57: error: 'snd_seq_addr_t' does not name a type
...

Expected Results:  
Should compile.

asoundlib.h is found in the following locations:
/usr/include/sys/asoundlib.h
/usr/include/alsa/asoundlib.h


Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r1 i686)
=================================================================
System uname: 2.6.19-gentoo-r1 i686 Genuine Intel(R) CPU           T2600  @ 2.16GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 09 Feb 2007 08:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -msse3 -fomit-frame-pointer -ffast-math"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe -msse3 -fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="de en en_GB fr it es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm arts berkdb bitmap-fonts bz2 cdr cli cracklib crypt cups dri dvd dvdread eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 iconv imlib isdnlog java jpeg kde libg++ libwww mad midi mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection scanner sdl session spell spl sse ssl tcpd truetype truetype-fonts type1-fonts udev vorbis x86 xine xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB fr it es" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Prager 2007-02-09 12:15:49 UTC
Created attachment 109623 [details, diff]
fixed typo

--- ./kdemultimedia-3.5.6-alsa-tests.patch      2007-02-09 13:07:47.000000000 +0100
+++ ./kdemultimedia-3.5.6-alsa-tests.patch.fix  2007-02-09 13:06:15.000000000 +0100
@@ -90,7 +90,7 @@
 -    AC_DEFINE(HAVE_ARTS_LIBASOUND, 1, [Define if you have libasound.so.1 (required for ALSA 0.5.x support)])
 +  elif test "x$have_alsa05" = "xyes"; then
 +    have_alsa="yes"
-+    AC_CEHCK_HEADERS([sys/asoundlib.h])
++    AC_CHECK_HEADERS([sys/asoundlib.h])
 +    AC_DEFINE(HAVE_LIBASOUND1, 1, [Define if you have libasound.so.1 (required for ALSA 0.5.x support)])
 +    ALSA_LIBS="-lasound"
    fi
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-09 12:31:26 UTC

*** This bug has been marked as a duplicate of bug 165932 ***