Date: Sun, 29 Sep 2013 08:22:49 +1000 (EST) From: Peter Jeremy <peter@rulingia.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/182468: [patch] lang/gcc builds unrunnable emulators/virtualbox-ose Message-ID: <201309282222.r8SMMnX4090090@server.rulingia.com> Resent-Message-ID: <201309282230.r8SMU1c3014990@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 182468 >Category: ports >Synopsis: [patch] lang/gcc builds unrunnable emulators/virtualbox-ose >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 28 22:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Peter Jeremy >Release: FreeBSD 10.0-CURRENT amd64 >Organization: n/a >Environment: System: FreeBSD server.rulingia.com 10.0-CURRENT FreeBSD 10.0-CURRENT #21: Wed Jul 10 19:50:48 EST 2013 root@server.rulingia.com:/var/obj/usr/src/sys/server amd64 >Description: emulators/virtualbox-ose builds with lang/gcc (gcc46) by default. As a result, the VBox executables are linked with shared libraries in /usr/local/lib/gcc46. Unfortunately, that path isn't part of RPATH in the VBox executables so rtld attempts to use /usr/lib/libstdc++.so.6 instead of /usr/local/lib/gcc46/libstdc++.so.6 which fails due to a missinng symbol. This is a manifestation of the problem I reported in ports/142226 (which was never really fixed). >How-To-Repeat: Build emulators/virtualbox-ose and try to run it. >Fix: The following is a work-around. It's not a proper fix but is no worse than the kludge in Mk/bsd.gcc.mk (which doesn't actually work in all cases). Index: emulators/virtualbox-ose/Makefile =================================================================== --- emulators/virtualbox-ose/Makefile (revision 328569) +++ emulators/virtualbox-ose/Makefile (working copy) @@ -210,7 +210,7 @@ post-patch: @${ECHO} 'VBOX_PATH_APP_PRIVATE_ARCH = ${PREFIX}/lib/virtualbox' > ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_SHARED_LIBS = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk - @${ECHO} 'VBOX_WITH_RUNPATH = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk + @${ECHO} 'VBOX_WITH_RUNPATH = ${_GCC_RUNTIME}:${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_APP_PRIVATE = ${DATADIR}' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_APP_DOCS = ${DOCSDIR}' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_INSTALLER = 1' >> ${WRKSRC}/LocalConfig.kmk >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309282222.r8SMMnX4090090>