[Pkg-virtualbox-devel] Bug#456464: virtualbox-ose: please add kernel 2.6.24 compatibility
Stefan Lippers-Hollmann
s.L-H at gmx.de
Sun Dec 16 00:58:38 UTC 2007
Package: virtualbox-ose
Version: 1.5.2-dfsg2-4
Severity: wishlist
Tags: patch
*** Please type your report below this line ***
Building virtualbox-ose-source and virtualbox-ose-guest-source against
kernel 2.6.24 fails with the following error message:
mkdir -p /tmp/pkg/modules/virtualbox-ose/.tmp_versions ; rm -f /tmp/pkg/modules/virtualbox-ose/.tmp_versions/*
kmk -f scripts/Makefile.build obj=/tmp/pkg/modules/virtualbox-ose
gcc -Wp,-MD,/tmp/pkg/modules/virtualbox-ose/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/pkg/linux/include -I/tmp/pkg/modules/virtualbox-ose/ -I/tmp/pkg/modules/virtualbox-ose/include -I/tmp/pkg/modules/virtualbox-ose/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITHOUT_IDT_PATCHING -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/pkg/modules/virtualbox-ose/linux/.tmp_SUPDrv-linux.o /tmp/pkg/modules/virtualbox-ose/linux/SUPDrv-linux.c
In file included from /tmp/pkg/modules/virtualbox-ose/include/iprt/types.h:72,
from /tmp/pkg/modules/virtualbox-ose/include/VBox/types.h:21,
from /tmp/pkg/modules/virtualbox-ose/SUPDRV.h:26,
from /tmp/pkg/modules/virtualbox-ose/linux/SUPDrv-linux.c:22:
include/linux/types.h:40: error: redefinition of typedef 'uintptr_t'
/tmp/pkg/modules/virtualbox-ose/include/iprt/stdint.h:118: error: previous declaration of 'uintptr_t' was here
In file included from include/linux/thread_info.h:33,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from /tmp/pkg/modules/virtualbox-ose/SUPDRV.h:87,
from /tmp/pkg/modules/virtualbox-ose/linux/SUPDrv-linux.c:22:
include/linux/bitops.h:6:1: warning: "BIT" redefined
In file included from /tmp/pkg/modules/virtualbox-ose/include/VBox/cdefs.h:20,
from /tmp/pkg/modules/virtualbox-ose/SUPDRV.h:25,
from /tmp/pkg/modules/virtualbox-ose/linux/SUPDrv-linux.c:22:
/tmp/pkg/modules/virtualbox-ose/include/iprt/cdefs.h:1042:1: warning: this is the location of the previous definition
kmk[6]: *** [/tmp/pkg/modules/virtualbox-ose/linux/SUPDrv-linux.o] Error 1
kmk[5]: *** [_module_/tmp/pkg/modules/virtualbox-ose] Error 2
kmk[5]: Leaving directory `/tmp/pkg/linux-2.6.24-rc4-git5-slh64-smp-1'
kmk[4]: *** [vboxdrv] Error 2
Following Innotek's upstream CVS, the following commits apply to debian's
virtualbox-ose 1.5.2-dfsg2-4 package:
r5605 | vboxsync | 2007-11-01 17:09:26 +0100 (Do, 01 Nov 2007) | 2 lines
BIT => RT_BIT, BIT64 => RT_BIT_64. BIT() is defined in Linux 2.6.24
r5704 | vboxsync | 2007-11-12 14:45:29 +0100 (Mo, 12 Nov 2007) | 1 line
Runtime: extended the types.h linux hack to include uintptr_t, which is typedefed in the Linux 2.6.24 headers
r5765 | vboxsync | 2007-11-15 21:43:25 +0100 (Do, 15 Nov 2007) | 2 lines
2.6.24-rc2 compile fixes
While r5704 and r5765 apply without changes, the pretty invasive
BIT => RT_BIT and BIT64 => RT_BIT_64 conversion cannot be mapped directly
between current virtualbox svn and virtualbox-ose 1.5.2-dfsg2-4 but needed
to be redone from scratch (r6038 does not apply to debian).
The attached patch has been reviewed thouroughly and tested without
complaints on kernel 2.6.23 and current 2.6.24 git snapshots by at least
614 users on amd64 (~24%) and i386 (~76%) over the last 3 days (6 days
internally).
Regards
Stefan Lippers-Hollmann
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-rc5-git3-slh64-smp-1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages virtualbox-ose depends on:
ii adduser 3.105 add and remove users and groups
ii lib32gcc1 1:4.2.2-4 GCC support library (32 bit Versio
ii lib32stdc++6 4.2.2-4 The GNU Standard C++ Library v3 (3
ii libc6 2.7-4 GNU C Library: Shared libraries
ii libc6-i386 2.7-4 GNU C Library: 32bit shared librar
ii libgcc1 1:4.2.2-4 GCC support library
ii libgl1-mesa-glx [libgl1] 7.0.2-2 A free implementation of the OpenG
ii libglib2.0-0 2.14.4-2 The GLib library of C routines
ii libidl0 0.8.8-0.1 library for parsing CORBA IDL file
ii libqt3-mt 3:3.3.7-9 Qt GUI Library (Threaded runtime v
ii libsdl1.2debian 1.2.12-2 Simple DirectMedia Layer
ii libstdc++6 4.2.2-4 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxalan110 1.10-3.1 Provides XSLT support for applicat
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxerces27 2.7.0-5 validating XML parser library for
ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library
Versions of packages virtualbox-ose recommends:
ii virtualbox-os 1.5.2-dfsg2-4+1 VirtualBox modules for Linux (kern
ii virtualbox-os 1.5.2-dfsg2-4+1 VirtualBox modules for Linux (kern
ii virtualbox-os 1.5.2-dfsg2-4+1 VirtualBox modules for Linux (kern
ii virtualbox-os 1.5.2-dfsg2-4 Source for the VirtualBox module
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12-kcompat-2.6.24.dpatch
Type: application/x-shellscript
Size: 256311 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20071216/b1db5781/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20071216/b1db5781/attachment-0001.pgp
More information about the Pkg-virtualbox-devel
mailing list