From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 8 19:15:37 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E69B53C for ; Sun, 8 Dec 2013 19:15:37 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5A3C91829 for ; Sun, 8 Dec 2013 19:15:36 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1C7D62093B for ; Sun, 8 Dec 2013 14:15:30 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute3.internal (MEProxy); Sun, 08 Dec 2013 14:15:30 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=6a37HNUaMoU/E1FEXnzHw+lrYyg=; b=LO3 Na0vGGFYvTyJ9zLBGJK8EtVIvTcr4sRJHlID0UUHyuqJFCt7LAbxkKFq1gH2bKfR 4W4VSNB+oR8l31+avwuZclOTQInxOfaQDhmrM4ycYLA4Q3zzF9iMgOqbeWc1+hm6 ZnSFpF+jcN3QVqjtJMlk+Fidp2Qi4CSoa0fgHI0k= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id F140710595D; Sun, 8 Dec 2013 14:15:29 -0500 (EST) Message-Id: <1386530129.29428.57028485.308F72BE@webmail.messagingengine.com> X-Sasl-Enc: SO/Ifw/O4O1AOd74y0XBrA5vQHpuAsdATqwa3QAJhG4q 1386530129 From: Mark Felder To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: MessagingEngine.com Webmail Interface - ajax-c99dcdd8 In-Reply-To: References: Subject: Re: VirtualBox errors when I try to run (dlopen("/usr/local/lib/virtualbox/VBoxRT.so", )) Date: Sun, 08 Dec 2013 13:15:29 -0600 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 19:15:37 -0000 On Sat, Dec 7, 2013, at 2:02, Bernhard Fr=F6hlich wrote: > Am 06.12.2013 23:24 schrieb "Eitan Adler" : > > > > On Fri, Dec 6, 2013 at 4:04 PM, Bernhard Fr=F6hlich > wrote: > > > > > > Am 06.12.2013 21:45 schrieb "Eitan Adler" : > > > > > > > > >> > > >> I get the following when try to run VirtualBox. > > >> > > >> VirtualBox: Error -610 in supR3HardenedMainInitRuntime! > > >> VirtualBox: dlopen("/usr/local/lib/virtualbox/VBoxRT.so",) failed: > > >> /usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.15 required > > >> by /usr/local/lib/virtualbox/VBoxRT.so not found > > >> > > >> %pkg info -x compat9x > > >> compat9x-amd64-9.2.902000.201310 > > >> %pkg info -x virtualbox > > >> virtualbox-ose-4.2.18_1 > > >> virtualbox-ose-kmod-4.2.18 > > >> > > >> Any ideas how for to fix this? > > > > > > Deinstall the compat port(s) and it will work again. > > > > I need the compat port for Java. Is it possible to have VirtualBox > > ignore the compat libs? why is it looking their anyway? >=20 > I think it's a similar problem as described in ports/182468 and for some > reason rtld seems to pickup libs from compat which might be correct in > general but it's causing problems for us. >=20 We discussed this in IRC the other day, Bernard. Look at the rpath ( readelf -d )of /usr/local/lib/virtualbox/VBoxRT.so -- it's wrong. It's only listing /usr/local/lib/virtualbox.=20 /usr/ports/emulators/virtualbox-ose > make -V LDFLAGS -Wl,-rpath=3D/usr/local/lib/gcc46 Why aren't the virtualbox binaries ignoring those LDFLAGS?