Package: thunderbird Version: 1.5-4 Severity: wishlist Tags: patch When building 'thunderbird' on ppc64/unstable, I get the following error:
nsContentHTTPStartup.cpp c++ -o nsContentHTTPStartup.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006040521 -D_IMPL_NS_LAYOUT -I./../base -I./../generic -I./../forms -I./../style -I./../xul/content/src -I./../xul/base/src -I./../../content/base/src -I./../../content/html/content/src -I./../../content/html/document/src -I./../../content/html/style/src -I./../../content/xul/content/src -I./../../content/xul/templates/src -I./../../content/events/src -I./../../content/xbl/src -I../../view/src -I../../dom/src/base -I../../dom/src/jsurl -I. -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/content -I../../dist/include/gfx -I../../dist/include/widget -I../../dist/include/view -I../../dist/include/locale -I../../dist/include/necko -I../../dist/include/dom -I../../dist/include/editor -I../../dist/include/webshell -I../../dist/include/docshell -I../../dist/include/htmlparser -I../../dist/include/js -I../../dist/include/xpconnect -I../../dist/include/uriloader -I../../dist/include/caps -I../../dist/include/necko2 -I../../dist/include/rdf -I../../dist/include/xuldoc -I../../dist/include/imglib2 -I../../dist/include/pref -I../../dist/include/unicharutil -I../../dist/include/xul -I../../dist/include/xultmpl -I../../dist/include/lwbrk -I../../dist/include/plugin -I../../dist/include/commandhandler -I../../dist/include/webbrwsr -I../../dist/include/uconv -I../../dist/include/layout -I../../dist/include -I../../dist/include/nspr -I/usr/include -I/usr/include -I/usr/include -I../../dist/sdk/include -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -fno-strict-aliasing -fno-unsigned-char -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsContentHTTPStartup.pp nsContentHTTPStartup.cpp nsContentDLF.cpp c++ -o nsContentDLF.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006040521 -D_IMPL_NS_LAYOUT -I./../base -I./../generic -I./../forms -I./../style -I./../xul/content/src -I./../xul/base/src -I./../../content/base/src -I./../../content/html/content/src -I./../../content/html/document/src -I./../../content/html/style/src -I./../../content/xul/content/src -I./../../content/xul/templates/src -I./../../content/events/src -I./../../content/xbl/src -I../../view/src -I../../dom/src/base -I../../dom/src/jsurl -I. -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/content -I../../dist/include/gfx -I../../dist/include/widget -I../../dist/include/view -I../../dist/include/locale -I../../dist/include/necko -I../../dist/include/dom -I../../dist/include/editor -I../../dist/include/webshell -I../../dist/include/docshell -I../../dist/include/htmlparser -I../../dist/include/js -I../../dist/include/xpconnect -I../../dist/include/uriloader -I../../dist/include/caps -I../../dist/include/necko2 -I../../dist/include/rdf -I../../dist/include/xuldoc -I../../dist/include/imglib2 -I../../dist/include/pref -I../../dist/include/unicharutil -I../../dist/include/xul -I../../dist/include/xultmpl -I../../dist/include/lwbrk -I../../dist/include/plugin -I../../dist/include/commandhandler -I../../dist/include/webbrwsr -I../../dist/include/uconv -I../../dist/include/layout -I../../dist/include -I../../dist/include/nspr -I/usr/include -I/usr/include -I/usr/include -I../../dist/sdk/include -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -fno-strict-aliasing -fno-unsigned-char -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsContentDLF.pp nsContentDLF.cpp rm -f libgklayout.so c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -fno-strict-aliasing -fno-unsigned-char -fPIC -shared -Wl,-h -Wl,libgklayout.so -o libgklayout.so nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o -Wl,--whole-archive ../../dist/lib/libgkbase_s.a ../../dist/lib/libgkgeneric_s.a ../../dist/lib/libgkforms_s.a ../../dist/lib/libgkstyle_s.a ../../dist/lib/libgkprinting_s.a ../../dist/lib/libgktable_s.a ../../dist/lib/libgkxulbase_s.a ../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconcvs_s.a ../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a ../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a ../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a ../../dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxultmpl_s.a ../../dist/lib/libgkcontentxtf_s.a ../../dist/lib/libgkxtfbase_s.a -Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L../../dist/bin -lmozjs -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXcursor -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm /usr/bin/ld: ../../dist/lib/libgkxulbase_s.a(nsListBoxLayout.o)(.text+0x164): sibling call optimization to `nsGridRowGroupLayout::GetMaxSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `nsGridRowGroupLayout::GetMaxSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' extern /usr/bin/ld: ../../dist/lib/libgkxulbase_s.a(nsListBoxLayout.o)(.text+0x74c): sibling call optimization to `nsGridRowGroupLayout::GetMinSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `nsGridRowGroupLayout::GetMinSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' extern /usr/bin/ld: ../../dist/lib/libgkxulbase_s.a(nsListBoxLayout.o)(.text+0x8fc): sibling call optimization to `nsGridRowGroupLayout::GetPrefSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `nsGridRowGroupLayout::GetPrefSize(nsIFrame*, nsBoxLayoutState&, nsSize&)' extern /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[4]: *** [libgklayout.so] Error 1 make[4]: Leaving directory `/thunderbird-1.5/build-dir/mozilla/layout/build' With the attached patch 'thunderbird' can be compiled on ppc64. Regards Andreas Jochens diff -urN ../tmp-orig/thunderbird-1.5/debian/patches/00list ./debian/patches/00list --- ../tmp-orig/thunderbird-1.5/debian/patches/00list 2006-04-05 18:14:33.000000000 +0000 +++ ./debian/patches/00list 2006-04-05 17:47:05.000000000 +0000 @@ -7,3 +7,4 @@ 70_gtk-settings-patch 70_exclude_sep_extensions_autobuild 70_single_typeaheadfind_package.dpatch +90_ppc64-build-fix diff -urN ../tmp-orig/thunderbird-1.5/debian/patches/90_ppc64-build-fix.dpatch ./debian/patches/90_ppc64-build-fix.dpatch --- ../tmp-orig/thunderbird-1.5/debian/patches/90_ppc64-build-fix.dpatch 1970-01-01 00:00:00.000000000 +0000 +++ ./debian/patches/90_ppc64-build-fix.dpatch 2006-04-05 17:55:20.000000000 +0000 @@ -0,0 +1,47 @@ +#!/bin/sh -e +## 50_ppc64-build-fix.dpatch +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + [EMAIL PROTECTED]@ +diff -urN mozilla.orig/security/coreconf/Linux.mk mozilla/security/coreconf/Linux.mk +--- mozilla.orig/security/coreconf/Linux.mk 2005-08-10 12:13:21.000000000 +0000 ++++ mozilla/security/coreconf/Linux.mk 2005-08-10 18:01:20.000000000 +0000 +@@ -54,6 +54,10 @@ + OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE + CPU_ARCH = m68k + else ++ifeq ($(OS_TEST),ppc64) ++ OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE ++ CPU_ARCH = ppc64 ++else + ifeq ($(OS_TEST),ppc) + OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE + CPU_ARCH = ppc +@@ -122,6 +126,7 @@ + endif + endif + endif ++endif + + + LIBC_TAG = _glibc diff -urN ../tmp-orig/thunderbird-1.5/debian/rules ./debian/rules --- ../tmp-orig/thunderbird-1.5/debian/rules 2006-04-05 18:14:33.000000000 +0000 +++ ./debian/rules 2006-04-05 17:47:44.000000000 +0000 @@ -29,6 +29,10 @@ OPTFLAGS = -O2 -fno-strict-aliasing -fno-unsigned-char +ifeq ($(DEB_BUILD_ARCH),ppc64) +OPTFLAGS += -mminimal-toc +endif + #NULL = #CONFIGURE_OPTIONS = \ # --program-prefix= \ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]