VirtualBox

Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#1935 closed defect (worksforme)

vboxdrv module not compiling under linux kernel 2.6.26.*

Reported by: soumyadip das mahapatra Owned by:
Component: installer Version: VirtualBox 1.6.4
Keywords: Cc:
Guest type: Windows Host type: Linux

Description

vboxdrv module is not compiling in Linux kernel version 2.6.26.* The recent VirtualBox(1.6.4) is supposed to compile under 2.6.26.* kernels. But it is still not doing so.

Here is the log in /var/log/vbox-install.log --- make KBUILD_VERBOSE=1 -C /lib/modules/2.6.26.2/build SUBDIRS=/tmp/vbox.3 SRCROOT=/tmp/vbox.3 modules make[1]: Entering directory `/stuff/linux-2.6.26'

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 /tmp/vbox.3/.tmp_versions ; rm -f /tmp/vbox.3/.tmp_versions/* make -f scripts/Makefile.build obj=/tmp/vbox.3

gcc -Wp,-MD,/tmp/vbox.3/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.2/include -DKERNEL -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -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 -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.26.2/build/include -I/tmp/vbox.3/ -I/tmp/vbox.3/include -I/tmp/vbox.3/r0drv/linux -DKERNEL -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 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.3/linux/SUPDrv-linux.o /tmp/vbox.3/linux/SUPDrv-linux.c

In file included from include/linux/gfp.h:4,

from include/linux/slab.h:12, from /tmp/vbox.3/SUPDRV.h:98, from /tmp/vbox.3/linux/SUPDrv-linux.c:35:

include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4,

from include/linux/slab.h:12, from /tmp/vbox.3/SUPDRV.h:98, from /tmp/vbox.3/linux/SUPDrv-linux.c:35:

include/linux/mmzone.h:218: error: ‘MAX_NR_ZONES’ undeclared here (not in a function) In file included from /tmp/vbox.3/r0drv/linux/the-linux-kernel.h:80,

from /tmp/vbox.3/linux/SUPDrv-linux.c:36:

include/linux/mm.h:429:63: warning: "NR_PAGEFLAGS" is not defined include/linux/mm.h:477:62: warning: "NR_PAGEFLAGS" is not defined make[2]: * tmp/vbox.3/linux/SUPDrv-linux.o Error 1 make[1]: * [_module_/tmp/vbox.3] Error 2 make[1]: Leaving directory `/stuff/linux-2.6.26' make: * [vboxdrv] Error 2

Attachments (1)

vbox-install.log (2.8 KB ) - added by soumyadip das mahapatra 16 years ago.
error log

Download all attachments as: .zip

Change History (7)

by soumyadip das mahapatra, 16 years ago

Attachment: vbox-install.log added

error log

comment:1 by Frank Mehnert, 16 years ago

Please check if the file /lib/modules/2.6.26.2/build/include/linux/bounds.h exists in your installation.

comment:2 by soumyadip das mahapatra, 16 years ago

There is no bounds.h in /lib/modules/2.6.26.2/build/include/linux/ directory. BTW, I am using the vanilla kernel source.

in reply to:  1 comment:3 by soumyadip das mahapatra, 16 years ago

Replying to frank:

Please check if the file /lib/modules/2.6.26.2/build/include/linux/bounds.h exists in your installation.

There is no bounds.h in /lib/modules/2.6.26.2/build/include/linux/ directory. BTW, I am using the vanilla kernel source.

comment:4 by Frank Mehnert, 16 years ago

The file exists here with the following content:

#ifndef __LINUX_BOUNDS_H__
#define __LINUX_BOUNDS_H__
/*
 * DO NOT MODIFY.
 *
 * This file was generated by Kbuild
 *
 */

#define NR_PAGEFLAGS 19 /* __NR_PAGEFLAGS       # */
#define MAX_NR_ZONES 4 /* __MAX_NR_ZONES        # */

#endif

So make sure you executed

make prepare

in you Linux kernel before you will be able to start external modules.

in reply to:  4 comment:5 by soumyadip das mahapatra, 16 years ago

Replying to frank:

The file exists here with the following content:

#ifndef __LINUX_BOUNDS_H__
#define __LINUX_BOUNDS_H__
/*
 * DO NOT MODIFY.
 *
 * This file was generated by Kbuild
 *
 */

#define NR_PAGEFLAGS 19 /* __NR_PAGEFLAGS       # */
#define MAX_NR_ZONES 4 /* __MAX_NR_ZONES        # */

#endif

So make sure you executed

make prepare

in you Linux kernel before you will be able to start external modules.

Thanks frank. Now its working.

Thanks again :-)

comment:6 by Frank Mehnert, 16 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use