Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552516

Summary: x11-drivers/xf86-video-virtualbox-4.3.28 vboxvideo module does not load due to hardening
Product: Gentoo Linux Reporter: royalsheeplauncher
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED DUPLICATE    
Severity: minor CC: zerochaos
Priority: Normal    
Version: autobuilds   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description royalsheeplauncher 2015-06-19 05:18:49 UTC
On a hardened gentoo install as virtualbox guest, x11-drivers/xf86-video-virtualbox-4.3.28 compiles and installs, but a reboot results in xorg failure to load vboxvideo and fallback to vesa driver.

Xorg.0.log:
vboxvideo_drv.so: undefined symbol: vgaHWFreeHWRec

It is the same bug reported here:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1280292

On my system I was able to fix this by doing:

gcc-config x86_64-pc-linux-gnu-4.8.4-vanilla
source /etc/profile
emerge --oneshot x11-drivers/xf86-video-virtualbox
#(gcc-config x86_64-pc-linux-gnu-4.8.4)

For some reason could not get the per-package package.env LDFLAGS "-z,lazy" flag appending to work, but better you fix on package anyway. (maybe something else that should be fixed in upstream package instead, but damned if I know)
Comment 1 royalsheeplauncher 2015-06-19 05:22:33 UTC
RE: the "-z,lazy" flag, I mean I could not get the flag recognized by the compiler (vbox driver still contained BINDNOW section). So I don't know for sure if changing that flag alone would fix it or not, but vanilla profile surely contains the fix.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2015-10-22 02:11:25 UTC

*** This bug has been marked as a duplicate of bug 546362 ***