[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#297285: marked as done (zed: FTBFS (amd64/gcc-4.0): cast from 'int*' to 'int' loses precision)



Your message dated Tue, 15 Mar 2005 11:02:21 -0500
with message-id <E1DBEUv-0006Wn-00@newraff.debian.org>
and subject line Bug#297285: fixed in zed 1.0.5-11
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; 28 Feb 2005 13:03:13 +0000
>From aj@andaco.de Mon Feb 28 05:03:13 2005
Return-path: <aj@andaco.de>
Received: from c204041.adsl.hansenet.de (localhost.localdomain) [213.39.204.41] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D5kYL-0007zc-00; Mon, 28 Feb 2005 05:03:13 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1D5lUf-0005gp-1r; Mon, 28 Feb 2005 15:03:29 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: zed: FTBFS (amd64/gcc-4.0): cast from 'int*' to 'int' loses precision
Message-Id: <E1D5lUf-0005gp-1r@localhost.localdomain>
Date: Mon, 28 Feb 2005 15:03:29 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(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_2005_01_02
X-Spam-Level: 

Package: zed
Severity: normal
Tags: patch

When building 'zed' on amd64 with gcc-4.0,
I get the following error:

g++ -O2 -Wall   -o lowl.o -c lowl.cc
lowl.cc: In function 'int exectst(int*)':
lowl.cc:1462: error: cast from 'int*' to 'int' loses precision
lowl.cc:1471: error: cast from 'int*' to 'unsigned int' loses precision
make[1]: *** [lowl.o] Error 1
make[1]: Leaving directory `/zed-1.0.5'
make: *** [build.stamp] Error 2

With the attached patch 'zed' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/zed-1.0.5/lowl.cc ./lowl.cc
--- ../tmp-orig/zed-1.0.5/lowl.cc	2000-04-05 11:47:41.000000000 +0200
+++ ./lowl.cc	2005-02-28 14:43:43.070936729 +0100
@@ -1459,7 +1459,7 @@
     *dato positivo setta sp=dato...
  */
 
- switch((int)dato)
+ switch((long)dato)
  {
   case 0 : ignore=0; return(0);
   case 1 : ignore=1; return(0);
@@ -1468,7 +1468,7 @@
   case 4 : sp=0; ssp=0; lstr=0; return(0);
  }
 
- if (((unsigned int)dato)>10 && (*dato)>0)
+ if (((unsigned long)dato)>10 && (*dato)>0)
  {
   sp=config.cmds+(*dato-1); lstr=0; ssp=0;
   return(0);

---------------------------------------
Received: (at 297285-close) by bugs.debian.org; 15 Mar 2005 16:09:04 +0000
>From katie@ftp-master.debian.org Tue Mar 15 08:09:04 2005
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 1DBEbP-0002SO-00; Tue, 15 Mar 2005 08:09:04 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DBEUv-0006Wn-00; Tue, 15 Mar 2005 11:02:21 -0500
From: Philipp Kern <pkern@debian.org>
To: 297285-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#297285: fixed in zed 1.0.5-11
Message-Id: <E1DBEUv-0006Wn-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 15 Mar 2005 11:02:21 -0500
Delivered-To: 297285-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(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_2005_01_02
X-Spam-Level: 

Source: zed
Source-Version: 1.0.5-11

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

zed_1.0.5-11.diff.gz
  to pool/main/z/zed/zed_1.0.5-11.diff.gz
zed_1.0.5-11.dsc
  to pool/main/z/zed/zed_1.0.5-11.dsc
zed_1.0.5-11_i386.deb
  to pool/main/z/zed/zed_1.0.5-11_i386.deb



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 297285@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated zed 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: Tue, 15 Mar 2005 15:43:23 +0000
Source: zed
Binary: zed
Architecture: source i386
Version: 1.0.5-11
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description: 
 zed        - Powerful, multipurpose, configurable text editor
Closes: 241342 297285
Changes: 
 zed (1.0.5-11) unstable; urgency=low
 .
   * QA upload.
   * Applied fix to the C/C++ token parser. (Thanks to Tom Marshall)
     (Closes: #241342)
   * Fixed FTBFS on amd64/gcc-4.0. (Thanks to Andreas Jochens)
     (Closes: #297285)
 .
 zed (1.0.5-10) unstable; urgency=low
 .
   * Upgraded to Standards-Version 3.6.1.
     -icon file resized and moved to /usr/share/zed
Files: 
 047c202194b2d5eb70ddf605f9100b36 570 editors optional zed_1.0.5-11.dsc
 1c29f87cef423d61c53889b007d93efc 6170 editors optional zed_1.0.5-11.diff.gz
 802a2d674f050646b44c9a0c8f7da0db 242964 editors optional zed_1.0.5-11_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iEUEARECAAYFAkI3BVsACgkQ7Ro5M7LPzdh2rACcCvT3C6YcdS123dWk7SZmKbfg
mxoAlA5+FCDLFAeKj8JUxu5zeU4GmnM=
=cgYt
-----END PGP SIGNATURE-----



Reply to: