Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33846 - alsa-driver-0.9.0_rc2 complaints about the lack of full kernel sources.
Summary: alsa-driver-0.9.0_rc2 complaints about the lack of full kernel sources.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 10:49 UTC by Miguel Sousa Filipe
Modified: 2006-02-04 06:04 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 Miguel Sousa Filipe 2003-11-19 10:49:10 UTC
the error is this, and it's in the ./configure of alsa-driver.

checking whether gcc needs -traditional... no
checking for current directory... /var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2
checking cross compile... 
checking for directory with kernel source... /usr/src/linux
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

!!! ERROR: media-sound/alsa-driver-0.9.0_rc2 failed.
!!! Function src_compile, Line 58, Exitcode 1
!!! ./configure failed

newton linux # vim /usr/portage/media-sound/alsa-driver/alsa-driver-0.9.0_rc2.ebuild 

I have reported a similar problem with iproute, wich also said that I must have my kernel sources compiled.(bug http://bugs.gentoo.org/show_bug.cgi?id=33831)

The problem is that my kernel sources are configured, compiled and properly laid out on /usr/src/linux

newton linux # emerge info
Portage 2.0.49-r15 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ben2)
=================================================================
System uname: 2.4.22-ben2 ppc 
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox usersandbox ccache distcc userpriv fixpackages"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
USE="oss dvd xv libwww jpeg nls mitshm gif png truetype ppc cups foomaticdb gnome-libs gdbm berkdb slang readline arts tcltk sdl gpm tcpd perl python esd imlib oggvorbis motif opengl mozilla radeon cdr zlib pam crypt ssl kerberos ldap ipv6 java junit acl threads xft X gtk gtk2 ncurses moznoirc moznocompose avi mpeg quicktime tiff -kde -qt -gnome alsa -selinux"

Miguel
Comment 1 Luca Barbato gentoo-dev 2003-11-19 16:35:37 UTC
from the /usr/src/linux dir

please try 

make include/linux/version.h

and try to emerge it again.
Comment 2 Miguel Sousa Filipe 2003-11-20 03:48:23 UTC
newton linux # make include/linux/version.h
make: `include/linux/version.h' is up to date.

and still the same error>
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

newton linux # ll /usr/src/linux/include/linux/version.h
-rw-rw----    1 root     root          131 Nov 16 01:57 /usr/src/linux/include/linux/version.h

Comment 3 David Holm (RETIRED) gentoo-dev 2004-02-15 07:26:19 UTC
Please try a newer alsa-driver ebuild as this one is getting dated and preferably using ppc-sources or ppc-sources-dev as these are the recommended 2.4-branch kernel sources.