You are not logged in.

#1 2008-02-11 09:04:28

Skittles
Member
From: Bochum (Ger)
Registered: 2007-07-21
Posts: 36

Vbox Kernel Module and .24

Hi,

does someone else have the problem that he isn't able to build the virtualbox kernel module with the .24 kernel?

[root@arch holger]# vbox_build_module
Building Virtualbox-1.5.2 kernel modules for kernel 2.6.24-ARCH #1 SMP PREEMPT Sun Feb 10 15:21:33 UTC 2008
for f in . linux r0drv r0drv/linux; do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
rm -rf .vboxdrv* .tmp_ver* vboxdrv.* Module.symvers Modules.symvers
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/opt/VirtualBox-1.5.2/src SRCROOT=/opt/VirtualBox-1.5.2/src modules
make[1]: Entering directory `/usr/src/linux-2.6.24-ARCH'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /opt/VirtualBox-1.5.2/src/.tmp_versions ; rm -f /opt/VirtualBox-1.5.2/src/.tmp_versions/*
make -f scripts/Makefile.build obj=/opt/VirtualBox-1.5.2/src
  gcc -m32 -Wp,-MD,/opt/VirtualBox-1.5.2/src/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-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 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-x86/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign   -I/lib/modules/2.6.24-ARCH/build/include  -I/opt/VirtualBox-1.5.2/src/ -I/opt/VirtualBox-1.5.2/src/include -I/opt/VirtualBox-1.5.2/src/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -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 /opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.o /opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.c
In file included from /opt/VirtualBox-1.5.2/src/include/iprt/types.h:72,
                 from /opt/VirtualBox-1.5.2/src/include/VBox/types.h:21,
                 from /opt/VirtualBox-1.5.2/src/SUPDRV.h:26,
                 from /opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.c:22:
include/linux/types.h:40: Fehler: Redefinition des typedef »uintptr_t«
/opt/VirtualBox-1.5.2/src/include/iprt/stdint.h:118: Fehler: Vorherige Deklaration von »uintptr_t« war hier
In Datei, eingefügt von include/linux/thread_info.h:33,
                 von include/linux/preempt.h:9,
                 von include/linux/spinlock.h:49,
                 von /opt/VirtualBox-1.5.2/src/SUPDRV.h:87,
                 von /opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.c:22:
include/linux/bitops.h:6:1: Warnung: »BIT« redefiniert
In Datei, eingefügt von /opt/VirtualBox-1.5.2/src/include/VBox/cdefs.h:20,
                 von /opt/VirtualBox-1.5.2/src/SUPDRV.h:25,
                 von /opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.c:22:
/opt/VirtualBox-1.5.2/src/include/iprt/cdefs.h:1042:1: Warnung: dies ist die Stelle der vorherigen Definition
make[2]: *** [/opt/VirtualBox-1.5.2/src/linux/SUPDrv-linux.o] Fehler 1
make[1]: *** [_module_/opt/VirtualBox-1.5.2/src] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-ARCH'
make: *** [vboxdrv] Fehler 2

Offline

#2 2008-02-11 09:13:05

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Vbox Kernel Module and .24

Offline

#3 2008-02-11 09:50:34

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: Vbox Kernel Module and .24

or install virtualbox-modules from aur


Zygfryd Homonto

Offline

#4 2008-02-11 09:54:07

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Vbox Kernel Module and .24

zyghom wrote:

or install virtualbox-modules from aur

This does only work for Virtualbox OSE Edition. For the binary you must rebuild the kernel module and it won't compile without the patch.

Offline

#5 2008-02-11 10:25:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Vbox Kernel Module and .24

upgrade to the latest version of virtualbox_bin (1.5.4) and the module will compile well on 2.6.24


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB