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

Bug#263265: marked as done (nitpic: FTBFS with gcc-3.4: default arguments are only permitted for function parameters)

Your message dated Wed, 05 Jan 2005 22:47:07 -0500
with message-id <E1CmOc7-0000X4-00@newraff.debian.org>
and subject line Bug#263265: fixed in nitpic 0.1-9
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; 3 Aug 2004 15:16:35 +0000
>From aj@andaco.de Tue Aug 03 08:16:35 2004
Return-path: <aj@andaco.de>
Received: from c173031.adsl.hansenet.de (localhost) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bs11m-0000rP-00; Tue, 03 Aug 2004 08:16:34 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1Bs11k-0003rs-Vr; Tue, 03 Aug 2004 17:16:33 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: nitpic: FTBFS with gcc-3.4: default arguments are only permitted for function parameters
Message-Id: <E1Bs11k-0003rs-Vr@localhost>
Date: Tue, 03 Aug 2004 17:16:32 +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

Package: nitpic
Severity: normal
Tags: patch

When building 'nitpic' with gcc-3.4 I get the following error:

c++ -g -O2 -Wall    -I. -I./lib/Xt  -I/usr/X11R6/include    -Dlinux -D__x86_64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				  				  -DFUNCPROTO=15 -DNARROWPROTO     -g -O2 -Wall   -c -o main.o main.cc
In file included from main.cc:6:
picsim.hh:38: error: default arguments are only permitted for function parameters
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/nitpic-0.1'
make: *** [build] Error 2

With the attached patch 'nitpic' can be compiled using gcc-3.4.

Andreas Jochens

diff -urN ../tmp-orig/nitpic-0.1/16c84.cc ./16c84.cc
--- ../tmp-orig/nitpic-0.1/16c84.cc	2004-08-03 17:13:21.053945588 +0200
+++ ./16c84.cc	2004-08-03 17:13:16.921745106 +0200
@@ -441,7 +441,7 @@
 	if (d) {
 		if (Pic.reg_file[c][d].hook) {
-			return Pic.reg_file[c][d].hook( &Pic.reg_file[c][d], False );
+			return Pic.reg_file[c][d].hook( &Pic.reg_file[c][d], False, 0 );
 		} else {
 			return Pic.reg_file[c][d].value & 0xff;
diff -urN ../tmp-orig/nitpic-0.1/picsim.hh ./picsim.hh
--- ../tmp-orig/nitpic-0.1/picsim.hh	2004-08-03 17:13:21.055945201 +0200
+++ ./picsim.hh	2004-08-03 17:12:52.309507203 +0200
@@ -35,7 +35,7 @@
 	char	 redirect_reg;
 	char	 implemented;
 	char	 value;
-	char	(*hook)( struct reg *r, Boolean write, char v = 0 );
+	char	(*hook)( struct reg *r, Boolean write, char v );
 } reg;
 typedef struct {

Received: (at 263265-close) by bugs.debian.org; 6 Jan 2005 03:49:55 +0000
>From katie@ftp-master.debian.org Wed Jan 05 19:49:55 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CmOep-0001gP-00; Wed, 05 Jan 2005 19:49:55 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CmOc7-0000X4-00; Wed, 05 Jan 2005 22:47:07 -0500
From: Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>
To: 263265-close@bugs.debian.org
X-Katie: $Revision: 1.54 $
Subject: Bug#263265: fixed in nitpic 0.1-9
Message-Id: <E1CmOc7-0000X4-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 05 Jan 2005 22:47:07 -0500
Delivered-To: 263265-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-CrossAssassin-Score: 2

Source: nitpic
Source-Version: 0.1-9

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

  to pool/main/n/nitpic/nitpic_0.1-9.diff.gz
  to pool/main/n/nitpic/nitpic_0.1-9.dsc
  to pool/main/n/nitpic/nitpic_0.1-9_i386.deb

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

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

Debian distribution maintenance software
Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org> (supplier of updated nitpic 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)

Hash: SHA1

Format: 1.7
Date: Sun, 02 Jan 2005 23:28:09 -0400
Source: nitpic
Binary: nitpic
Architecture: source i386
Version: 0.1-9
Distribution: unstable
Urgency: low
Maintainer: Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>
Changed-By: Ernesto Nadir Crespo Avila <ecrespo@debianvenezuela.org>
 nitpic     - Simulator for the Microchip PIC16C84 microcontroller
Closes: 227784 263265 287809
 nitpic (0.1-9) unstable; urgency=low
   * New maintainer (closes: #227784).
   * Fixed "FTBFS with gcc-3.4: default arguments are only permitted for function parameters"
     (closes: #287809, #263265). Patch by Andreas Jochens <aj@andaco.de>
 5d485519225bc689da59af70001e52b4 599 electronics extra nitpic_0.1-9.dsc
 fb85daa0817c923b3641c86e9d44c788 9912 electronics extra nitpic_0.1-9.diff.gz
 307f0f3da50264cfe12f013f0d990926 32946 electronics extra nitpic_0.1-9_i386.deb

Version: GnuPG v1.2.5 (GNU/Linux)


Reply to: