Package: mozilla
Version: 2:1.7.10-1
Severity: normal
Tags: patch

When building 'mozilla' on ppc64/unstable,
I get the following error:

g++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wno-long-long -O2 -DDEBIAN -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED 
-fPIC -shared -Wl,-h -Wl,libgklayout.so -o libgklayout.so  nsLayoutModule.o 
nsContentHTTPStartup.o nsContentDLF.o      -Wl,--whole-archive 
../../dist/lib/libgkhtmlbase_s.a ../../dist/lib/libgkhtmldoc_s.a 
../../dist/lib/libgkhtmlforms_s.a ../../dist/lib/libgkhtmlstyle_s.a 
../../dist/lib/libgkhtmltable_s.a ../../dist/lib/libgkxulbase_s.a 
../../dist/lib/libgkbase_s.a ../../dist/lib/libgkconbase_s.a 
../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a 
../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconhtmlstyle_s.a 
../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a 
../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxuldoc_s.a 
../../dist/lib/libgkconshared_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/libgkconxulcon_s.a 
../../dist/lib/libgkconxultmpl_s.a  ../../dist/lib/libgkmathmlcon_s.a 
../../dist/lib/libgkmathmlbase_s.a  ../../dist/lib/libgksvgbase_s.a 
../../dist/lib/libgkconsvgdoc_s.a ../../dist/lib/libgkcontentsvg_s.a  
../../dist/lib/libgksvgrendererlibart_s.a  -Wl,--no-whole-archive 
-L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a 
-L../../dist/bin -lxpcom  -L../../dist/bin 
-L/mozilla-1.7.10/build-tree/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread 
-ldl -lc -lpthread  -L../../dist/bin -lmozjs  -lmoz_art_lgpl -lm  -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 
-lpangoft2-1.0 -lpango-1.0 -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(nsIBox*, 
nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile 
with -mminimal-toc or -fno-optimize-sibling-calls, or make 
`nsGridRowGroupLayout::GetMaxSize(nsIBox*, nsBoxLayoutState&, nsSize&)' extern
/usr/bin/ld: ../../dist/lib/libgkxulbase_s.a(nsListBoxLayout.o)(.text+0x8fc): 
sibling call optimization to `nsGridRowGroupLayout::GetMinSize(nsIBox*, 
nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile 
with -mminimal-toc or -fno-optimize-sibling-calls, or make 
`nsGridRowGroupLayout::GetMinSize(nsIBox*, nsBoxLayoutState&, nsSize&)' extern
/usr/bin/ld: ../../dist/lib/libgkxulbase_s.a(nsListBoxLayout.o)(.text+0xabc): 
sibling call optimization to `nsGridRowGroupLayout::GetPrefSize(nsIBox*, 
nsBoxLayoutState&, nsSize&)' does not allow automatic multiple TOCs; recompile 
with -mminimal-toc or -fno-optimize-sibling-calls, or make 
`nsGridRowGroupLayout::GetPrefSize(nsIBox*, 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 `/mozilla-1.7.10/build-tree/mozilla/layout/build'

The attached patch fixes this by adding -mminimal-toc to OPTFLAGS for ppc64.

The patch also adds a debian/patches/ppc64-build-fix which is similar to
the build fixes for other architectures.

Regards
Andreas Jochens

diff -urN ../tmp-orig/mozilla-1.7.10/debian/rules ./debian/rules
--- ../tmp-orig/mozilla-1.7.10/debian/rules     2005-08-08 18:11:12.000000000 
+0000
+++ ./debian/rules      2005-08-08 13:13:33.000000000 +0000
@@ -52,6 +52,11 @@
 EXTRA_OPTIONS=
 endif
 
+# ppc64
+ifeq ($(DEB_BUILD_ARCH), ppc64)
+OPTFLAGS=-O -DDEBIAN -mminimal-toc
+endif
+
 # arm
 ifeq ($(DEB_BUILD_ARCH), arm)
 OPTFLAGS=-O -DDEBIAN
diff -urN ../tmp-orig/mozilla-1.7.10/debian/patches/ppc64-build-fix 
./debian/patches/ppc64-build-fix
--- ../tmp-orig/mozilla-1.7.10/debian/patches/ppc64-build-fix   1970-01-01 
00:00:00.000000000 +0000
+++ ./debian/patches/ppc64-build-fix    2005-08-08 09:59:45.000000000 +0000
@@ -0,0 +1,22 @@
+diff -urN tmp/security/coreconf/Linux.mk mozilla/security/coreconf/Linux.mk
+--- tmp/security/coreconf/Linux.mk     2005-04-01 17:44:09.000000000 +0200
++++ mozilla/security/coreconf/Linux.mk 2005-04-01 19:30:28.000000000 +0200
+@@ -58,6 +58,10 @@
+       OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
+       CPU_ARCH        = ppc
+ else
++ifeq ($(OS_TEST),ppc64)
++      OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
++      CPU_ARCH        = ppc64
++else
+ ifeq ($(OS_TEST),alpha)
+         OS_REL_CFLAGS   = -D_ALPHA_ -DLINUX1_2 -D_XOPEN_SOURCE
+       CPU_ARCH        = alpha
+@@ -132,6 +136,7 @@
+ endif
+ endif
+ endif
++endif
+ 
+ 
+ LIBC_TAG              = _glibc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to