Date: Mon, 25 Jun 2012 03:41:58 GMT From: Alexander Kabaev <kan@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/169389: Firefox/Thunderbird fail to build with system GCC Message-ID: <201206250341.q5P3fwk7055310@freefall.freebsd.org> Resent-Message-ID: <201206250350.q5P3o5Dl056131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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<RangeRecord>::search<unsigned int>(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<Record<LangSys> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<Record<Script> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<IntType<unsigned short> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<RangeRecord>::search<unsigned int>(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<Record<LangSys> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<Record<Script> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<IntType<unsigned short> >::search<unsigned int>(unsigned int const &) const; ++template int SortedArrayOf<RangeRecord>::search<unsigned int>(unsigned int const &) const; + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206250341.q5P3fwk7055310>