Bug#258790: marked as done (gnome-cups-manager: FTBFS with gcc-3.4: array bound forbidden after parenthesized type-id)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 03 Aug 2004 16:18:12 -0700


Your message dated Tue, 03 Aug 2004 19:02:14 -0400
with message-id <E1Bs8IQ-0002xq-00@newraff.debian.org>
and subject line Bug#258790: fixed in gnome-cups-manager 0.22-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; 11 Jul 2004 12:59:48 +0000
>From aj@andaco.de Sun Jul 11 05:59:48 2004
Return-path: <aj@andaco.de>
Received: from c147245.adsl.hansenet.de (localhost) [213.39.147.245] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bjdvn-0007hv-00; Sun, 11 Jul 2004 05:59:48 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1Bjdvm-0005v8-NU; Sun, 11 Jul 2004 14:59:46 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: gnome-cups-manager: FTBFS with gcc-3.4: array bound forbidden after parenthesized type-id
Message-Id: <E1Bjdvm-0005v8-NU@localhost>
Date: Sun, 11 Jul 2004 14:59:46 +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: gnome-cups-manager
Severity: normal
Tags: patch

When building 'gnome-cups-manager' with gcc-3.4 I get the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I../..     -g -Wall -O2 -c snmpkit_interface.C
snmpkit_interface.C: In function `void** sk_table_get(SNMPTABLE*)':
snmpkit_interface.C:511: error: array bound forbidden after parenthesized type-id
snmpkit_interface.C:511: note: try removing the parentheses around the type-id
make[4]: *** [snmpkit_interface.o] Error 1
make[4]: Leaving directory `/gnome-cups-manager-0.18/gnome-cups-add/snmpkit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/gnome-cups-manager-0.18/gnome-cups-add'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gnome-cups-manager-0.18'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/gnome-cups-manager-0.18'
make: *** [debian/stamp-makefile-build] Error 2

With the attached patch 'gnome-cups-manager' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gnome-cups-manager-0.18/gnome-cups-add/snmpkit/snmpkit_interface.C ./gnome-cups-add/snmpkit/snmpkit_interface.C
--- ../tmp-orig/gnome-cups-manager-0.18/gnome-cups-add/snmpkit/snmpkit_interface.C	2003-05-17 21:01:47.000000000 +0200
+++ ./gnome-cups-add/snmpkit/snmpkit_interface.C	2004-07-11 14:48:22.575612023 +0200
@@ -508,7 +508,7 @@
 void **sk_table_get(SNMPTABLE *st){
   std::list<void*> vals;
   from_c(st)->get(vals);
-  void **retval=new (void*)[vals.size()+1];
+  void **retval=new void*[vals.size()+1];
   retval[vals.size()]=NULL;
   int i=0;
   for(std::list<void*>::iterator cur=vals.begin();cur!=vals.end();cur++,i++)

---------------------------------------
Received: (at 258790-close) by bugs.debian.org; 3 Aug 2004 23:08:02 +0000
>From katie@ftp-master.debian.org Tue Aug 03 16:08:02 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 1Bs8O2-0003Lo-00; Tue, 03 Aug 2004 16:08:02 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1Bs8IQ-0002xq-00; Tue, 03 Aug 2004 19:02:14 -0400
From: Sebastien Bacher <seb128@debian.org>
To: 258790-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#258790: fixed in gnome-cups-manager 0.22-1
Message-Id: <E1Bs8IQ-0002xq-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 03 Aug 2004 19:02:14 -0400
Delivered-To: 258790-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=-4.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: gnome-cups-manager
Source-Version: 0.22-1

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

gnome-cups-manager_0.22-1.diff.gz
  to pool/main/g/gnome-cups-manager/gnome-cups-manager_0.22-1.diff.gz
gnome-cups-manager_0.22-1.dsc
  to pool/main/g/gnome-cups-manager/gnome-cups-manager_0.22-1.dsc
gnome-cups-manager_0.22-1_i386.deb
  to pool/main/g/gnome-cups-manager/gnome-cups-manager_0.22-1_i386.deb
gnome-cups-manager_0.22.orig.tar.gz
  to pool/main/g/gnome-cups-manager/gnome-cups-manager_0.22.orig.tar.gz
libgnomecupsui1.0-1_0.22-1_i386.deb
  to pool/main/g/gnome-cups-manager/libgnomecupsui1.0-1_0.22-1_i386.deb
libgnomecupsui1.0-dev_0.22-1_i386.deb
  to pool/main/g/gnome-cups-manager/libgnomecupsui1.0-dev_0.22-1_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 258790@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastien Bacher <seb128@debian.org> (supplier of updated gnome-cups-manager 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,  3 Aug 2004 22:55:39 +0200
Source: gnome-cups-manager
Binary: libgnomecupsui1.0-dev gnome-cups-manager libgnomecupsui1.0-1
Architecture: source i386
Version: 0.22-1
Distribution: unstable
Urgency: low
Maintainer: Ross Burton <ross@debian.org>
Changed-By: Sebastien Bacher <seb128@debian.org>
Description: 
 gnome-cups-manager - CUPS printer admin tool for GNOME
 libgnomecupsui1.0-1 - UI extensions to libgnomecups
 libgnomecupsui1.0-dev - UI extensions to libgnomecups (headers)
Closes: 258790
Changes: 
 gnome-cups-manager (0.22-1) unstable; urgency=low
 .
   * GNOME team upload.
   * New upstream release
     - build fine with gcc 3.4 (Closes: #258790).
   * debian/control.in:
     - Recommends gksu.
     - updated the Build-Depends on libgnomecups1.0-dev to 0.1.9.
   * debian/patches/change-su-command.diff:
     - use gksu instead of gnomesu.
Files: 
 b95ba13a4f902f7f0d3a1a95d9390888 1609 gnome optional gnome-cups-manager_0.22-1.dsc
 bea15996b644a7423650d6eba6411dc4 635477 gnome optional gnome-cups-manager_0.22.orig.tar.gz
 78dc20db584829c983bf8bd28097cb4a 5325 gnome optional gnome-cups-manager_0.22-1.diff.gz
 a70f81cb146b2d43853cddd4bdb521bd 203936 gnome optional gnome-cups-manager_0.22-1_i386.deb
 6bad3942142a4890209dede44c3f31e5 28508 libs optional libgnomecupsui1.0-1_0.22-1_i386.deb
 6b5e8538843d271d356e6027c4991a49 27738 libdevel optional libgnomecupsui1.0-dev_0.22-1_i386.deb

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

iD8DBQFBEBZQQxo87aLX0pIRAjWSAJ4nILsUY9OEg2NtLwu1OmoWWyHWiwCePEg8
rzJIf5lTnWwztTffGLN312g=
=2P6l
-----END PGP SIGNATURE-----