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

Bug#298415: marked as done (shx: FTBFS (amd64/gcc-4.0): )



Your message dated Wed, 20 Jul 2005 08:48:02 -0400
with message-id <E1DvDzW-0007UV-00@newraff.debian.org>
and subject line Bug#298415: fixed in shx 1:0.1.49-3
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; 7 Mar 2005 12:06:35 +0000
>From aj@andaco.de Mon Mar 07 04:06:35 2005
Return-path: <aj@andaco.de>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D8H0N-00056H-00; Mon, 07 Mar 2005 04:06:35 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1D8Hwa-0006uj-Vc; Mon, 07 Mar 2005 14:06:44 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: shx: FTBFS (amd64/gcc-4.0): 
Message-Id: <E1D8Hwa-0006uj-Vc@localhost.localdomain>
Date: Mon, 07 Mar 2005 14:06:44 +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: shx
Severity: normal
Tags: patch

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

hx_commands.c: In function 'expand_path':
hx_commands.c:2954: error: invalid lvalue in assignment

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/shx-0.1.49/hx_commands.c ./hx_commands.c
--- ../tmp-orig/shx-0.1.49/hx_commands.c	2001-09-01 18:32:03.000000000 +0200
+++ ./hx_commands.c	2005-03-07 14:02:59.271076567 +0100
@@ -2951,7 +2951,7 @@
 	epchr = 0;
 	ambig = 0;
 	for (fh = cfl->fh; (u_int32_t)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
-	     (char *)fh += flen + SIZEOF_HL_DATA_HDR) {
+	     fh = (char *)fh + flen + SIZEOF_HL_DATA_HDR) {
 		L16NTOH(flen, &fh->len);
 		L32NTOH(fnlen, &fh->fnlen);
 		if (fnlen >= len && !strncmp(fh->fname, ent, len)) {
@@ -3030,7 +3030,7 @@
 			continue;
 
 		for (fh = cfl->fh; (u_int32_t)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
-		     (char *)fh += flen + SIZEOF_HL_DATA_HDR) {
+		     fh = (char *)fh + flen + SIZEOF_HL_DATA_HDR) {
 			L16NTOH(flen, &fh->len);
 			L32NTOH(fnlen, &fh->fnlen);
 			len = strlen(cfl->path) + 1 + fnlen + 1;
@@ -3113,7 +3113,7 @@
 		return 0;
 
 	for (fh = cfl->fh; (u_int32_t)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
-	     (char *)fh += flen + SIZEOF_HL_DATA_HDR) {
+	     fh = (char *)fh + flen + SIZEOF_HL_DATA_HDR) {
 		L16NTOH(flen, &fh->len);
 		L32NTOH(fnlen, &fh->fnlen);
 		if ((int)fnlen == len && !strncmp(fh->fname, ent, len))
diff -urN ../tmp-orig/shx-0.1.49/hx_tty.c ./hx_tty.c
--- ../tmp-orig/shx-0.1.49/hx_tty.c	2001-08-29 13:40:38.000000000 +0200
+++ ./hx_tty.c	2005-03-07 14:03:17.188618151 +0100
@@ -1080,7 +1080,7 @@
 	struct hl_filelist_hdr *fh;
 
 	for (fh = cfl->fh; (u_int32_t)((char *)fh - (char *)cfl->fh) < cfl->fhlen;
-	     (char *)fh += ntohs(fh->len) + SIZEOF_HL_DATA_HDR) {
+	     fh = (char *)fh + ntohs(fh->len) + SIZEOF_HL_DATA_HDR) {
 		fnlen = ntohl(fh->fnlen);
 		for (i = 0, bpos = 0; i < fnlen && bpos < sizeof(buf); i++) {
 			if (!isgraph(fh->fname[i])) {

---------------------------------------
Received: (at 298415-close) by bugs.debian.org; 20 Jul 2005 12:53:03 +0000
>From katie@ftp-master.debian.org Wed Jul 20 05:53:03 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.36 1 (Debian))
	id 1DvE4N-0002b9-00; Wed, 20 Jul 2005 05:53:03 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DvDzW-0007UV-00; Wed, 20 Jul 2005 08:48:02 -0400
From: Aurelien Jarno <aurel32@debian.org>
To: 298415-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#298415: fixed in shx 1:0.1.49-3
Message-Id: <E1DvDzW-0007UV-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 20 Jul 2005 08:48:02 -0400
Delivered-To: 298415-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-Level: 
X-Spam-Status: No, hits=-4.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: shx
Source-Version: 1:0.1.49-3

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

shx_0.1.49-3.diff.gz
  to pool/main/s/shx/shx_0.1.49-3.diff.gz
shx_0.1.49-3.dsc
  to pool/main/s/shx/shx_0.1.49-3.dsc
shx_0.1.49-3_i386.deb
  to pool/main/s/shx/shx_0.1.49-3_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 298415@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated shx 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, 20 Jul 2005 13:44:31 +0200
Source: shx
Binary: shx
Architecture: source i386
Version: 1:0.1.49-3
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 shx        - a console hotline client
Closes: 298415 319174
Changes: 
 shx (1:0.1.49-3) unstable; urgency=low
 .
   * QA Upload.
   * Fixed build with gcc-4.0. Thanks to Andreas Jochen for the patch (closes:
     bug#298415).
   * Update config.{guess,sub} from autotools-dev (closes: bug#319174).
Files: 
 c797d9ee465c8100dc891d4baa0bd254 589 net optional shx_0.1.49-3.dsc
 b2d506456fad8c93c0f0567eecc391ff 3782 net optional shx_0.1.49-3.diff.gz
 cbfc3b303205694bf8c0dbb5db546ac2 74584 net optional shx_0.1.49-3_i386.deb

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

iD8DBQFC3jm5w3ao2vG823MRAiN6AJ0X/ulhDw2fhE1Y1fP0k68BO3n0DgCePON0
WMklIJx2ekRnD4cCKndaOC0=
=E2WI
-----END PGP SIGNATURE-----



Reply to: