On 11/21/2009 11:16 AM, Bob Williams wrote: > I have recently upgraded my host system from linux openSUSE 11.1 to 11.2which > has a different kernel, so I have to rebuild the VirtualBox driver module. I > am not a programmer. > > I have downloaded the kernel source files, which are in > /usr/src/linux-2.6.31.5-0.1 but there is a symlink to this directory at > /usr/src/linux. > > I have installed gcc and make. > > The first time I ran /etc/init.d/vboxdrv setup, there was an error log file > which told me: > > 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." > > I followed these instructions, and checked that include/linux/autoconf.h and > include/config/auto.conf were created. However, I still get the same errors > on > running vboxdrv setup (yes, I am doing this as root). > > The complete vbox-install.log contains: > > Makefile:150: Warning: using /usr/src/linux as the source directory of your > Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run > Make again. > make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/vbox.0 > SRCROOT=/tmp/vbox.0 modules > 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.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/* > > WARNING: Symbol version dump /usr/src/linux-2.6.31.5-0.1/Module.symvers > is missing; modules will have no dependencies and modversions. > > make -f scripts/Makefile.build obj=/tmp/vbox.0 > gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem > /usr/lib64/gcc/x86_64-suse-linux/4.4/include -Iinclude - > I/usr/src/linux-2.6.31.5-0.1/arch/x86/include -include > include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno- > trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function- > declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 - > mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate- > outgoing-args -fstack-protector -fstack-protector-all -DCONFIG_AS_CFI=1 - > DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno- > sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-omit-frame-pointer -fno- > optimize-sibling-calls -fasynchronous-unwind-tables -g -Wdeclaration-after- > statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm - > I/usr/src/linux/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include - > I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 - > DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING - > DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE - > D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" - > D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=27" -D"DEBUG_HASH2=27" -c > -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c > /bin/sh: scripts/genksyms/genksyms: No such file or directory > make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1 > make[1]: *** [_module_/tmp/vbox.0] Error 2 > make: *** [vboxdrv] Error 2 > > I would be grateful if someone could suggest what I need to do next. > > Many thanks, > > Bob > You need to install the kernel devel package for your installed kernel ie. if you have kernel-default installed then you need kernel-default-devel, if you have kernel-desktop then you need that -devel package and if you have kernel-pae that devel package and so on. Regards Dave P
_______________________________________________ vbox-users mailing list vbox-users@virtualbox.org http://vbox.innotek.de/mailman/listinfo/vbox-users