From owner-freebsd-gnome@FreeBSD.ORG Tue Apr 14 00:49:43 2015 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A7AE9DF6 for ; Tue, 14 Apr 2015 00:49:43 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 745342F7 for ; Tue, 14 Apr 2015 00:49:43 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t3E0nhgX028629 for ; Tue, 14 Apr 2015 00:49:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 199435] [patch] convert lang/gjs to USES=compiler:c++11-lib Date: Tue, 14 Apr 2015 00:49:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2015 00:49:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199435 Bug ID: 199435 Summary: [patch] convert lang/gjs to USES=compiler:c++11-lib Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: truckman@FreeBSD.org Flags: maintainer-feedback?(gnome@FreeBSD.org) Keywords: patch Assignee: gnome@FreeBSD.org Created attachment 155578 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155578&action=edit patch to convert gjs to USES=compiler:c++11-lib On FreeBSD 8 and 9, USES=compiler:c11 causes gjs to be built with clang and linked the old version of libstdc++ in base. The x11-fm/sushi port links to both gjs and webkit-gtk3. On FreeBSD 8 and 9, webkit-gdk3 must now be compiled with gcc48 from ports and linked to the version of libstdc++ from ports. sushi itself only appears to contain C code and doesn't require a c++ library. When it is linked, the linker choses libstdc++ based on the order of the shared libraries, and ends up linking to libstdc++ from base. This causes the build to fail with a link error because the base version of libstdc++ does not support the newer c++ ABI version required by webkit-gtk3. Even if the sushi port is hacked to link to the newer libstdc++, the application segfaults inside a deeply nested series of libmozjs and libgjs function calls. See for more detail. Changing spidermonkey24 and gjs to USES=compiler:c++11-lib, which causes them to be built with gcc48 and linked to its bundled libstdc++, allows the un-modified sushi port to successfully build, and not segfault when run. See also -- You are receiving this mail because: You are the assignee for the bug.