You are not logged in.
Pages: 1
Hey All!
Finally decided to give Arch a drive and love it so far.
I've set myself up in a VirtualBox VM with the Host OS being Ubuntu 7.10.
Did a basic install and then installed xorg, openssh and xfce4. Nothing fancy.
My problem is that when I go to install the VirtualBox Guest Tools it fails to compile. I'm sure I'm missing a package somewhere but not sure which. I installed the kernel-headers pack this morning but it made no difference and the install still fails.
Building a test kernel module...
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/tmp/selfgz30341
9006/module/test SRCROOT=/tmp/selfgz303419006/module/test 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/selfgz303419006/module/test/.tmp_versions ; rm -f /tmp/selfgz30341
9006/module/test/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz303419006/module/test
I've tried running make oldconfig from the /usr/src/<arch> dir but no luck there either.
Any suggestions?
Offline
Unfortunately I don't see an error in that text you posted, but my guess is you don't have make installed (it's not installed by default in arch). Try installing make (and patch as well), and then try this again.
Offline
Thanks for the speedy reply!
make and patch are installed already, must have been a dep from something else I installed.
Here is the full log from VB:
[root@herbert ~]# make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.This program built for i686-pc-linux-gnu
[root@herbert ~]# cat /var/log/vboxadd-install.log |moreInstalling VirtualBox 1.5.0 Guest Additions, built Fri Aug 31 14:57:14 CEST 2007
Testing the setup of the guest system
Building a test kernel module...
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/tmp/selfgz30341
9006/module/test SRCROOT=/tmp/selfgz303419006/module/test 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/selfgz303419006/module/test/.tmp_versions ; rm -f /tmp/selfgz30341
9006/module/test/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz303419006/module/test
gcc -m32 -Wp,-MD,/tmp/selfgz303419006/module/test/.test.o.d -nostdinc -isyste
m /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-s
trict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msof
t-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i68
6 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DC
ONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-x86/mach-default -fomit-frame-pointer
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/m
odules/2.6.24-ARCH/build/include -I/tmp/selfgz303419006/module/test/ -I/tmp/sel
fgz303419006/module/test/include -I/tmp/selfgz303419006/module/test/r0drv/linux
-D__KERNEL__ -DMODULE -D__LINUX__ -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVB
GL_VBOXGUEST -DVBGL_HGCM -DVBOX_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_B
ASENAME=KBUILD_STR(test)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tm
p/selfgz303419006/module/test/test.o /tmp/selfgz303419006/module/test/test.c
ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz303419006/module/test/vboxadd_te
st.o /tmp/selfgz303419006/module/test/test.o
Building modules, stage 2.
make -f /usr/src/linux-2.6.24-ARCH/scripts/Makefile.modpost
scripts/mod/modpost -i /usr/src/linux-2.6.24-ARCH/Module.symvers -I /tmp/sel
fgz303419006/module/test/Module.symvers -o /tmp/selfgz303419006/module/test/Modu
le.symvers -w -s
gcc -m32 -Wp,-MD,/tmp/selfgz303419006/module/test/.vboxadd_test.mod.o.d -nost
dinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclud
e -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trig
raphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2
-pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2
-march=i686 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_
AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-x86/mach-default -fomit-fr
ame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sig
n -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxadd_test.mod)" -D"K
BUILD_MODNAME=KBUILD_STR(vboxadd_test)" -DMODULE -c -o /tmp/selfgz303419006/modu
le/test/vboxadd_test.mod.o /tmp/selfgz303419006/module/test/vboxadd_test.mod.c
ld -m elf_i386 -r -m elf_i386 --build-id -o /tmp/selfgz303419006/module/test/
vboxadd_test.ko /tmp/selfgz303419006/module/test/vboxadd_test.o /tmp/selfgz30341
9006/module/test/vboxadd_test.mod.o
Inserting the test module module/test/vboxadd_test.ko into the kernel.Building the VirtualBox Guest Additions kernel module.
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/tmp/vbox.0 SRCR
OOT=/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/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -m32 -Wp,-MD,/tmp/vbox.0/.cmc.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc
-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude -include include/linux/autoconf
.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-co
mmon -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -f
reg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -ffre
estanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FR
AME=1 -Iinclude/asm-x86/mach-default -fomit-frame-pointer -fno-stack-protector
-Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.24-ARCH/bui
ld/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__K
ERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_
VBOXGUEST -DVBOX_HGCM -DLOG_TO_BACKDOOR -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUIL
D_BASENAME=KBUILD_STR(cmc)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd)" -c -o /tmp/v
box.0/cmc.o /tmp/vbox.0/cmc.c
In file included from /tmp/vbox.0/include/iprt/types.h:72,
from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:25,
from /tmp/vbox.0/cmc.c:17:
include/linux/types.h:40: error: redefinition of typedef 'uintptr_t'
/tmp/vbox.0/include/iprt/stdint.h:118: error: previous declaration of 'uintptr_t
' was here
In file included from include/linux/thread_info.h:33,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:53,
from /tmp/vbox.0/cmc.c:17:
include/linux/bitops.h:6:1: warning: "BIT" redefined
In file included from /tmp/vbox.0/include/iprt/types.h:20,
from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:25,
from /tmp/vbox.0/cmc.c:17:
/tmp/vbox.0/include/iprt/cdefs.h:1019:1: warning: this is the location of the pr
evious definition
make[2]: *** [/tmp/vbox.0/cmc.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxadd] Error 2
I figured the compile errors were related to the initial part of the log I posted.
Any suggestions very much appreciated....
EDIT: I'm using VirtualBox 1.5.0_OSE
Last edited by volksman (2008-03-10 17:26:04)
Offline
Can someone please confirm that the Guest Tools for Virtual Box 1.5.0 OSE can at least be installed on Archlinux running as a Guest OS?
Offline
I don't see your problem as a missing dependency but as an incompatable one. I would look at kernel-headers as the culprit. This isn't Arch's fault btw, but since Arch uses quite new kernel-headers, then some older software (read Vbox Guest tools) might have trouble compiling against them. I would recommend finding an older kernel-headers package and testing. Unfortunately since Arch is a rolling release distro, you will likely need to redownload the ISO 2007.08-2 and grap the pack off that. Or you can ask someone to host the file for you (I don't have it nearby or I would host it for you).
Zeq
"Till shade is gone, till water is gone, into the Shadow with teeth bared, screaming defiance with the last breath, to spit in Sightblinder's eye on the Last Day"
Offline
This problem has been solved!
Thanks for the reply Zeq, you are quite right. This was an issue with VB not Arch. I downloaded and installed the 1.5.6 PUEL version and installed it no issues. So in answer to my own question 1.5.0_OSE WILL NOT compile with the current status of Arch. (again not placing blame or anything...Arch has been pretty slick so far).
Just an extra hint for anyone new to Arch and playing with VB, make sure you install hwd and run it to create a default xorg.conf file or the Guest Tools will have no effect. Had me scratching my head for a bit after the compile worked. Didn't even realize X would work without an xorg.conf file so never even thought to check if it existed.
Offline
anyone hosting those ISO 2007.08-2 headers?
@volksman: did you use those header files for the PUEL or did it work straight out of the box? I seem to have the same issues with both versions.
another thing: that hdw thing, did you install it in host or guest?
When everything's coming your way, you're in the wrong lane I say.
FAQ / Beginners Guide / The Arch Way
Offline
Pages: 1