Date: Fri, 13 Sep 2013 15:22:32 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Volodymyr Kostyrko <c.kworr@gmail.com> Cc: freebsd-emulation@freebsd.org Subject: Re: emulators/virtualbox-ose can't work when switching to gcc46 Message-ID: <20130913132232.GK33103@ithaqua.etoilebsd.net> In-Reply-To: <52330635.5080301@gmail.com> References: <52330635.5080301@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--aziWXe2aaRGlkyg3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 13, 2013 at 03:33:57PM +0300, Volodymyr Kostyrko wrote: > Hello. >=20 > Just a tiny background. I'm just experimenting with getting rid of=20 > in-base gcc and using compiler from ports whenever possible. And gcc46=20 > produces much better code then our gcc42. >=20 > When I change USE_GCC to yes everything compiles and install perfectly.= =20 > But when I try to run VirtualBox I get this: >=20 > VirtualBox: Error -610 in supR3HardenedMainInitRuntime! > VirtualBox: dlopen("/usr/local/lib/virtualbox/VBoxRT.so",) failed:=20 > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by=20 > /usr/local/lib/virtualbox/VBoxRT.so not found >=20 > VirtualBox: Tip! It may help to reinstall VirtualBox. >=20 > Substituting /usr/lib/libstdc++.so.6 with=20 > /usr/local/lib/gcc46/libstdc++.so.6 fixes that and VirtualBox is fully=20 > functional, but this looks like wrong library resolution order or what?= =20 > Can this be fixed somewhere in the port or should I brag the guys that=20 > stay behind adopting clang? Or is this rather a problem with gcc port? This looks like the libstdc++ nigthmare, you can't mix multiple version of libstdc++ because they are incompatible! one of the vbox dependency is link= ed against the base version of libstdc++ and vbox with gcc46 is linking agains= t a newer version of libstdc++. regards, Bapt --aziWXe2aaRGlkyg3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlIzEZgACgkQ8kTtMUmk6Ez9xQCfQUKHOwl7lhe1Kp5J8y3dNn9T ov0Anj/kWjoWEoWt+qDIC9ItiwlpLcK0 =X+yT -----END PGP SIGNATURE----- --aziWXe2aaRGlkyg3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130913132232.GK33103>