Bug#266298: marked as done (balsa: FTBFS (amd64/gcc-3.4): unsigned int format, different type arg)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 17 Aug 2004 08:18:22 -0700


Your message dated Tue, 17 Aug 2004 11:02:04 -0400
with message-id <E1Bx5TQ-0003Rb-00@newraff.debian.org>
and subject line Bug#266298: fixed in balsa 2.2.3-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Aug 2004 12:42:46 +0000
>From aj@andaco.de Tue Aug 17 05:42:46 2004
Return-path: <aj@andaco.de>
Received: from d001143.adsl.hansenet.de (localhost) [80.171.1.143] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bx3Ic-0000aH-00; Tue, 17 Aug 2004 05:42:46 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1Bx3Iq-00032h-Fg; Tue, 17 Aug 2004 14:43:00 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: balsa: FTBFS (amd64/gcc-3.4): unsigned int format, different type arg
Message-Id: <E1Bx3Iq-00032h-Fg@localhost>
Date: Tue, 17 Aug 2004 14:43:00 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: balsa
Severity: normal
Tags: patch

When building 'balsa' with gcc-3.4 on amd64 I get the following error:

if cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../libbalsa -I../../libmutt -I../../libmutt -I../../libbalsa/imap -DORBIT2=1 -pthread -DXTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gmime-2.0   -DXTHREADS -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0   -DXTHREADS -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.1 -I/usr/include/gtk-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2     -I/usr/include    -ansi -Werror -g -Wall -O2 -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wuninitialized -Wmissing-prototypes -Wreturn-type -MT imap-commands.o -MD -MP -MF ".deps/imap-commands.Tpo" -c -o imap-commands.o imap-commands.c; \
then mv -f ".deps/imap-commands.Tpo" ".deps/imap-commands.Po"; else rm -f ".deps/imap-commands.Tpo"; exit 1; fi
imap-commands.c: In function `imap_mbox_append':
imap-commands.c:435: warning: unsigned int format, different type arg (arg 4)
imap-commands.c:438: warning: unsigned int format, different type arg (arg 3)
make[4]: *** [imap-commands.o] Error 1
make[4]: Leaving directory `/balsa-2.2.2/libbalsa/imap'

With the attached patch 'balsa' can be compiled using gcc-3.4 on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/balsa-2.2.2/libbalsa/imap/imap-commands.c ./libbalsa/imap/imap-commands.c
--- ../tmp-orig/balsa-2.2.2/libbalsa/imap/imap-commands.c	2004-08-04 13:17:13.000000000 +0200
+++ ./libbalsa/imap/imap-commands.c	2004-08-17 14:28:59.290575377 +0200
@@ -432,10 +432,10 @@
 
   if(flags) {
     gchar *str = enum_flag_to_str(flags);
-    cmd = g_strdup_printf("APPEND \"%s\" (%s) {%u%s}", mbx7, str, sz, litstr);
+    cmd = g_strdup_printf("APPEND \"%s\" (%s) {%u%s}", mbx7, str, (unsigned) sz, litstr);
     g_free(str);
   } else 
-    cmd = g_strdup_printf("APPEND \"%s\" {%u%s}", mbx7, sz, litstr);
+    cmd = g_strdup_printf("APPEND \"%s\" {%u%s}", mbx7, (unsigned) sz, litstr);
 
   c = imap_cmd_start(handle, cmd, &cmdno);
   g_free(mbx7); g_free(cmd);
diff -urN ../tmp-orig/balsa-2.2.2/libbalsa/imap/imap-search.c ./libbalsa/imap/imap-search.c
--- ../tmp-orig/balsa-2.2.2/libbalsa/imap/imap-search.c	2004-07-29 16:34:28.000000000 +0200
+++ ./libbalsa/imap/imap-search.c	2004-08-17 14:29:43.329880385 +0200
@@ -215,7 +215,7 @@
      life! */
   if(use_literal)
     sio_printf(handle->sio, "{%u+}\r\n%s",
-               strlen(k->d.string.s), k->d.string.s);
+               (unsigned) strlen(k->d.string.s), k->d.string.s);
   else { /* No literal+ suppport, do it the old way */
     for (s = k->d.string.s; *s && (*s & 0x80) == 0; s++)
       ;
@@ -274,8 +274,8 @@
 static void
 imap_write_key_size(ImapMboxHandle *handle, gboolean negate, size_t size)
 {
-  if(negate) sio_printf(handle->sio, "NOT LARGER %u", size);
-  else       sio_printf(handle->sio, "LARGER %u", size);
+  if(negate) sio_printf(handle->sio, "NOT LARGER %u", (unsigned) size);
+  else       sio_printf(handle->sio, "LARGER %u", (unsigned) size);
 }
 
 /* private.  */

---------------------------------------
Received: (at 266298-close) by bugs.debian.org; 17 Aug 2004 15:05:42 +0000
>From katie@ftp-master.debian.org Tue Aug 17 08:05:42 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bx5Ww-0008Kh-00; Tue, 17 Aug 2004 08:05:42 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1Bx5TQ-0003Rb-00; Tue, 17 Aug 2004 11:02:04 -0400
From: Andrew Lau <netsnipe@users.sourceforge.net>
To: 266298-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#266298: fixed in balsa 2.2.3-1
Message-Id: <E1Bx5TQ-0003Rb-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 17 Aug 2004 11:02:04 -0400
Delivered-To: 266298-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: balsa
Source-Version: 2.2.3-1

We believe that the bug you reported is fixed in the latest version of
balsa, which is due to be installed in the Debian FTP archive:

balsa_2.2.3-1.diff.gz
  to pool/main/b/balsa/balsa_2.2.3-1.diff.gz
balsa_2.2.3-1.dsc
  to pool/main/b/balsa/balsa_2.2.3-1.dsc
balsa_2.2.3-1_i386.deb
  to pool/main/b/balsa/balsa_2.2.3-1_i386.deb
balsa_2.2.3.orig.tar.gz
  to pool/main/b/balsa/balsa_2.2.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 266298@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrew Lau <netsnipe@users.sourceforge.net> (supplier of updated balsa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 18 Aug 2004 00:09:26 +1000
Source: balsa
Binary: balsa
Architecture: source i386
Version: 2.2.3-1
Distribution: unstable
Urgency: low
Maintainer: Andrew Lau <netsnipe@users.sourceforge.net>
Description: 
 balsa      - An e-mail client for GNOME
Closes: 266298
Changes: 
 balsa (2.2.3-1) unstable; urgency=low
 .
   * New upstream release.
   * Fix build failures on 64-bit platforms.
     Thanks: Andreas Jochens <aj@andaco.de>
     - Patch: 00_64-bit.patch
       (closes: #266298)
Files: 
 1e4ff7d88f8f66620e574305c8031e1b 1615 gnome optional balsa_2.2.3-1.dsc
 b1473e5495cea4af9ce3e05ae4e6af60 4275884 gnome optional balsa_2.2.3.orig.tar.gz
 8b4c56007c270a025f214480397b1211 6727 gnome optional balsa_2.2.3-1.diff.gz
 23ffcbdc0a1c8461bf9edfa73f6f9636 2111372 gnome optional balsa_2.2.3-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBIhux9OZqfMIN8nMRArmEAJkBJZDEVin+knjyewUq4eU/GyVYkgCgmd9F
tyA35+5Nbw8TIglXDwZNZ+o=
=5Vi7
-----END PGP SIGNATURE-----