Date: Wed, 11 Dec 2013 21:47:22 +0100 From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= <decke@bluelife.at> To: Eitan Adler <eadler@freebsd.org> Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, Bernhard Froehlich <decke@freebsd.org>, "ports-committers@freebsd.org" <ports-committers@freebsd.org> Subject: Re: svn commit: r336164 - head/emulators/virtualbox-ose Message-ID: <CAE-m3X2GV2UVZnPOOH03BZLvG7uq722MO6CxTMywBFaiTS3SQA@mail.gmail.com> In-Reply-To: <CAF6rxg=%2B4TUmA07naAvkv8Hj=BbJn-Dxt9NZFX8d8_R=o4mFxQ@mail.gmail.com> References: <201312111401.rBBE1jgh091228@svn.freebsd.org> <CAF6rxg=%2B4TUmA07naAvkv8Hj=BbJn-Dxt9NZFX8d8_R=o4mFxQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 11.12.2013 20:37 schrieb "Eitan Adler" <eadler@freebsd.org>: > > On Wed, Dec 11, 2013 at 9:01 AM, Bernhard Froehlich <decke@freebsd.org> wrote: > > Author: decke > > Date: Wed Dec 11 14:01:44 2013 > > New Revision: 336164 > > URL: http://svnweb.freebsd.org/changeset/ports/336164 > > > > Log: > > - Add misc/compat9x port as conflicting because it causes the wrong libstdc++.so.6 > > to be found by rtld. In fact vbox links to libstdc++.so.6 from lang/gcc46 because of > > USE_GCC=yes but we have another shared object with the same shlib version in compat9x > > which is incompatible. > > > > 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 > > > > PR: ports/182468 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=182468 > > Reported by: various FreeBSD 10 users > > > > Modified: > > head/emulators/virtualbox-ose/Makefile > > > > Modified: head/emulators/virtualbox-ose/Makefile > > ============================================================================== > > --- head/emulators/virtualbox-ose/Makefile Wed Dec 11 13:35:12 2013 (r336163) > > +++ head/emulators/virtualbox-ose/Makefile Wed Dec 11 14:01:44 2013 (r336164) > > @@ -46,7 +46,7 @@ HAS_CONFIGURE= yes > > CONFIGURE_ARGS+=--with-gcc="${CC}" --with-g++="${CXX}" --passive-mesa > > USE_LDCONFIG= ${PREFIX}/lib/virtualbox > > > > -CONFLICTS= bcc-[0-9]* > > +CONFLICTS= bcc-[0-9]* compat9x-* > > CONFLICTS_INSTALL= virtualbox-ose-devel-[3,4]* virtualbox-ose-legacy-[3,4]* virtualbox-ose-additions-[3,4]* virtualbox-ose-additions-devel-[3,4]* > > This makes it impossible to have Java and VirtualBox on the same > system which seems ... problematic. Feel free to provide an analysis and a patch to fix it. It just does not work and since I do not have a proper fix at hand it's better to tell the user than letting him find the issue hours later via google. > What is the root cause of the conflict? Gcc from ports has his own libstdc++.so.6, gcc in base has his own and compat9x installs that old crap in the compat directory which rtld picks up when starting. That is a mess and in addition to that vbox is a suid root binary which means there are no possible workarounds because rtld operates in his extra critical mode and ignores all env variables. > P.S. do we still have virtualbox-ose-devel* or any version 3 ports around? They never were in the ports tree but we maintain them out of tree and sometimes do call for testers with them. This is to avoid conflicts for our testers. Version 3 can be removed.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-m3X2GV2UVZnPOOH03BZLvG7uq722MO6CxTMywBFaiTS3SQA>