Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 16:45:10 -0500
From:      Eitan Adler <eadler@freebsd.org>
To:        =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= <decke@bluelife.at>
Cc:        "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, "svn-ports-all@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:  <CAF6rxgnRDTgACHuYY5d=m9hWp8xpWrSutHa_ud6m_s9kOmQN_w@mail.gmail.com>
In-Reply-To: <CAE-m3X2GV2UVZnPOOH03BZLvG7uq722MO6CxTMywBFaiTS3SQA@mail.gmail.com>
References:  <201312111401.rBBE1jgh091228@svn.freebsd.org> <CAF6rxg=%2B4TUmA07naAvkv8Hj=BbJn-Dxt9NZFX8d8_R=o4mFxQ@mail.gmail.com> <CAE-m3X2GV2UVZnPOOH03BZLvG7uq722MO6CxTMywBFaiTS3SQA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 11, 2013 at 3:47 PM, Bernhard Fr=C3=B6hlich <decke@bluelife.at>=
 wrote:
>
> 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=3Dyes 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 require=
d
>> >   by /usr/local/lib/virtualbox/VBoxRT.so not found
>> >
>> >   PR:           ports/182468
>> > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=3D182468
>> >   Reported by:  various FreeBSD 10 users
>> >
>> > Modified:
>> >   head/emulators/virtualbox-ose/Makefile
>> >
>> > Modified: head/emulators/virtualbox-ose/Makefile
>> >
>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
>> > --- head/emulators/virtualbox-ose/Makefile      Wed Dec 11 13:35:12 20=
13
>> > (r336163)
>> > +++ head/emulators/virtualbox-ose/Makefile      Wed Dec 11 14:01:44 20=
13
>> > (r336164)
>> > @@ -46,7 +46,7 @@ HAS_CONFIGURE=3D        yes
>> >  CONFIGURE_ARGS+=3D--with-gcc=3D"${CC}" --with-g++=3D"${CXX}" --passiv=
e-mesa
>> >  USE_LDCONFIG=3D  ${PREFIX}/lib/virtualbox
>> >
>> > -CONFLICTS=3D     bcc-[0-9]*
>> > +CONFLICTS=3D     bcc-[0-9]* compat9x-*
>> >  CONFLICTS_INSTALL=3D     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.

Absolutely.  I applaud your efforts on this port: its a lot of hard
work and it usually functions.


>> 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 operate=
s
> in his extra critical mode and ignores all env variables.

Thanks for the info!

>> P.S. do we still have virtualbox-ose-devel* or any version 3 ports aroun=
d?
>
> 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 o=
ur
> testers.
>
> Version 3 can be removed.

Heh, okay.

--=20
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgnRDTgACHuYY5d=m9hWp8xpWrSutHa_ud6m_s9kOmQN_w>