Portage 2.1.7.4 (default/linux/amd64/10.0/desktop, gcc-4.3.2, glibc-2.11-r0, 2.6.31-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r2-x86_64-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 12 Nov 2009 16:45:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4, 3.1.1-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/X11/xkb /var/lib/hsqldb /var/spool/fax/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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo " LANG="C" LDFLAGS="-Wl,-O1" LINGUAS="en pt de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="64bit X a52 aac acl acpi addressbook alsa amd64 applet auctex autotrace avahi bash-completion berkdb bluetooth branding bzip2 cairo capi caps cdda cddb cdr cdrom chipcard cleartype cli consolekit context cracklib crypt css csv cups cupsddk curl daap dbus deskbar detex disk-partition djvu dri dts dvb dvd dvdr dvi2tty dvipdfm ebook ecsteve ecsteve2 eds elf elisp emacs emacs22icons emboss encode evo exif expat extra extra-algorithms extras extratools faac faad fam fat fax ffmpeg fftw firefox firefox3 flac flash flickr fltk fontconfig fontforge foomatic foomaticdb fortran fuse games gconf gdbm ggi gif gimp gmp gnome gnutls gpm graphics graphviz gs gsf gstreamer gtk guile h323 hal hbci humanities iconv int64 ipv6 jadetex java java6 javascript jpeg jpeg2k karma kdrive kpathsea lame latex latex3 ldap libextractor libffi libnotify libssh2 lua mad md5sum mikmod mmx modules mono mp3 mp4 mpeg mpi mtp mudflap multilib music mysql nautilus ncurses networking nls nptl nptlonly nsplugin ntfs odk ofx ogg omega opengl openmp pam pango pcre pdf perl plotutils png ppds pppd preview-latex pstricks publishers python qt3 qt3support qt4 quicktime quotes readline reflection reiser4 reiserfs scanner science sdl server session sip smp sourceview speex spell spl sqlite sqlite3 srtp sse sse2 ssl startup-notification stats subversion svg swig sysfs taglib tcl tcpd templates tex tex4ht theora thunar tiff tk toolkit-scroll-bars tracker truetype type3 unicode usb vorbis wav webkit wifi wmf wxwidgets x264 xcomposite xft xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul 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="en pt de" USERLAND="GNU" VIDEO_CARDS="vesa nvidia fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always Steps to Reproduce: 1. Emerge virtualbox and the modules 2. Emerge discusses problem with System.map and tells that you need to run depmod manually. 3. I run `sudo depmod` 4. I get: $ sudo modprobe vboxdrv FATAL: Error inserting vboxdrv (/lib/modules/2.6.31-gentoo-r2/misc/vboxdrv.ko): Invalid module format Actual Results: $ sudo modprobe vboxdrv FATAL: Error inserting vboxdrv (/lib/modules/2.6.31-gentoo-r2/misc/vboxdrv.ko): Invalid module format Expected Results: Module loaded properly.
This looks like your kernel symlink ( /usr/src/linux ) is wrong or something else is missing. "dmesg" should give a bit more information why this doesn't work.
From dmesg I get: vboxdrv: no symbol version for module_layout
This looks like your running kernel and /usr/src/linux are not the same, so the module can't work. Please make sure that this is all correct.
I know that and as far as I know the kernel I emerged the modules with is the same as the kernel I am trying to load the modules.
Created attachment 210580 [details] Log file of interaction to module loading
Check attachment 210580 [details]. What else do you need?
Try with a fresh kernel 2.6.31-r6 and symlink. Recompile and install the kernel, boot into it and Emerge virtualbox and the modules, any luck?
It works after compiling r6. Wonder why...