openSUSE11.4:Building the main Guest Additions module failed
Posted: 13. Sep 2011, 18:20
Hi,
after the successfull installation of openSUSE 11.4 on my Windows 7 host, i got the hint that the currently installed guest additions are outdated and that a newer version is available.
I used this tutorial:
http://en.opensuse.org/VirtualBox
to perform the steps needed for an update.
At first step 3 was not working because not guest additions are mounted, but i figured out that clicking on "install guest additions" in the virtual box menu, while running my guest OS, mounted the GA medium.
But after performing step 3 i got this message:
As you can see all steps are done but not the building of the main Guest Additions module. I looked into the /var/log/vboxadd-install.log but i did not understand how i can solve the problems, here is the log:
But i found another thread about this problem:
http://www.linuxquestions.org/questions ... ls-871284/
but i did not tried to reproduce the solution because i do not realy understand what iam doing.
after the successfull installation of openSUSE 11.4 on my Windows 7 host, i got the hint that the currently installed guest additions are outdated and that a newer version is available.
I used this tutorial:
http://en.opensuse.org/VirtualBox
to perform the steps needed for an update.
At first step 3 was not working because not guest additions are mounted, but i figured out that clicking on "install guest additions" in the virtual box menu, while running my guest OS, mounted the GA medium.
But after performing step 3 i got this message:
Code: Select all
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.2 Guest Additions for Linux.........
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer. If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version. If this is simply an older or a damaged
installation you may safely proceed.
Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules done
Removing existing VirtualBox non-DKMS kernel modules done
Removing existing VirtualBox DKMS kernel modules done
Removing existing VirtualBox non-DKMS kernel modules done
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
zypper install kernel-desktop-devel-2.6.37.1-1.2
Building the main Guest Additions module failed
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org Server 1.9 modules done
Setting up the Window System to use the Guest Additions done
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components done
oliver@linux-in1i:/media> joe /var/log/vboxadd-install.log
Processing '/etc/joe/joerc'...Processing '/etc/joe/ftyperc'...done
doneCode: Select all
/tmp/vbox.0/Makefile.include.header:97: Warning: using /usr/src/linux as the source directory of your Li
grep: /usr/src/linux/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
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)
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
WARNING: Symbol version dump /usr/src/linux-2.6.37.6-0.7/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile.include.header:97: Warning: using /usr/src/linux as the source directory of your Li
grep: /usr/src/linux/include/linux/version.h: Datei oder Verzeichnis nicht gefunden
gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.5/
cc1: fatal error: include/generated/autoconf.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Fehler 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
http://www.linuxquestions.org/questions ... ls-871284/
but i did not tried to reproduce the solution because i do not realy understand what iam doing.