When i tried to install portbunny i got this: >>> Emerging (1 of 1) net-analyzer/portbunny-1.0_p20080423 to / * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Could not detect kernel version. * Please ensure that /usr/src/linux points to a complete set of Linux sources. * * ERROR: net-analyzer/portbunny-1.0_p20080423 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * ebuild.sh, line 1244: Called linux-mod_pkg_setup * linux-mod.eclass, line 469: Called linux-info_pkg_setup * linux-info.eclass, line 595: Called die * The specific snippet of code: * get_version || die "Unable to calculate Linux Kernel version" * The die message: * Unable to calculate Linux Kernel version * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-analyzer/portbunny-1.0_p20080423/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/portbunny-1.0_p20080423/temp/die.env'. * * Messages for package net-analyzer/portbunny-1.0_p20080423: * Could not detect kernel version. * Please ensure that /usr/src/linux points to a complete set of Linux sources. * * ERROR: net-analyzer/portbunny-1.0_p20080423 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * ebuild.sh, line 1244: Called linux-mod_pkg_setup * linux-mod.eclass, line 469: Called linux-info_pkg_setup * linux-info.eclass, line 595: Called die * The specific snippet of code: * get_version || die "Unable to calculate Linux Kernel version" * The die message: * Unable to calculate Linux Kernel version * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-analyzer/portbunny-1.0_p20080423/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/portbunny-1.0_p20080423/temp/die.env'. * After some trying i saw that the KV_ variables in get_version are now filled by getfilevar. My kernel version is Linux 2.6.24-tuxonice-r9 #1 SMP emerge --info: Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r9 i686) ================================================================= System uname: 2.6.24-tuxonice-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Sun, 28 Sep 2008 21:45:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 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-r3 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=" -mtune=pentium4 -march=pentium4 -pipe -fomit-frame-pointer -O2 -mcpu=pentium4 -msse2 -mno-tls-direct-seg-refs" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS=" -mtune=pentium4 -march=pentium4 -pipe -fomit-frame-pointer -O2 -mcpu=pentium4 -msse2 -mno-tls-direct-seg-refs" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j4" PKGDIR="/usr/portage/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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa avahi berkdb bluetooth branding bz2 bzip2 cairo caps cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode escreen esd etwin evo fam firefox fortran gdbm gif gpm gstreamer gtk hal hardened iconv iproute2 ipv6 isdnlog jpeg kerberos libnotify logrotate mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session silc spell spl ssl startup-notification svg sysfs syslog tcl tcpd thread threads tiff tk truetype unicode usb vorbis win32codecs x86 xattr xgetdefault 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please post the output of `ls -l /usr/src/linux' too.
I'd like to have this bug reopened. I have the same problem when emerging app-emulation/virtualbox-modules-1.6.6-r1. ds9 ~ # ls -l /usr/src/linux lrwxrwxrwx 1 root root 22 7. Aug 12:10 /usr/src/linux -> linux-2.6.25-gentoo-r7 ds9 ~ # ls -l /usr/src/linux/ insgesamt 19920 drwxr-xr-x 4 root root 4096 1. Jan 16:51 arch drwxr-xr-x 2 root root 4096 1. Jan 16:51 block drwxr-xr-x 2 root root 4096 1. Jan 16:51 crypto drwxr-xr-x 38 root root 4096 1. Jan 16:51 drivers drwxr-xr-x 24 root root 12288 1. Jan 16:51 fs drwxr-xr-x 5 root root 4096 1. Jan 16:51 include drwxr-xr-x 2 root root 4096 1. Jan 16:50 init drwxr-xr-x 2 root root 4096 1. Jan 16:50 ipc drwxr-xr-x 5 root root 12288 1. Jan 16:50 kernel drwxr-xr-x 2 root root 12288 1. Jan 16:51 lib drwxr-xr-x 2 root root 4096 1. Jan 16:50 mm -rw-r--r-- 1 root root 2241 20. Dez 02:43 modules.order -rw-r--r-- 1 root root 240491 20. Dez 02:43 Module.symvers drwxr-xr-x 18 root root 4096 1. Jan 16:51 net drwxr-xr-x 5 root root 4096 1. Jan 16:51 scripts drwxr-xr-x 2 root root 4096 1. Jan 16:51 security drwxr-xr-x 18 root root 4096 1. Jan 16:51 sound -rw-r--r-- 1 root root 1419431 20. Dez 02:43 System.map drwxr-xr-x 2 root root 4096 1. Jan 16:50 usr drwxr-xr-x 3 root root 4096 7. Aug 09:35 virt -rwxr-xr-x 1 root root 11638831 20. Dez 02:43 vmlinux -rw-r--r-- 1 root root 11147424 20. Dez 02:43 vmlinux.o