Your message dated Mon, 16 Jan 2006 18:47:04 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#300401: fixed in pearpc 0.4.0-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; 19 Mar 2005 13:56:48 +0000
>From [EMAIL PROTECTED] Sat Mar 19 05:56:48 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DCeRb-00041f-00; Sat, 19 Mar 2005 05:56:47 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
        id 1DCeRW-0002o1-IP; Sat, 19 Mar 2005 14:56:43 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: pearpc: FTBFS (amd64/gcc-4.0): invalid lvalue in increment
Message-Id: <[EMAIL PROTECTED]>
Date: Sat, 19 Mar 2005 14:56:43 +0100
Delivered-To: [EMAIL PROTECTED]
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: pearpc
Severity: normal
Tags: patch

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

btree.c:122: error: invalid lvalue in increment
btree.c:123: error: invalid lvalue in increment
btree.c:125: error: invalid lvalue in increment
btree.c: In function 'btree_init':
btree.c:396: error: invalid lvalue in assignment
make[7]: *** [btree.o] Error 1
make[7]: Leaving directory `/pearpc-0.3.1+1/src/io/prom/fs/hfsplus'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/btree.c 
./src/io/prom/fs/hfsplus/btree.c
--- ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/btree.c   2004-05-06 
00:46:14.000000000 +0200
+++ ./src/io/prom/fs/hfsplus/btree.c    2005-04-02 15:44:38.919186784 +0200
@@ -393,7 +393,7 @@
        {
            p = volume_readfromfork(vol, nodebuf, fork, 0, bt->blkpernode,
                 HFSP_EXTENT_DATA, bt->cnid);
-           ((char*) p) += HEADER_RESERVEDOFFSET; // skip header
+           p = ((char*) p) + HEADER_RESERVEDOFFSET; // skip header
        }
        
        bt->alloc_bits = malloc(alloc_size);
diff -urN ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/swab.h 
./src/io/prom/fs/hfsplus/swab.h
--- ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/swab.h    2004-05-06 
00:45:53.000000000 +0200
+++ ./src/io/prom/fs/hfsplus/swab.h     2005-04-02 15:44:23.858045704 +0200
@@ -39,28 +39,28 @@
 
 #define bswabU16(val) bswap_16(val)
 
-#define bswabU16_inc(ptr) bswap_16(*((UInt16*) (ptr))++)
-#define bswabU32_inc(ptr) bswap_32(*((UInt32*) (ptr))++)
-#define bswabU64_inc(ptr) bswap_64(*((APPLEUInt64*) (ptr))++)
-
-#define bstoreU16_inc(ptr, val) (*((UInt16*) (ptr))++) = bswap_16(val)
-#define bstoreU32_inc(ptr, val) (*((UInt32*) (ptr))++) = bswap_32(val)
-#define bstoreU64_inc(ptr, val) (*((APPLEUInt64*) (ptr))++) = bswap_64(val)
+#define bswabU16_inc(ptr) bswap_16(*((UInt16*) (ptr))); ptr = (UInt16*)ptr + 1
+#define bswabU32_inc(ptr) bswap_32(*((UInt32*) (ptr))); ptr = (UInt32*)ptr + 1
+#define bswabU64_inc(ptr) bswap_64(*((APPLEUInt64*) (ptr))); ptr = 
(APPLEUInt64*)ptr + 1
+
+#define bstoreU16_inc(ptr, val) (*((UInt16*) (ptr))) = bswap_16(val); ptr = 
(UInt16*)ptr + 1
+#define bstoreU32_inc(ptr, val) (*((UInt32*) (ptr))) = bswap_32(val); ptr = 
(UInt32*)ptr + 1
+#define bstoreU64_inc(ptr, val) (*((APPLEUInt64*) (ptr))) = bswap_64(val); ptr 
= (APPLEUInt64*)ptr + 1
 
 /*#else // BYTE_ORDER == BIG_ENDIAN
 
 #define bswabU16(val) val
 
-#define bswabU16_inc(ptr) (*((UInt16*) (ptr))++)
-#define bswabU32_inc(ptr) (*((UInt32*) (ptr))++)
-#define bswabU64_inc(ptr) (*((APPLEUInt64*) (ptr))++)
-
-#define bstoreU16_inc(ptr, val) (*((UInt16*) (ptr))++) = val
-#define bstoreU32_inc(ptr, val) (*((UInt32*) (ptr))++) = val
-#define bstoreU64_inc(ptr, val) (*((APPLEUInt64*) (ptr))++) = val
+#define bswabU16_inc(ptr) (*((UInt16*) (ptr))); ptr = (UInt16*)ptr + 1
+#define bswabU32_inc(ptr) (*((UInt32*) (ptr))); ptr = (UInt32*)ptr + 1
+#define bswabU64_inc(ptr) (*((APPLEUInt64*) (ptr))); ptr = (APPLEUInt64*)ptr + 
1
+
+#define bstoreU16_inc(ptr, val) (*((UInt16*) (ptr))) = val; ptr = (UInt16*)ptr 
+ 1
+#define bstoreU32_inc(ptr, val) (*((UInt32*) (ptr))) = val; ptr = (UInt32*)ptr 
+ 1
+#define bstoreU64_inc(ptr, val) (*((APPLEUInt64*) (ptr))) = val; ptr = 
(APPLEUInt64*)ptr + 1
 
 #endif*/
 
 /* for the sake of completeness and readability */
-#define bswabU8_inc(ptr)       (*((UInt8*) (ptr))++)
-#define bstoreU8_inc(ptr,val)  (*((UInt8*) (ptr))++) = val
+#define bswabU8_inc(ptr)       ptr = (UInt8*)ptr + 1
+#define bstoreU8_inc(ptr,val)  (*((UInt8*) (ptr))) = val; ptr = (UInt8*)ptr + 1
diff -urN ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/volume.c 
./src/io/prom/fs/hfsplus/volume.c
--- ../tmp-orig/pearpc-0.3.1+1/src/io/prom/fs/hfsplus/volume.c  2004-05-11 
18:11:12.000000000 +0200
+++ ./src/io/prom/fs/hfsplus/volume.c   2005-04-02 15:47:02.154989287 +0200
@@ -324,7 +324,8 @@
  */
 static int volume_readbuf(hfsp_vh* vh, void* p)
 {
-    if ( (vh->signature        = bswabU16_inc(p)) != HFSP_VOLHEAD_SIG) 
+    int v = bswabU16_inc(p);
+    if ( (vh->signature        = v) != HFSP_VOLHEAD_SIG) 
        HFSP_ERROR(-1, "This is not a HFS+ volume");
     vh->version                = bswabU16_inc(p);
     vh->attributes     = bswabU32_inc(p); 
@@ -346,7 +347,7 @@
     vh->write_count    = bswabU32_inc(p);
     vh->encodings_bmp  = bswabU64_inc(p);
     memcpy(vh->finder_info, p, 32); 
-    ((char*) p) += 32; // finderinfo is not used by now
+    p = ((char*) p) + 32; // finderinfo is not used by now
     p = volume_readfork(p, &vh->alloc_file );
     p = volume_readfork(p, &vh->ext_file   );
     p = volume_readfork(p, &vh->cat_file   );
@@ -382,7 +383,7 @@
     bstoreU32_inc(p, vh->write_count   );
     bstoreU64_inc(p, vh->encodings_bmp );
     memcpy(p, vh->finder_info, 32); 
-    ((char*) p) += 32; // finderinfo is not used by now
+    p = ((char*) p) + 32; // finderinfo is not used by now
     p = volume_writefork(p, &vh->alloc_file );
     p = volume_writefork(p, &vh->ext_file   );
     p = volume_writefork(p, &vh->cat_file   );
@@ -418,12 +419,12 @@
   
        UInt16  embeds, embedl;         /* Start/lenght of embedded area in 
blocks */
        
-       ((char*) p) += 0x12;            /* skip unneeded HFS vol fields */
+       p = ((char*) p) + 0x12;         /* skip unneeded HFS vol fields */
        drAlBlkSiz = bswabU32_inc(p);   /* offset 0x14 */
-       ((char*) p) += 0x4;             /* skip unneeded HFS vol fields */
+       p = ((char*) p) + 0x4;          /* skip unneeded HFS vol fields */
        drAlBlSt    = bswabU16_inc(p);  /* offset 0x1C */
        
-       ((char*) p) += 0x5E;            /* skip unneeded HFS vol fields */
+       p = ((char*) p) + 0x5E;         /* skip unneeded HFS vol fields */
        signature = bswabU16_inc(p);    /* offset 0x7C, drEmbedSigWord */
        if (signature != HFSP_VOLHEAD_SIG)
            HFSP_ERROR(-1, "This looks like a normal HFS volume");

---------------------------------------
Received: (at 300401-close) by bugs.debian.org; 17 Jan 2006 02:50:33 +0000
>From [EMAIL PROTECTED] Mon Jan 16 18:50:33 2006
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EygsC-0007u9-U9; Mon, 16 Jan 2006 18:47:04 -0800
From: Leo Costela <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.65 $
Subject: Bug#300401: fixed in pearpc 0.4.0-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Mon, 16 Jan 2006 18:47:04 -0800
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Source: pearpc
Source-Version: 0.4.0-1

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

pearpc_0.4.0-1.diff.gz
  to pool/main/p/pearpc/pearpc_0.4.0-1.diff.gz
pearpc_0.4.0-1.dsc
  to pool/main/p/pearpc/pearpc_0.4.0-1.dsc
pearpc_0.4.0-1_i386.deb
  to pool/main/p/pearpc/pearpc_0.4.0-1_i386.deb
pearpc_0.4.0.orig.tar.gz
  to pool/main/p/pearpc/pearpc_0.4.0.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Leo Costela <[EMAIL PROTECTED]> (supplier of updated pearpc 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 [EMAIL PROTECTED])


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

Format: 1.7
Date: Wed, 11 Jan 2006 00:32:56 -0200
Source: pearpc
Binary: pearpc
Architecture: source i386
Version: 0.4.0-1
Distribution: unstable
Urgency: low
Maintainer: Leo Costela <[EMAIL PROTECTED]>
Changed-By: Leo Costela <[EMAIL PROTECTED]>
Description: 
 pearpc     - PowerPC architecture emulator
Closes: 300401 333901 347334
Changes: 
 pearpc (0.4.0-1) unstable; urgency=low
 .
   * new upstream version (closes: #347334) (thanks Wolfgang Sourdeau)
   * build-dep on libaa1-dev for transition (closes: #333901)
   * includes 01_amd64.patch and 02_amd64_ptr_arith.patch to fix the FTBFSs 
(closes: #300401)
   * update policy to 3.6.2 (no changes)
   * removed patch 01_kfreebsd.patch (no longer necessary)
   * changed conffiles to /etc/ppc/*
   * updated /etc/ppc/ppc.conf
Files: 
 ae3a95fe06d42c117c5ae242323be496 1323 otherosfs optional pearpc_0.4.0-1.dsc
 c0eaeb588da2d6cd0ccfd62ea426e35f 910621 otherosfs optional 
pearpc_0.4.0.orig.tar.gz
 f4315caea5251b929315f808ddfea1a2 8583 otherosfs optional pearpc_0.4.0-1.diff.gz
 0989fe48e31b2e2587ada7d7ee55a739 379312 otherosfs optional 
pearpc_0.4.0-1_i386.deb

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

iD8DBQFDzFm/ImLTb3rflGYRAghRAKCQyHnSp+OqwBR+a+og5GhKWDGGWgCfUhdI
Xd3fbf4bUol75azZOOrLnGA=
=Drmt
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to