[SOLVED] VirtualBox < 3.1.4 module build fails on 2.6.33 kernel
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VirtualBox < 3.1.4 module build fails on 2.6.33 kernel
I had an issue with the module build for vbox 3.1.2 breaking on the latest kernel ( /etc/rc.d/rc.vboxdrv setup ). Apparently the issue is that a kernel header (autoconf.h ) has changed its location in the module tree and hence the issue.
2 options:
1. upgrade to 3.1.4
2. create a symlink as follows
cd /usr/src/linux/include/linux
ln -s ../generated/autoconf.h autoconf.h
If you look, there is a way to mark this post as being "solved." Please do
that so searchers will know that you've found the solution.
cwizardone: W.r.t. 2.6.29.x earlier versions of vbox should work fine - I was running 3.1.2 for some time on that kernel. What is the exact error/problem
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,154
Rep:
Quote:
Originally Posted by rpedrica
...cwizardone: W.r.t. 2.6.29.x earlier versions of vbox should work fine - I was running 3.1.2 for some time on that kernel. What is the exact error/problem
The VirtualBox documentation says,"...The version numbers of the header file packages must be the same as that of the kernel you are using."
So I took a look and while the version number is the same, the header name does not include "_64", while the kernel name has the full "x86_64".
I don't know if that is the problem, but I'm going to rename the file and find out.
Last edited by cwizardone; 03-05-2010 at 10:46 AM.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,154
Rep:
Well, I decided to install the latest kernel, headings, source, and modules and that went well and everything, but VB works.
So I then tried the rpedrica's fix, but that still didn't help.
Here is the VB install log:
Code:
VirtualBox 3.1.4 r57640 installer, built 2010-02-12T19:37:27Z.
Testing system setup...
System setup appears correct.
Installing VirtualBox to /opt/VirtualBox
Output from the module build process (the Linux kernel build system) follows:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.33/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
/usr/src/linux-2.6.33/arch/x86/Makefile:81: stack protector enabled but no compiler support
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/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/*
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-slackware-linux/4.4.3/include -I/usr/src/linux-2.6.33/arch/x86/include -Iinclude -include include/generated/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 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -I/lib/modules/2.6.33/build/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)" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/usr/libexec/gcc/x86_64-slackware-linux/4.4.3/cc1: error while loading shared libraries: libgmp.so.10: cannot open shared object file: 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
End of the output from the Linux kernel build system.
Installation successful
cwizardone: you seem to have hit an issue with libgmp that some others have had in the latest updates:
Quote:
error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
Check that this package is installed but perhaps best is to reinstall it - note there have been some issues surrounding this package so make sure you get the absolute latest updates for current ( gmp was released Mar 1 and aaa_elflibs was released Mar 2 for eg. ) . My version is:
gmp-5.0.1-x86_64-1
I did notice that my package did not have an explicit link to libgmp.so.10 but a scan ( ls -al libgmp* ) of /usr/lib64 shows it is fine:
/usr/lib64/libgmp.so.10 -> libgmp.so.10.0.1
Do check this. Strange I also found libgmp.so.10.0.1 in the aaa_elflibs package ... perhaps one of the packagers can comment?
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,154
Rep:
rpedrica,
Thanks for all your help.
At this point I'm done fiddle *&#$ing around with 'current.'
I reinstalled Slackware64-13 'stable' and that's it. No more messing around.
After the re-install, yet again, this time I installed VirtualBox *before*
installing the multilib files and the installation was successful. Then
I installed the multilib files and now everything works.
So it is stable and Xfce from now on. The kids over at KDE have burned that bridge. I'll use XP before I'll put KDE 4.xx on my machine again.
I did update a few applications from the current directory and they are working well, as they have in the past. For example, the most recent Thunderbird, GIMP, Firefox, etc. BTW, I've found the package of Opera 10.10, from the Salix repository to be the best version of Opera I've used to date.
Thanks, again, for your help.
Last edited by cwizardone; 03-06-2010 at 09:06 PM.
Reason: Typo.
cwizardone: sounds like you're happy and that's the most important. Pity though as -current is where the fun is ... ; ) I still have some odds and ends with KDE now and again but overall it's more than usable as a daily platform. Especially in 4.4.x form.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.