My system is kbuild enabled, i.e. the kernel is not built into the standard /usr/src/linux directory. Only the sourced are here. The kernel aoutput is in /var/tmp/kernel-output/2.6.9-gentoo-r1, the environment variable KBUILD_OUTPUT is set correctly. When emerging alsa-driver, the process fails: 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 /lib/modules/2.6.9-gentoo-r1/build). !!! ERROR: media-sound/alsa-driver-1.0.6a failed. In fact the missing file is in /var/tmp/kernel-output/2.6.9-gentoo-r1/include/linux/version.h which is correct on my system.
There is no need to emerge alsa-driver on 2.6 Kernel systems, see bug #70068. This bug can be marked invalid.
There is a need to use alsa-driver on 2.6 systems when the included version of the kernel does not work... Please file this bug on the alsa bug tracking site, and let me know the URL to the bug so I can follow up.
This bug has been filed at the alsa bug tracking system: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=638
This comment has been added to the alsa bug: > ---------------------------------------------------------------------- > tiwai - 11-09-04 10:50 > ---------------------------------------------------------------------- > Try to specify the kernel source directory with --with-kernel > configure option. > Also, try 1.0.7rc2. Some improvements have been done since 1.0.6. So it seems still to be a problem of the gentoo ebuild system, as on the emerge level I cannot provide an configure option like --with-kernel