After kernel upgrade from 2.6.25-r4 to 2.6.26 I'm not able to compile virtualbox-modules. This is the result: /var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function ‘RTMemContAlloc’: /var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:253: error: implicit declaration of function ‘change_page_attr’ make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/work/vboxdrv] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.26-gentoo' make: *** [vboxdrv] Error 2 * * ERROR: app-emulation/virtualbox-modules-1.5.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3402: Called linux-mod_src_compile * environment, line 2560: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/2.6.26-gentoo/build all * * 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/app-emulation/virtualbox-modules-1.5.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.5.4/temp/environment'. * Reproducible: Always Steps to Reproduce: 1.emerge virtualbox-modules Actual Results: Nothing happens, I obtain every time the same error. Expected Results: Package should compile fine instead. Here relevant part of my make.conf file: CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3" AUTOCLEAN="yes" FEATURES="ccache parallel-fetch" PORTDIR_OVERLAY="/usr/local/portage" USE="acpi -arts bash-completion bluetooth bzip2 cdparanoia crypt cscope ctype cups dga directfb doc dri -eds emacs -emboss fbcon foomaticdb gimp -gnome ieee1394 -kerberos -ldap lm_sensors motif nsplugin java javascript -kde -oss pam pcmcia pdf ppds -qt4 scanner sse sse2 startup-notification svg svga symlink tetex tiff unicode usb wifi xpm xinerama xscreensaver xulrunner"
Provide `emerge --info`, please.
(In reply to comment #1) > Provide `emerge --info`, please. > Sure, sorry! :-) Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo i686) ================================================================= System uname: 2.6.26-gentoo i686 Genuine Intel(R) CPU T2500 @ 2.00GHz Timestamp of tree: Fri, 25 Jul 2008 13:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 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="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirrors.xservers.ro/gentoo/ http://ftp.ds.karen.hj.se/gentoo/" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="it" MAKEOPTS="-j3" 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/portage/local/layman/gechi /usr/local/portage" SYNC="rsync://rsync.it.gentoo.org/gentoo-portage" USE="X acl acpi alsa bash-completion berkdb bluetooth bzip2 cairo cdparanoia cdr cli cracklib crypt cscope ctype cups dbus dga directfb doc dri dvd dvdr dvdread emacs encode esd evo fam fbcon firefox foomaticdb fortran gdbm gif gimp gpm gstreamer gtk hal iconv ieee1394 ipv6 isdnlog java javascript jpeg lm_sensors mad midi mikmod motif mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection scanner sdl session spell spl sse sse2 ssl startup-notification svg svga symlink tcpd tetex tiff truetype unicode usb vorbis wifi win32codecs x86 xinerama xml xorg xpm xscreensaver xulrunner xv zlib" ALSA_CARDS="hda-intel" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="vesa fbdev i810 vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Maybe this can help: http://www.virtualbox.org/ticket/1263 It seems to be the answer, of course. I've to try that...
Created attachment 161468 [details, diff] virtualbox-modules-1.5.4 patch for kernel 2.6.26 This is the suggested patch on virtualbox related site. It seems to work fine.
Above suggested patch work fine and solve the problem. Switch to the newer version also seems to be a solution. I think the bug is fixed. Do you think so? ;-)
(In reply to comment #5) > Above suggested patch work fine and solve the problem. > Switch to the newer version also seems to be a solution. > I think the bug is fixed. Do you think so? ;-) > Hi, the problem is the same described in bug #218198, a workaround is possible but unsafe due the several api changes in kernels >=2.6.25. Are you using VirtualBox-1.5.4 for some specific reason? my suggestion is to try/use the last version available (1.6.2)
(In reply to comment #6) > Hi, > the problem is the same described in bug #218198, > a workaround is possible but unsafe due the several api changes > in kernels >=2.6.25. > > Are you using VirtualBox-1.5.4 for some specific reason? > my suggestion is to try/use the last version available (1.6.2) > I'm using version 1.5.4 because that is the stable version. That's all. ;-) Using proposed patch all works fine, but of course it is only a workaround and (maybe) unsafe solution. Anymore, actually it seems to be the better one.