Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55750 - alsa-lib-1.0.5-r2 dosnt like my kernel
Summary: alsa-lib-1.0.5-r2 dosnt like my kernel
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 21:13 UTC by Lee Trager
Modified: 2004-07-07 22:18 UTC (History)
1 user (show)

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 Lee Trager 2004-06-30 21:13:35 UTC
I just did an update and when alsa-lib went to update I get the following error.

>>> emerge (1 of 4) media-libs/alsa-lib-1.0.5-r2 to /
>>> md5 src_uri ;-) alsa-lib-1.0.5.tar.bz2
 * Checking sound headers for broken asound.h ... yes
 * Your version of:
 *   /usr/include/sound/asound.h
 * is broken (from a user space perspective).  Please apply
 * the following patch:

 * *******************************************************
--- asound.h.orig       2004-06-30 15:18:14.131997218 -0700
+++ asound.h    2004-06-30 15:19:05.599888165 -0700
@@ -61,6 +61,10 @@
 #include <sys/types.h>
 #endif
 
+#ifndef __user
+#define __user
+#endif
+
 /*
  *  protocol version
  */
 * *******************************************************
 * Youu should be able to do this by issuing the following commands:
 * cd /usr/include/sound
 * patch -p0 < /usr/portage/media-libs/alsa-lib/files/fix-asound_h.patch


!!! ERROR: media-libs/alsa-lib-1.0.5-r2 failed.
!!! Function pkg_setup, Line 62, Exitcode 0
!!! Broken sound/asound.h header included in kernel sources!

I am using the 2.6.7 vanalla kernel and I havnt made anythings to my kernel source. Here is my emerge info

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.4.20040619-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 1400MHz
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib aim alsa apm arts audiofile avi berkdb bonobo cdr crypt cups dvb dvd enable-gui encode esd foomaticdb gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod mng motif mozilla mpeg nas ncurses nls offensive oggvorbis opengl oscar oss pam pda pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tiff truetype usb videos wmf x86 xml2 xmms xv zlib"

Reproducible: Always
Steps to Reproduce:
1. emerge alsa-lib
Actual Results:  
You get the error discribe above.

Expected Results:  
Alsa-lib emerges
Comment 1 Ivan Trombley 2004-06-30 21:18:12 UTC
I'm getting the same error using gentoo-dev-sources-2.6.7-r7 on AMD64.
Comment 2 Ivan Trombley 2004-06-30 21:21:48 UTC
Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r7)
=================================================================
System uname: 2.6.7-gentoo-r7 x86_64 4
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -m64 -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 -maccumulate-outgoing-args -ftracer -finline-functions -frename-registers -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -m64 -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 -maccumulate-outgoing-args -ftracer -finline-functions -frename-registers -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 apm avi berkdb bonobo cdr crypt cups dga dvd dvdr encode esd fam fbcon foomaticdb gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml imlib jpeg libg++ libwww mikmod mozilla moznoirc mpeg ncurses nls nogcj nptl oggvorbis opengl pam pdflib perl png ppds python quicktime readline samba sdl slang spell ssl tcpd tiff truetype usb xml2 xv zlib"
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-01 04:49:18 UTC
right, so do what it says ;)
Comment 4 Alan Schmitt 2004-07-01 05:09:11 UTC
It'd be great if emerge was able to patch things automatically.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-01 12:45:03 UTC
That would violate policy.  One package should not trample another package.  Some exceptions are made for /etc/services and similar files, but DEFINITELY not the kernel.  Using media-sound/alsa-driver is the recommended way to use ALSA because of problems like this.
Comment 6 Lee Trager 2004-07-02 23:27:14 UTC
I thought the recommended why for 2.6 kernel users was use the drivers found in the kernel itself. Anyway could there be an option so when a package such as this needs to manilulate another package it comes up with some warning message like "Portage must change /path/to/file, /path/to/another/file are you sure you want to continue?"
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-02 23:38:38 UTC
file a bug with the portage devs... until then, it will remain as it currently is (an error message after emerging alsa-lib)
Comment 8 Brian Harring (RETIRED) gentoo-dev 2004-07-07 22:18:54 UTC
could potentially add a dep for appropriate headers to shut alsa-lib up...