[Pkg-octave-devel] Bug#314705: marked as done (octave2.1: FTBFS (amd64/gcc-4.0): trying to instantiate 'template<class T> template<class U> octave_int::octave_int(U)')

Debian Bug Tracking System owner@bugs.debian.org
Sun, 03 Jul 2005 14:33:12 -0700


Your message dated Sun, 03 Jul 2005 17:17:05 -0400
with message-id <E1DpBpp-0003w1-00@newraff.debian.org>
and subject line Bug#314705: fixed in octave2.1 2.1.71-2
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; 17 Jun 2005 21:29:16 +0000
>From aj@andaco.de Fri Jun 17 14:29:16 2005
Return-path: <aj@andaco.de>
Received: from d027074.adsl.hansenet.de (localhost.localdomain) [80.171.27.74] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DjOOp-0002U1-00; Fri, 17 Jun 2005 14:29:16 -0700
Received: from aj by localhost.localdomain with local (Exim 4.50)
	id 1DjOOo-0005Hz-ID; Fri, 17 Jun 2005 23:29:14 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: octave2.1: FTBFS (amd64/gcc-4.0):   trying to instantiate 'template<class T> template<class U> octave_int::octave_int(U)'
Message-Id: <E1DjOOo-0005Hz-ID@localhost.localdomain>
Date: Fri, 17 Jun 2005 23:29:14 +0200
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: octave2.1
Version: 2.1.69-1
Severity: normal
Tags: patch

When building 'octave2.1' on amd64/unstable with gcc-4.0,
I get the following error:

lex.l:208: error: 'bracket_brace_paren_nesting_level::<anonymous enum>' is/uses anonymous type
lex.l:208: error:   trying to instantiate 'template<class T> template<class U> octave_int::octave_int(U)'
make[3]: *** [pic/lex.o] Error 1
make[3]: Leaving directory `/octave2.1-2.1.69/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/octave2.1-2.1.69/src/lex.cc ./src/lex.cc
--- ../tmp-orig/octave2.1-2.1.69/src/lex.cc	2005-03-29 05:39:22.000000000 +0200
+++ ./src/lex.cc	2005-06-17 21:53:17.000000000 +0200
@@ -861,7 +861,7 @@
 
   std::stack<int> context;
 
-  enum { BRACKET = 1, BRACE = 2, PAREN = 3 };
+  enum bracket_type { BRACKET = 1, BRACE = 2, PAREN = 3 };
 
   bracket_brace_paren_nesting_level (const bracket_brace_paren_nesting_level&);
 
diff -urN ../tmp-orig/octave2.1-2.1.69/src/lex.l ./src/lex.l
--- ../tmp-orig/octave2.1-2.1.69/src/lex.l	2005-03-29 05:36:52.000000000 +0200
+++ ./src/lex.l	2005-06-17 21:53:14.000000000 +0200
@@ -217,7 +217,7 @@
 
   std::stack<int> context;
 
-  enum { BRACKET = 1, BRACE = 2, PAREN = 3 };
+  enum bracket_type { BRACKET = 1, BRACE = 2, PAREN = 3 };
 
   bracket_brace_paren_nesting_level (const bracket_brace_paren_nesting_level&);
 
diff -urN ../tmp-orig/octave2.1-2.1.69/src/toplev.cc ./src/toplev.cc
--- ../tmp-orig/octave2.1-2.1.69/src/toplev.cc	2005-03-27 14:13:32.000000000 +0200
+++ ./src/toplev.cc	2005-06-17 22:03:41.000000000 +0200
@@ -440,6 +440,9 @@
 variable @code{status} to the integer @samp{2}.\n\
 @end deftypefn")
 {
+#define sync 1
+#define async 2
+
   octave_value_list retval;
 
   unwind_protect::begin_frame ("Fsystem");
@@ -452,9 +455,7 @@
 
       std::string cmd_str = args(0).string_value ();
 
-      enum exec_type { sync, async };
-
-      exec_type type = sync;
+      int etype = sync;
 
       if (! error_state)
 	{
@@ -465,9 +466,9 @@
 	      if (! error_state)
 		{
 		  if (type_str == "sync")
-		    type = sync;
+		    etype = sync;
 		  else if (type_str == "async")
-		    type = async;
+		    etype = async;
 		  else
 		    error ("system: third arg must be \"sync\" or \"async\"");
 		}
@@ -480,7 +481,7 @@
 
       if (! error_state)
 	{
-	  if (type == async)
+	  if (etype == async)
 	    {
 #ifdef HAVE_FORK
 	      pid_t pid = fork ();

---------------------------------------
Received: (at 314705-close) by bugs.debian.org; 3 Jul 2005 21:21:45 +0000
>From katie@ftp-master.debian.org Sun Jul 03 14:21:45 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 1DpBuL-0006zm-00; Sun, 03 Jul 2005 14:21:45 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DpBpp-0003w1-00; Sun, 03 Jul 2005 17:17:05 -0400
From: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
To: 314705-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#314705: fixed in octave2.1 2.1.71-2
Message-Id: <E1DpBpp-0003w1-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 03 Jul 2005 17:17:05 -0400
Delivered-To: 314705-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: octave2.1
Source-Version: 2.1.71-2

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

octave2.1-doc_2.1.71-2_all.deb
  to pool/main/o/octave2.1/octave2.1-doc_2.1.71-2_all.deb
octave2.1-emacsen_2.1.71-2_all.deb
  to pool/main/o/octave2.1/octave2.1-emacsen_2.1.71-2_all.deb
octave2.1-headers_2.1.71-2_i386.deb
  to pool/main/o/octave2.1/octave2.1-headers_2.1.71-2_i386.deb
octave2.1-htmldoc_2.1.71-2_all.deb
  to pool/main/o/octave2.1/octave2.1-htmldoc_2.1.71-2_all.deb
octave2.1-info_2.1.71-2_all.deb
  to pool/main/o/octave2.1/octave2.1-info_2.1.71-2_all.deb
octave2.1_2.1.71-2.diff.gz
  to pool/main/o/octave2.1/octave2.1_2.1.71-2.diff.gz
octave2.1_2.1.71-2.dsc
  to pool/main/o/octave2.1/octave2.1_2.1.71-2.dsc
octave2.1_2.1.71-2_i386.deb
  to pool/main/o/octave2.1/octave2.1_2.1.71-2_i386.deb
octave_2.1.71-2_i386.deb
  to pool/main/o/octave2.1/octave_2.1.71-2_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 314705@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org> (supplier of updated octave2.1 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: Sun,  3 Jul 2005 21:43:30 +0200
Source: octave2.1
Binary: octave2.1-htmldoc octave octave2.1-info octave2.1-emacsen octave2.1 octave2.1-headers octave2.1-doc
Architecture: source i386 all
Version: 2.1.71-2
Distribution: unstable
Urgency: low
Maintainer: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Changed-By: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Description: 
 octave     - GNU Octave language for numerical computations (2.1 branch)
 octave2.1  - GNU Octave language for numerical computations (2.1 branch)
 octave2.1-doc - PDF documentation on the GNU Octave language (2.1 branch)
 octave2.1-emacsen - Emacs support for the GNU Octave language (2.1 branch)
 octave2.1-headers - header files for the GNU Octave language (2.1 branch)
 octave2.1-htmldoc - HTML documentation on the GNU Octave language (2.1 branch)
 octave2.1-info - GNU Info documentation on the GNU Octave language (2.1 branch)
Closes: 314705
Changes: 
 octave2.1 (2.1.71-2) unstable; urgency=low
 .
   +++ Changes by Rafael Laboissiere
 .
   * Uploaded to the unstable distribution.  Actually, there was no bump in
     the API version, it is still api-v13
   * This version fixes the FTBFS problem on amd64 using g++ 4.0 related to
     wrong enum declarations in src/lex.l and src/toplevel.cc (closes:
     #314705).
   * debian/in/control: Bumped Standards-Version to 3.6.2. No changes needed.
   * debian/in/PACKAGE.menu: Use full version number for the menu command.
     This makes Lintian happy.
Files: 
 2f5fc4ba4d9cbb7d617cc33722fed879 948 math optional octave2.1_2.1.71-2.dsc
 6a6b4d75ff7470590d08b0a4a1b61b8b 30970 math optional octave2.1_2.1.71-2.diff.gz
 18c332261991f5a7dbc4782297f820bd 5590566 math optional octave2.1_2.1.71-2_i386.deb
 03fdfda8baf907ffe95de6fc40428524 263156 math optional octave2.1-headers_2.1.71-2_i386.deb
 340980656790474f8e4c2f548f4c5e21 46484 math optional octave_2.1.71-2_i386.deb
 a764258c07f6a60181ec09a60af2c861 1773360 doc optional octave2.1-doc_2.1.71-2_all.deb
 7f2d2ab58b8cc13fecdec328d4e2881a 383124 math optional octave2.1-htmldoc_2.1.71-2_all.deb
 7c4b481b46c0234312be33ff38827ad7 69338 math optional octave2.1-emacsen_2.1.71-2_all.deb
 2d3dcf5d99209caf4fd5a6e71cd442cd 302732 math optional octave2.1-info_2.1.71-2_all.deb

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

iD8DBQFCyFJwk3oga0pdcv4RAjAsAJ9C6JryD15F3OocNgz2OtC4ZUX3ywCgmXAr
ExoK5sJjhHVifoDFv+23WwM=
=rKK6
-----END PGP SIGNATURE-----