Package: nvu Version: 0.80-3 Severity: normal Tags: patch When building 'nvu' on amd64/unstable with gcc-4.0, I get the following error:
nsHttpConnectionMgr.cpp c++ -o nsHttpConnectionMgr.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I./../../../base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps -I../../../../dist/include/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv -I../../../../dist/include/necko -I../../../../dist/include -I/nvu-0.80/mozilla/dist/include/nspr -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 -DDEBIAN -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsHttpConnectionMgr.pp nsHttpConnectionMgr.cpp nsHttpConnectionMgr.cpp: In member function 'void nsHttpConnectionMgr::OnMsgUpdateParam(nsresult, void*)': nsHttpConnectionMgr.cpp:837: error: cast from 'void*' to 'PRUint32' loses precision nsHttpConnectionMgr.cpp:838: error: cast from 'void*' to 'PRUint32' loses precision make[7]: *** [nsHttpConnectionMgr.o] Error 1 make[7]: Leaving directory `/nvu-0.80/mozilla/netwerk/protocol/http/src' With the attached patch 'nvu' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/nvu-0.80/debian/rules ./debian/rules --- ../tmp-orig/nvu-0.80/debian/rules 2005-04-08 11:34:12.069806272 +0200 +++ ./debian/rules 2005-04-08 11:16:32.746003646 +0200 @@ -17,7 +17,7 @@ # Add here commands to compile the package. - if [ ! -d mozilla ]; then tar xjvf nvu*bz2; fi + if [ ! -d mozilla ]; then tar xjvf nvu*bz2; patch -p0 <gcc4.diff; fi cp debian/mozconfig.debian mozilla/.mozconfig cd mozilla && $(MAKE) -f client.mk build_all diff -urN ../tmp-orig/nvu-0.80/gcc4.diff ./gcc4.diff --- ../tmp-orig/nvu-0.80/gcc4.diff 1970-01-01 01:00:00.000000000 +0100 +++ ./gcc4.diff 2005-04-08 11:17:47.255840705 +0200 @@ -0,0 +1,94 @@ +--- gfx/src/freetype/nsFreeType.cpp 7 Feb 2004 15:22:30 -0000 1.24 ++++ mozilla/gfx/src/freetype/nsFreeType.cpp 4 Mar 2005 19:59:53 -0000 +@@ -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) (NS_PTR_TO_INT32(&((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}, +--- netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 1 Sep 2004 23:31:03 -0000 1.7.20.1 ++++ mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 4 Mar 2005 19:59:57 -0000 +@@ -834,8 +834,8 @@ + void + nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param) + { +- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16; +- PRUint16 value = PRUint32(param) & 0x0000FFFF; ++ PRUint16 name = (NS_PTR_TO_INT32(param) & 0xFFFF0000) >> 16; ++ PRUint16 value = NS_PTR_TO_INT32(param) & 0x0000FFFF; + + switch (name) { + case MAX_CONNECTIONS: +--- security/nss/lib/pki1/oiddata.h 4 Jan 2002 05:22:07 -0000 1.1 ++++ mozilla/security/nss/lib/pki1/oiddata.h 4 Mar 2005 19:59:58 -0000 +@@ -43,9 +43,6 @@ + #include "nsspki1t.h" + #endif /* NSSPKI1T_H */ + +-extern const NSSOID nss_builtin_oids[]; +-extern const PRUint32 nss_builtin_oid_count; +- + /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/ + /*extern const PRUint32 nss_attribute_type_alias_count;*/ + +--- security/nss/lib/pki1/pki1.h 19 Jul 2001 20:40:42 -0000 1.2 ++++ mozilla/security/nss/lib/pki1/pki1.h 4 Mar 2005 19:59:59 -0000 +@@ -58,6 +58,8 @@ + /* fgmr 19990505 moved these here from oiddata.h */ + extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[]; + extern const PRUint32 nss_attribute_type_alias_count; ++extern const NSSOID nss_builtin_oids[]; ++extern const PRUint32 nss_builtin_oid_count; + + /* + * NSSOID +--- widget/src/gtk2/nsDragService.cpp 30 Oct 2003 01:48:41 -0000 1.5 ++++ mozilla/widget/src/gtk2/nsDragService.cpp 4 Mar 2005 20:00:01 -0000 +@@ -838,7 +838,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + listTarget->target = g_strdup(gMimeListType); + listTarget->flags = 0; +- listTarget->info = (guint)listAtom; ++ listTarget->info = (guint)(NS_PTR_TO_INT32(listAtom)); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with id %ld\n", + listTarget->target, listAtom)); +@@ -877,7 +877,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + listTarget->target = g_strdup(gTextUriListType); + listTarget->flags = 0; +- listTarget->info = (guint)listAtom; ++ listTarget->info = (guint)NS_PTR_TO_INT32(listAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", listTarget->target, listAtom)); +@@ -914,7 +914,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + target->target = g_strdup(flavorStr); + target->flags = 0; +- target->info = (guint)atom; ++ target->info = (guint)NS_PTR_TO_INT32(atom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("adding target %s with id %ld\n", + target->target, atom)); +@@ -931,7 +931,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + plainTarget->target = g_strdup(kTextMime); + plainTarget->flags = 0; +- plainTarget->info = (guint)plainAtom; ++ plainTarget->info = (guint)NS_PTR_TO_INT32(plainAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", plainTarget->target, plainAtom)); +@@ -948,7 +948,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + urlTarget->target = g_strdup(gMozUrlType); + urlTarget->flags = 0; +- urlTarget->info = (guint)urlAtom; ++ urlTarget->info = (guint)NS_PTR_TO_INT32(urlAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", urlTarget->target, urlAtom)); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]