Package: mozilla-thunderbird
Severity: normal
Tags: patch
When building 'mozilla-thunderbird' on amd64 or ppc64 with gcc-4.0,
I get the following error:
make[5]: Entering directory
`/mozilla-thunderbird-1.0/build-dir/mozilla/security/nss/lib/pki'
gcc -o Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/asymmkey.o -c -O2 -fPIC -DLINUX1_2
-D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux -D_POSIX_SOURCE
-D_BSD_SOURCE -DHAVE_STRERROR -DXP_UNIX -DNSS_3_4_CODE -UDEBUG -DNDEBUG
-D_REENTRANT -I/mozilla-thunderbird-1.0/build-dir/mozilla/dist/include
-I../../../../dist/public/nss -I../../../../dist/private/nss
-I../../../../dist/include
-I/mozilla-thunderbird-1.0/build-dir/mozilla/dist/include/nspr
-I/mozilla-thunderbird-1.0/build-dir/mozilla/dist/include/dbm
-I../../../../dist/public/nspr asymmkey.c
In file included from ../../../../dist/private/nss/nsspki1.h:57,
from nsspki.h:56,
from asymmkey.c:39:
../../../../dist/private/nss/oiddata.h:46: error: array type has incomplete
element type
With the attached patch 'mozilla-thunderbird' can be compiled
on amd64 with gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/mozilla-thunderbird-1.0/debian/patches/00list
./debian/patches/00list
--- ../tmp-orig/mozilla-thunderbird-1.0/debian/patches/00list 2005-03-22
22:42:43.235161801 +0100
+++ ./debian/patches/00list 2005-03-22 21:32:33.000000000 +0100
@@ -26,3 +26,5 @@
70_single_typeaheadfind_package
80_mailnews_imap_perm-patch
80_mozilla-thunderbird-in-reply-to
+90_gcc4_fix
+
diff -urN ../tmp-orig/mozilla-thunderbird-1.0/debian/patches/90_gcc4_fix.dpatch
./debian/patches/90_gcc4_fix.dpatch
--- ../tmp-orig/mozilla-thunderbird-1.0/debian/patches/90_gcc4_fix.dpatch
1970-01-01 01:00:00.000000000 +0100
+++ ./debian/patches/90_gcc4_fix.dpatch 2005-03-22 21:55:02.069325708 +0100
@@ -0,0 +1,110 @@
+#!/bin/sh -e
+## 90_gcc4_fix.dpatch
+##
+## All lines beginning with `## DP:' are a description of the patch.
+
+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 tmp/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
+--- tmp/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
2004-09-02 01:31:03.000000000 +0200
++++ mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 2005-03-22
18:03:58.000000000 +0100
+@@ -834,8 +834,8 @@
+ void
+ nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
+ {
+- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
+- PRUint16 value = PRUint32(param) & 0x0000FFFF;
++ PRUint16 name = (long(param) & 0xFFFF0000) >> 16;
++ PRUint16 value = long(param) & 0x0000FFFF;
+
+ switch (name) {
+ case MAX_CONNECTIONS:
+diff -urN tmp/mozilla/gfx/src/freetype/nsFreeType.cpp
mozilla/gfx/src/freetype/nsFreeType.cpp
+--- tmp/mozilla/gfx/src/freetype/nsFreeType.cpp 2004-02-07
16:22:30.000000000 +0100
++++ mozilla/gfx/src/freetype/nsFreeType.cpp 2005-03-22 19:21:29.764743341
+0100
+@@ -96,7 +96,7 @@
+ // Define the FreeType2 functions we resolve at run time.
+ // see the comment near nsFreeType2::DoneFace() for more info
+ //
+-#define NS_FT2_OFFSET(f) (int)&((nsFreeType2*)0)->f
++#define NS_FT2_OFFSET(f) (long)&((nsFreeType2*)0)->f
+ FtFuncList nsFreeType2::FtFuncs [] = {
+ {"FT_Done_Face", NS_FT2_OFFSET(nsFT_Done_Face),
PR_TRUE},
+ {"FT_Done_FreeType", NS_FT2_OFFSET(nsFT_Done_FreeType),
PR_TRUE},
+diff -urN tmp/mozilla/widget/src/gtk2/nsDragService.cpp
mozilla/widget/src/gtk2/nsDragService.cpp
+--- tmp/mozilla/widget/src/gtk2/nsDragService.cpp 2005-03-22
17:43:18.000000000 +0100
++++ mozilla/widget/src/gtk2/nsDragService.cpp 2005-03-22 20:03:21.286987332
+0100
+@@ -901,7 +901,7 @@
+ (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
+ listTarget->target = g_strdup(gMimeListType);
+ listTarget->flags = 0;
+- listTarget->info = (guint)listAtom;
++ listTarget->info = (gulong)listAtom;
+ PR_LOG(sDragLm, PR_LOG_DEBUG,
+ ("automatically adding target %s with id %ld\n",
+ listTarget->target, listAtom));
+@@ -940,7 +940,7 @@
+ (GtkTargetEntry
*)g_malloc(sizeof(GtkTargetEntry));
+ listTarget->target = g_strdup(gTextUriListType);
+ listTarget->flags = 0;
+- listTarget->info = (guint)listAtom;
++ listTarget->info = (gulong)listAtom;
+ PR_LOG(sDragLm, PR_LOG_DEBUG,
+ ("automatically adding target %s with \
+ id %ld\n", listTarget->target, listAtom));
+@@ -977,7 +977,7 @@
+ (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
+ target->target = g_strdup(flavorStr);
+ target->flags = 0;
+- target->info = (guint)atom;
++ target->info = (gulong)atom;
+ PR_LOG(sDragLm, PR_LOG_DEBUG,
+ ("adding target %s with id %ld\n",
+ target->target, atom));
+@@ -994,7 +994,7 @@
+ (GtkTargetEntry
*)g_malloc(sizeof(GtkTargetEntry));
+ plainTarget->target = g_strdup(kTextMime);
+ plainTarget->flags = 0;
+- plainTarget->info = (guint)plainAtom;
++ plainTarget->info = (gulong)plainAtom;
+ PR_LOG(sDragLm, PR_LOG_DEBUG,
+ ("automatically adding target %s with \
+ id %ld\n", plainTarget->target,
plainAtom));
+@@ -1011,7 +1011,7 @@
+ (GtkTargetEntry
*)g_malloc(sizeof(GtkTargetEntry));
+ urlTarget->target = g_strdup(gMozUrlType);
+ urlTarget->flags = 0;
+- urlTarget->info = (guint)urlAtom;
++ urlTarget->info = (gulong)urlAtom;
+ PR_LOG(sDragLm, PR_LOG_DEBUG,
+ ("automatically adding target %s with \
+ id %ld\n", urlTarget->target, urlAtom));
+diff -urN tmp/security/nss/lib/pki1/oiddata.h
mozilla/security/nss/lib/pki1/oiddata.h
+--- tmp/security/nss/lib/pki1/oiddata.h 2002-01-04 06:22:07.000000000
+0100
++++ mozilla/security/nss/lib/pki1/oiddata.h 2005-03-22 21:54:17.573923444
+0100
+@@ -43,7 +43,7 @@
+ #include "nsspki1t.h"
+ #endif /* NSSPKI1T_H */
+
+-extern const NSSOID nss_builtin_oids[];
++/*extern const NSSOID nss_builtin_oids[];*/
+ extern const PRUint32 nss_builtin_oid_count;
+
+ /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]