Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtualbox/vboxwebsrv on hardened
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
siebz0r
n00b
n00b


Joined: 18 Feb 2009
Posts: 20

PostPosted: Mon Oct 01, 2012 9:32 am    Post subject: Virtualbox/vboxwebsrv on hardened Reply with quote

I'm trying to install Virtualbox 4.1.22 on a hardened server. The used GCC profile is i686-pc-linux-gnu-4.5.4.
When I compile Virtualbox using this profile I get the following error:
Code:

...
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/timer.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/relocate.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/heap.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/nic.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/pci.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/pci_probe.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/vsprintf.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/string.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/core/pxe_export.c
  CC      NetBiosBin - {C}/src/VBox/Devices/PC/Etherboot-src/arch/i386/core/pci_io.c
/var/tmp/paludis/app-emulation-virtualbox-4.1.22/work/VirtualBox-4.1.22/src/VBox/Devices/PC/Etherboot-src/arch/i386/core/pci_io.c: In function 'pcibios_read_config_byte':
/var/tmp/paludis/app-emulation-virtualbox-4.1.22/work/VirtualBox-4.1.22/src/VBox/Devices/PC/Etherboot-src/arch/i386/core/pci_io.c:143:9: error: can't find a register in class 'BREG' while reloading 'asm'
/var/tmp/paludis/app-emulation-virtualbox-4.1.22/work/VirtualBox-4.1.22/src/VBox/Devices/PC/Etherboot-src/arch/i386/core/pci_io.c:143:9: error: 'asm' operand has impossible constraints
kmk: *** [/var/tmp/paludis/app-emulation-virtualbox-4.1.22/work/VirtualBox-4.1.22/out/linux.x86/release/obj/pci_io.o] Error 1
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2


I came across this topic which looks like the same error. However the two fixes that worked didn't work for me (obviously the patch didn't work ;-) ).

If I switch to a non hardened GCC profile (i686-pc-linux-gnu-4.5.4-vanilla) the build succeeds but if I try to run vboxwebsrv I get the following error:

Code:

Oracle VM VirtualBox web service version 4.1.22_Gentoo_
(C) 2005-2012 Oracle Corporation
All rights reserved.
vboxwebsrv: error: failed to open release log (mmap(PROT_WRITE | PROT_EXEC) failed -- SELinux?, VERR_NO_MEMORY)


AFAIK I'm not using SELinux, and have enough memory available, free reports this:
Code:

            total       used       free     shared    buffers     cached
Mem:          1769       1041        727          0        107        804
-/+ buffers/cache:        129       1640
Swap:         3082          0       3082
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum