Compilation fails. Reproducible: Always Steps to Reproduce: 1. emerge -av =app-emulation/virtualbox-modules-4.1.4 2. Observe Build Error Actual Results: Compilation fails Expected Results: Successful Compilation and Installation This can be amended by patching your virtualbox-modules-4.1.{2,4}.ebuild file to include the attached patch found here: http://www.grsecurity.net/~paxguy1/virtualbox-modules-4.1.2-pax-const.patch See attached patch and modified ebuild. Apparently it's an issue with gcc constify plugin as described in thread.
Created attachment 289301 [details, diff] virtualbox-modules-4.1.4 patch Patch for Gcc Constify Plugin
Created attachment 289303 [details] Patched Ebuild Patched Ebuild to epatch constify patch, no conditionals.
The problem is actually in virtualbox, not the hardened-kernel. If the virtualbox team wishes, they can include this patch. @polynomial. if you want to conditionally depend on a USE flag, don't use "hardened" because that refers only to hardened tool chain. We've been recommending to people to use "pax_kernel".
Virtualbox team seems to ignore the problem ( https://www.virtualbox.org/ticket/9432 ). Couldn't this patch be merged into portage tree?
+ 24 Oct 2011; Lars Wendler <polynomial-c@gentoo.org> + virtualbox-modules-4.1.4.ebuild, + +files/virtualbox-modules-4.1.4-pax-const.patch: + Fixed compilation with >=3.0.4 hardened kernel. Thanks to letrec for + providing the patch and blueness for giving the correct hints wrt. USE flag + naming (bug #386497). + Fix went into 4.1.4 version. 4.1.2 will vanish soon.
I would like to ask to re-open this bug because I'm unable to compile app-emulation/virtualbox-modules-4.1.4[pax_kernel] against earlier version of the kernel such as sys-kernel/hardened-sources-2.6.37-r7 Please add an additional check for the kernel version.
(In reply to comment #6) > I would like to ask to re-open this bug because I'm unable to compile > app-emulation/virtualbox-modules-4.1.4[pax_kernel] against earlier version of > the kernel such as sys-kernel/hardened-sources-2.6.37-r7 You are expected to use the latest stable ebuild in the tree, which is 3.0.4-r4.
(In reply to comment #7) > You are expected to use the latest stable ebuild in the tree, which is > 3.0.4-r4. I would if I could. Unfortunately, I've got stuck in the past due to the bug #382793 FYI, vmware-modules-238.5 does that: kernel_is ge 2 6 39 && epatch "${FILESDIR}/${PV_MAJOR}-2.6.39.patch"
+ 06 Nov 2011; Lars Wendler <polynomial-c@gentoo.org> + virtualbox-modules-4.1.4.ebuild, virtualbox-modules-4.1.6.ebuild: + Added kernel version check for pax patch. Cleaned up 4.1.4 ebuild a bit. +
*** Bug 379421 has been marked as a duplicate of this bug. ***