From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 8 19:47:15 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 3C228239 for ; Sun, 8 Dec 2013 19:47:15 +0000 (UTC) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB1D61A1C for ; Sun, 8 Dec 2013 19:47:14 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id gq1so2877521obb.32 for ; Sun, 08 Dec 2013 11:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oDdSbQbuy3ngJcUeI8CMdz97dDXXUaIoVDnO1yCaxOA=; b=Kcxe7/AqxnMvQ9RXqxq5FWAfAV65N3iZwwRZ6G10FvPw0hPlfhtpKtDO4rfwbXLm3I ct1ktu4HQt5YyZRa1L+rSKnD9BEz0/BLyUoQ5ENoK9Hi6/TdHfcyQop/pLVtkfEBQsa2 bo9b4cImWCpTTgMjTjVCo0RIDoUABv01Qk/Bg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=oDdSbQbuy3ngJcUeI8CMdz97dDXXUaIoVDnO1yCaxOA=; b=d3lFiUFH6nTF/A9gT7+BbjDF74F8SIO5u8DDNn6wicFEUpwU1+XsJTPlm1O4EeYaxW Kuqck7aqcJSa56+DnflUNz1vMdQbY9EDc0jry+kOfxf2AAdnTFCMs3LJSxBt2I0st9rl uB2xRFJrGJm62ybNkW3OKyTlWoeVH0c1bNfF9ziefbVNdNxOrbzJ8yRaYCYyXZvBonnl 3HxLLYHogWqju1lLSnNm0RO04XVNfxg6DEJR6fLrZdXzUXgXy6MUrgx7TWal7NsKqsVh 9JIlHFB4DUYnlhVutxNtlh/ZJcMfCEx8dhCV/rXTWtzJfmYfVai9VX3Tl4jHwJ72FmPc 0eMA== X-Gm-Message-State: ALoCoQmN9tsGgZI9P7zM5g351onfCmuewtEvCvyNi6ojylb5tuWkkR24ZzVpVgSnHMggWcos6pml MIME-Version: 1.0 X-Received: by 10.182.250.163 with SMTP id zd3mr10500337obc.20.1386532034153; Sun, 08 Dec 2013 11:47:14 -0800 (PST) Received: by 10.76.154.2 with HTTP; Sun, 8 Dec 2013 11:47:13 -0800 (PST) X-Originating-IP: [89.144.207.81] Received: by 10.76.154.2 with HTTP; Sun, 8 Dec 2013 11:47:13 -0800 (PST) In-Reply-To: <1386530129.29428.57028485.308F72BE@webmail.messagingengine.com> References: <1386530129.29428.57028485.308F72BE@webmail.messagingengine.com> Date: Sun, 8 Dec 2013 20:47:13 +0100 Message-ID: Subject: Re: VirtualBox errors when I try to run (dlopen("/usr/local/lib/virtualbox/VBoxRT.so", )) From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Mark Felder Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-emulation@freebsd.org 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:47:15 -0000 Am 08.12.2013 20:15 schrieb "Mark Felder" : > > > > 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? > > > > I think it's a similar problem as described in ports/182468 and for som= e > > reason rtld seems to pickup libs from compat which might be correct in > > general but it's causing problems for us. > > > > 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. > > /usr/ports/emulators/virtualbox-ose > make -V LDFLAGS > -Wl,-rpath=3D/usr/local/lib/gcc46 > > Why aren't the virtualbox binaries ignoring those LDFLAGS? Could you describe your proposal a bit more precisely? Vbox has a rpath config variable that we can tune a bit. I am not sure yet if this is a bug in the vbox build framework or the ports framework is doing something stupid or the mess in 10 is triggering that.