Fedora Linux Support Community & Resources Center
  #1  
Old 9th June 2013, 03:18 PM
amjFedora Offline
Registered User
 
Join Date: Jun 2013
Location: India
Posts: 3
linuxchrome
VirtualBox Building the main Guest Additions module FAILED in fedora 19

I recently tried fedora 19 using virtual box.But installing the guest additions failed even I installed all the dependencies like gcc,kernel headers,kernel devel etc..
Here is the contents of /var/log//vboxadd-install.log

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.1.12/source ->
/usr/src/vboxguest-4.1.12

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.9.4-300.fc19.x86_64 -C /lib/modules/3.9.4-300.fc19.x86_64/build M=/var/lib/dkms/vboxguest/4.1.12/build......(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.9.4-300.fc19.x86_64 (x86_64)
Consult /var/lib/dkms/vboxguest/4.1.12/build/make.log for more information.
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.9.4-300.fc19.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/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/.VBoxGuest-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.0/include -I/usr/src/kernels/3.9.4-300.fc19.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/kernels/3.9.4-300.fc19.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.9.4-300.fc19.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.9.4-300.fc19.x86_64/include/linux/kconfig.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-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/3.9.4-300.fc19.x86_64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
/tmp/vbox.0/VBoxGuest-linux.c:206:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_VBoxGuestPciId’
static const struct pci_device_id __devinitdata g_VBoxGuestPciId[] =
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:78:0,
from /tmp/vbox.0/VBoxGuest-linux.c:28:
include/linux/module.h:87:32: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘g_VBoxGuestPciId’
extern const struct gtype##_id __mod_##gtype##_table \
^
include/linux/module.h:140:3: note: in expansion of macro ‘MODULE_GENERIC_TABLE’
MODULE_GENERIC_TABLE(type##_device,name)
^
/tmp/vbox.0/VBoxGuest-linux.c:216:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
MODULE_DEVICE_TABLE(pci, g_VBoxGuestPciId);
^
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

How to solve this?
  #2  
Old 9th June 2013, 04:27 PM
solo2101 Offline
Registered User
 
Join Date: Jan 2010
Location: behind that screen...
Posts: 905
linuxchrome
Re: VirtualBox Building the main Guest Additions module FAILED in fedora 19

Quote:
Originally Posted by amjFedora View Post
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
Try what the error suggested. And you could install autoconf also
  #3  
Old 9th June 2013, 06:55 PM
amjFedora Offline
Registered User
 
Join Date: Jun 2013
Location: India
Posts: 3
linuxubuntuchrome
Re: VirtualBox Building the main Guest Additions module FAILED in fedora 19

Sorry, I am not an advanced user. Anyway I installed autoconf and tried to run 'make oldconfig && make prepare on the kernel src after moving into /usr/src/kernels/3.9.....But it also failed.I don't know that I went through the right path. I also wonder that how the echo commands actually meant for error suggestion since it just printed as the command itself and not as an output of the echo command.
  #4  
Old 11th June 2013, 07:39 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 1,344
windows_7chrome
Re: VirtualBox Building the main Guest Additions module FAILED in fedora 19

Are you sure you have the correct kernel-devel installed for the running kernel you are building against?
I've had no issues for the past couple versions:
Code:
vboxhost, 4.2.12, 3.9.4-300.xps.x86_64, x86_64: installed
vboxhost, 4.2.12, 3.9.4-302.xps.x86_64, x86_64: installed
vboxhost, 4.2.12, 3.9.5-300.xps.x86_64, x86_64: installed
  #5  
Old 12th June 2013, 06:30 AM
ManfredB Offline
Registered User
 
Join Date: May 2012
Location: Gernany
Posts: 129
linuxfirefox
Re: VirtualBox Building the main Guest Additions module FAILED in fedora 19

I use rpmfusion and install

akmod-VirtualBox
VirtualBox-guest

Then I change to /usr/src/akmods and write

rpm -ivh VirtualBox-*.rpm

Then reboot and you have

* SharedFolders
* Fullscreen

Manfred
  #6  
Old 19th June 2013, 01:27 PM
amjFedora Offline
Registered User
 
Join Date: Jun 2013
Location: India
Posts: 3
linuxchrome
Re: VirtualBox Building the main Guest Additions module FAILED in fedora 19

Thanks ManfredB, now I have guest additions features.
 

Tags
additions, building, failed, fedora, fedora 19, guest, guest additions, main, module, virtualbox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox Guest Additions 4.1.16 Break Fedora 17 greenaj Using Fedora 0 6th June 2012 10:21 PM
Guest Additions for Virtualbox input Installation, Upgrades and Live Media 4 23rd July 2011 04:14 PM
Installing guest additions Virtualbox Fedora 13 guest heffo_j Guides & Solutions (Not For Questions) 5 16th August 2010 08:44 PM
install virtualbox guest additions (fedora 12, VBox 3.1.6): ofw13and3 Guides & Solutions (Not For Questions) 0 29th March 2010 06:44 PM
VirtualBox guest additions rrobertt Using Fedora 5 15th May 2009 08:42 AM


Current GMT-time: 07:08 (Tuesday, 23-05-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat