From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 25 03:50:05 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C861106567A for ; Mon, 25 Jun 2012 03:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 344B08FC1E for ; Mon, 25 Jun 2012 03:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5P3o5k0056132 for ; Mon, 25 Jun 2012 03:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5P3o5Dl056131; Mon, 25 Jun 2012 03:50:05 GMT (envelope-from gnats) Resent-Date: Mon, 25 Jun 2012 03:50:05 GMT Resent-Message-Id: <201206250350.q5P3o5Dl056131@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Kabaev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F9DF106567A for ; Mon, 25 Jun 2012 03:41:58 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2FE308FC0A for ; Mon, 25 Jun 2012 03:41:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5P3fwJG055311 for ; Mon, 25 Jun 2012 03:41:58 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5P3fwk7055310; Mon, 25 Jun 2012 03:41:58 GMT (envelope-from kan) Message-Id: <201206250341.q5P3fwk7055310@freefall.freebsd.org> Date: Mon, 25 Jun 2012 03:41:58 GMT From: Alexander Kabaev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/169389: Firefox/Thunderbird fail to build with system GCC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Kabaev List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2012 03:50:05 -0000 >Number: 169389 >Category: ports >Synopsis: Firefox/Thunderbird fail to build with system GCC >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: Mon Jun 25 03:50:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Alexander Kabaev >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD kan.dyndns.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r237108+f8c0 b67: Fri Jun 15 14:25:52 EDT 2012 kan@kan.dyndns.org:/usr/obj/usr/src/sys/KANBSD amd64 >Description: Thunderbird and Firefox both fail to build due to failure similar to what is explained in this Mozilla bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=732340 >How-To-Repeat: Just try to build port using system GCC with no special options. >Fix: Attached patch taken verbatim from the bugzilla and expanded a bit to include explicit instantiation of template int SortedArrayOf::search(unsigned int const &) const; Apparently, other people get other symbols undefined, so I left all four in. Index: mail/thunderbird/files/patch-mozilla-gfx-harfbuzz-src-hb-ot-layout.cc =================================================================== RCS file: mail/thunderbird/files/patch-mozilla-gfx-harfbuzz-src-hb-ot-layout.cc diff -N mail/thunderbird/files/patch-mozilla-gfx-harfbuzz-src-hb-ot-layout.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ mail/thunderbird/files/patch-mozilla-gfx-harfbuzz-src-hb-ot-layout.cc 25 Jun 2012 02:16:45 -0000 @@ -0,0 +1,11 @@ +--- mozilla/gfx/harfbuzz/src/hb-ot-layout.cc.orig 2012-06-24 22:14:46.463741874 -0400 ++++ mozilla/gfx/harfbuzz/src/hb-ot-layout.cc 2012-06-24 22:15:06.784770042 -0400 +@@ -540,4 +540,8 @@ + GPOS::position_finish (buffer); + } + ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf::search(unsigned int const &) const; + Index: www/firefox/files/patch-gfx-harfbuzz-src-hb-ot-layout.cc =================================================================== RCS file: www/firefox/files/patch-gfx-harfbuzz-src-hb-ot-layout.cc diff -N www/firefox/files/patch-gfx-harfbuzz-src-hb-ot-layout.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ www/firefox/files/patch-gfx-harfbuzz-src-hb-ot-layout.cc 25 Jun 2012 02:23:00 -0000 @@ -0,0 +1,11 @@ +--- gfx/harfbuzz/src/hb-ot-layout.cc.orig 2012-06-24 22:14:46.463741874 -0400 ++++ gfx/harfbuzz/src/hb-ot-layout.cc 2012-06-24 22:15:06.784770042 -0400 +@@ -540,4 +540,8 @@ + GPOS::position_finish (buffer); + } + ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf >::search(unsigned int const &) const; ++template int SortedArrayOf::search(unsigned int const &) const; + >Release-Note: >Audit-Trail: >Unformatted: