Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245624 - stabilize app-emulation/virtualbox-modules-1.6.6-r1 (was: app-emulation/virtualbox-modules-1.6.6 fails to compile against kernel 2.6.27)
Summary: stabilize app-emulation/virtualbox-modules-1.6.6-r1 (was: app-emulation/virtu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL: http://www.virtualbox.org/changeset/1...
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks: 242708 251670
  Show dependency tree
 
Reported: 2008-11-05 08:47 UTC by Gordon Malm (RETIRED)
Modified: 2009-10-31 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
virtualbox-1.6.6-kernel-2.6.27.patch (virtualbox-1.6.6-kernel-2.6.27.patch,2.85 KB, patch)
2008-11-05 08:49 UTC, Gordon Malm (RETIRED)
Details | Diff
Revbump, apply patch for >= 2.6.27 instead of just = 2.6.27 (virtualbox-modules-1.6.6-r1.ebuild-r2.patch,321 bytes, patch)
2009-05-30 19:53 UTC, CyberLeo Kitsana
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Malm (RETIRED) gentoo-dev 2008-11-05 08:47:49 UTC
app-emulation/virtualbox-modules-1.6.6 fails to compile against kernel 2.6.27.  I'll be attaching patch from URL field.  Compiles fine with the patch and virtualbox-bin also works to boot .vdi's.

emerge --info:
Portage 2.1.4.5 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.27-hardened-2008110402 i686)
=================================================================
System uname: 2.6.27-hardened-2008110402 i686 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Timestamp of tree: Wed, 05 Nov 2008 01:46: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.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
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.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
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="-march=nocona -O2 -fweb -fomit-frame-pointer -fno-ident -pipe"
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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fweb -fomit-frame-pointer -fno-ident -pipe -fno-stack-protector -fno-stack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="distclean distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.datapipe.net/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.netnitco.net/ http://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo/"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --exclude-from=/etc/portage/rsync_excludes"
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/sunrise /usr/local/portage"
SYNC="rsync://*yoink*(private)/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi adns alsa ao apache2 audiofile audit bash-completion bcmath berkdb bidi blas bluetooth bzip2 cairo calendar canna caps cdb cddb cdinstall cdparanoia cdr cjk clamav cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbm dbus dbx dedicated directfb djvu doc dri dts dv dvb dvd dvdr dvdread encode enscript evo exif expat fam fbcon ffmpeg fftw firefox flac flash flatfile fltk fontconfig foomaticdb fortran freetds freewnn ftp gcj gd gdbm geoip ggi gif gimp ginac glut gmp gnome gnuplot gnutls gphoto2 gpm gps graphviz gsl gstreamer gtk gtkhtml guile hal hardened hddtemp hdf5 iconv idn ieee1394 imagemagick imap imlib inifile ipod ipv6 jack java java5 java6 javascript jbig joystick jpeg jpeg2k kde kerberos ladspa lame lapack lash latex lcms ldap libcaca libgda libnotify libsamplerate libwww lirc lm_sensors logrotate lua lzo mad maildir mailwrapper matroska mbox memlimit mhash midi mikmod mime mmap mmx mmxext mng modplug mono motif mp3 mpeg mpi mplayer mtp musepack musicbrainz nas ncurses neXt netboot netcdf nis nls nntp nocd nptl nptlonly nsplugin ocaml ocamlopt offensive ofx ogg openal openexr opengl osc pam pcntl pcre pda pdf perl php pic plotutils png portaudio posix ppds pulseaudio python qdbm qt3 qt4 quicktime radius rdesktop readline recode rss ruby samba sasl scanner sdl seamonkey session sftp sharedext sharedmem shorten simplexml skey slang slp smartcard smp sndfile snmp soap sockets socks5 sox speex spell spl sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion svg svga syslog sysvipc szip taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype unicode urandom usb v4l v4l2 vcd vhosts videos vim-syntax vnc vorbis wavpack wddx wifi win32codecs wma wmf wxwindows x264 x86 xattr xcomposite xface xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xscreensaver xsl xv xvid xvmc yaz zlib" ALSA_CARDS="au8820 ca0106 emu10k1 hda-intel" 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev nv nvidia v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Failure: i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/.alloc-r0drv-linux.o.d  -nostdinc -isystem
 /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include -D__KERNEL__ -Iinclude  -I/usr/src/linux-2.6.27-hardened-2008110402/arch/x86/include -include include/linux/a
utoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mr
egparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -
pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-fr
ame-pointer -Wdeclaration-after-statement -I/usr/src/linux/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/ -I/var/tmp/porta
ge/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/include -I/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux -D__KERNE
L__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DM
ODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(alloc_r0drv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /var/tmp/portage/app-emulation/v
irtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.o /var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc
-r0drv-linux.c
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function `rtMemAlloc':
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:138: error: `_PAGE_KERNEL_EXEC' undeclared (first use
in this function)
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:138: error: (Each undeclared identifier is reported on
ly once
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:138: error: for each function it appears in.)
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.6.6/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.6.6/work/vboxdrv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-hardened-2008110402'
make: *** [vboxdrv] Error 2
 *
 * ERROR: app-emulation/virtualbox-modules-1.6.6 failed.
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2008-11-05 08:49:21 UTC
Created attachment 170786 [details, diff]
virtualbox-1.6.6-kernel-2.6.27.patch

IMO, revbump is probably best in the case of this patch.

+src_compile() {
+       # kernel 2.6.27 support
+       epatch "${FILESDIR}/virtualbox-1.6.6-kernel-2.6.27.patch"
+
+       linux-mod_src_compile
+}
+
Comment 2 Alessio Cassibba (X-Drum) 2008-11-10 00:46:10 UTC
Thanks for your report,
patch tested, ebuild revbumped and added to jokey's overlay[1]

[1] http://overlays.gentoo.org/dev/jokey/
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2008-12-09 21:15:26 UTC
Reminder to maintainers: 2.6.27 is planned to go stable on December 15th, it would be great if you could work on this before then
Comment 4 Alessio Cassibba (X-Drum) 2008-12-18 23:19:55 UTC
(In reply to comment #3)
> Reminder to maintainers: 2.6.27 is planned to go stable on December 15th, it
> would be great if you could work on this before then
> 

virtualbox-modules-1.6.6-r1.ebuild was commited to the tree and includes this patch, thanks to Flameeyes for the proxy commit (since i don't have access to the tree)
Comment 5 Markus Meier gentoo-dev 2008-12-25 14:55:32 UTC
needed for bug #251670, please do.
Comment 6 Markus Meier gentoo-dev 2008-12-25 15:46:54 UTC
x86 stable
Comment 7 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-12-25 15:50:29 UTC
amd64 stable.
Comment 8 CyberLeo Kitsana 2009-05-30 19:53:04 UTC
Created attachment 193005 [details, diff]
Revbump, apply patch for >= 2.6.27 instead of just = 2.6.27

virtualbox-modules-1.6.6-r1 fails again with kernel 2.6.28.
Comment 9 Felix Büttner 2009-06-11 12:03:03 UTC
(In reply to comment #8)
> Created an attachment (id=193005) [edit]
> Revbump, apply patch for >= 2.6.27 instead of just = 2.6.27
> 
> virtualbox-modules-1.6.6-r1 fails again with kernel 2.6.28.
> 

and 2.6.29 too. Any fixes to that?
Comment 10 M 2009-10-31 15:39:08 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created an attachment (id=193005) [edit] [details]
> > Revbump, apply patch for >= 2.6.27 instead of just = 2.6.27
> > 
> > virtualbox-modules-1.6.6-r1 fails again with kernel 2.6.28.
> > 
> 
> and 2.6.29 too. Any fixes to that?
> 

and 2.6.30 too, the fix for 2.6.27 works fine tho, 

It's a pain to have to handhack this everytime, can we have the ebuild sorted for >= 2.6.27 instead of just = 2.6.27

Thanks!