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

Bug 925347

Summary: app-emulation/virtualbox-7.0.14-r2 has invisible linking issues with sys-devel/mold-2.4.0
Product: Gentoo Linux Reporter: Alex Buell <alex.buell>
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: IN_PROGRESS ---    
Severity: normal CC: alex.buell, bugs, kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 830404    

Description Alex Buell 2024-02-23 21:08:50 UTC
Building app-emulation/virtualbox-7.0.14-r2 with sys-devel/mold-2.4.0 is successful but running VirtualBoxVM results in this:

code]
alex@cobalt ~/.VirtualBox $ VirtualBoxVM --startvm "MS-DOS 6.22"
VirtualBoxVM: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib64/virtualbox/VirtualBoxVM.so",) failed: /usr/lib64/virtualbox/UICommon.so: undefined symbol: _ZN8QPrinterC1ENS_11PrinterModeE
alex@cobalt ~/.VirtualBox $ c++filt
_ZN8QPrinterC1ENS_11PrinterModeE
QPrinter::QPrinter(QPrinter::PrinterMode)
[/code]

Please add this as a blocker for bug #830404 (https://bugs.gentoo.org/show_bug.cgi?id=830404)
Comment 1 Vasilis Lourdas 2024-06-12 16:44:35 UTC
Version 7.0.18-r1 still suffers with the current stable mold version (2.30.0).
Comment 3 Alex Buell 2024-08-18 11:19:12 UTC
As I understand this, you now disallow use of the mold linker if it is in use with this package? Isn't that like using a sticky plaster to hide the issue when it is mold that needs fixing?
Comment 4 Viorel Munteanu gentoo-dev 2024-08-18 11:51:14 UTC
Yes.  This is not really a fix, it's only avoiding the issue.  I'll change its status to WONTFIX.
Comment 5 Larry the Git Cow gentoo-dev 2024-08-18 13:32:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d29494e273481027c03ce37785895241e21c6fd

commit 3d29494e273481027c03ce37785895241e21c6fd
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-08-18 13:30:56 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-08-18 13:32:19 +0000

    app-emulation/virtualbox: fix linking with mold
    
    Bug: https://bugs.gentoo.org/925347
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/virtualbox-7.1.0_beta1-link-with-mold.patch       | 13 +++++++++++++
 app-emulation/virtualbox/virtualbox-7.1.0_beta1.ebuild      |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 6 Viorel Munteanu gentoo-dev 2024-08-18 13:36:19 UTC
I think I found the cause, I've added a patch for virtualbox 7.1.0.

I won't test it with 7.0.20 now (and it's due for stabilization anyway), but chances are it works.  You can test it if you want (you'll have to remove tc-ld-force-bfd from the ebuild).

I'll test and apply the patch when upstream releases the next version.