Debian Bug report logs -
#287904
par2cmdline: FTBFS (amd64/gcc-4.0): explicit specialization of 'bool ReedSolomon<Galois8>::SetInput(u32)' must be introduced by 'template <>'
Report forwarded to debian-bugs-dist@lists.debian.org, Andres Salomon <dilinger@voxel.net>: Bug#287904; Package par2cmdline.
(full text, mbox, link).
Acknowledgement sent to Andreas Jochens <aj@andaco.de>:
New Bug report received and forwarded. Copy sent to Andres Salomon <dilinger@voxel.net>.
(full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: par2cmdline: FTBFS (amd64/gcc-4.0): explicit specialization of 'bool ReedSolomon<Galois8>::SetInput(u32)' must be introduced by 'template <>'
Date: Thu, 30 Dec 2004 21:38:04 +0100
Package: par2cmdline
Severity: normal
Tags: patch
When building 'par2cmdline' on amd64 with gcc-4.0,
I get the following error:
reedsolomon.cpp:83: error: explicit specialization of 'bool ReedSolomon<Galois8>::SetInput(u32)' must be introduced by 'template <>'
reedsolomon.cpp:83: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois8>::SetInput(u32)' does not match any template declaration
reedsolomon.cpp:83: error: invalid function declaration
reedsolomon.cpp:104: error: explicit specialization of 'bool ReedSolomon<Galois8>::Process(size_t, u32, const void*, u32, void*)' must be introduced by 'template <>'
reedsolomon.cpp:104: error: template-id 'Process<>' for 'bool ReedSolomon<Galois8>::Process(size_t, u32, const void*, u32, void*)' does not match any template declaration
reedsolomon.cpp:104: error: invalid function declaration
reedsolomon.cpp:192: error: explicit specialization of 'bool ReedSolomon<Galois16>::SetInput(const std::vector<bool, std::allocator<bool> >&)' must be introduced by 'template <>'
reedsolomon.cpp:192: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois16>::SetInput(const std::vector<bool, std::allocator<bool> >&)' does not match any template declaration
reedsolomon.cpp:192: error: invalid function declaration
reedsolomon.cpp:236: error: explicit specialization of 'bool ReedSolomon<Galois16>::SetInput(u32)' must be introduced by 'template <>'
reedsolomon.cpp:236: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois16>::SetInput(u32)' does not match any template declaration
reedsolomon.cpp:236: error: invalid function declaration
reedsolomon.cpp:270: error: explicit specialization of 'bool ReedSolomon<Galois16>::Process(size_t, u32, const void*, u32, void*)' must be introduced by 'template <>'
reedsolomon.cpp:270: error: template-id 'Process<>' for 'bool ReedSolomon<Galois16>::Process(size_t, u32, const void*, u32, void*)' does not match any template declaration
reedsolomon.cpp:270: error: invalid function declaration
make[2]: *** [reedsolomon.o] Error 1
make[2]: Leaving directory `/par2cmdline-0.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/par2cmdline-0.4'
make: *** [debian/stamp-makefile-build] Error 2
With the attached patch 'par2cmdline' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/par2cmdline-0.4/reedsolomon.cpp ./reedsolomon.cpp
--- ../tmp-orig/par2cmdline-0.4/reedsolomon.cpp 2003-05-26 20:01:31.000000000 +0200
+++ ./reedsolomon.cpp 2004-12-30 21:15:57.906327496 +0100
@@ -51,7 +51,7 @@
}
}
-bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
+template <> bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
{
inputcount = (u32)present.size();
@@ -80,7 +80,7 @@
return true;
}
-bool ReedSolomon<Galois8>::SetInput(u32 count)
+template <> bool ReedSolomon<Galois8>::SetInput(u32 count)
{
inputcount = count;
@@ -101,7 +101,7 @@
return true;
}
-bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
+template <> bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
{
// Look up the appropriate element in the RS matrix
Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex];
@@ -189,7 +189,7 @@
// Set which of the source files are present and which are missing
// and compute the base values to use for the vandermonde matrix.
-bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
+template <> bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
{
inputcount = (u32)present.size();
@@ -233,7 +233,7 @@
// Record that the specified number of source files are all present
// and compute the base values to use for the vandermonde matrix.
-bool ReedSolomon<Galois16>::SetInput(u32 count)
+template <> bool ReedSolomon<Galois16>::SetInput(u32 count)
{
inputcount = count;
@@ -267,7 +267,7 @@
return true;
}
-bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
+template <> bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
{
// Look up the appropriate element in the RS matrix
Reply sent to Andres Salomon <dilinger@voxel.net>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Andreas Jochens <aj@andaco.de>:
Bug acknowledged by developer.
(full text, mbox, link).
Source: par2cmdline
Source-Version: 0.4-2
We believe that the bug you reported is fixed in the latest version of
par2cmdline, which is due to be installed in the Debian FTP archive:
par2_0.4-2_i386.deb
to pool/main/p/par2cmdline/par2_0.4-2_i386.deb
par2cmdline_0.4-2.diff.gz
to pool/main/p/par2cmdline/par2cmdline_0.4-2.diff.gz
par2cmdline_0.4-2.dsc
to pool/main/p/par2cmdline/par2cmdline_0.4-2.dsc
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 287904@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andres Salomon <dilinger@voxel.net> (supplier of updated par2cmdline 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: Thu, 30 Dec 2004 21:21:01 -0500
Source: par2cmdline
Binary: par2
Architecture: source i386
Version: 0.4-2
Distribution: unstable
Urgency: low
Maintainer: Andres Salomon <dilinger@voxel.net>
Changed-By: Andres Salomon <dilinger@voxel.net>
Description:
par2 - Parity Archive Volume Set, for checking and repair of files
Closes: 287904
Changes:
par2cmdline (0.4-2) unstable; urgency=low
.
* Fix gcc-4.0 build failures; thanks to Andreas Jochens (closes: #287904).
Files:
b5ffb5e94c2c09d9740459b60a783a4e 1292 utils extra par2cmdline_0.4-2.dsc
e10c2f2d5071472bb36d758154c2f0aa 9054 utils extra par2cmdline_0.4-2.diff.gz
a6099e95d839c155d7be038d02f08877 106440 utils extra par2_0.4-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: http://triplehelix.org/~joshk/pubkey_gpg.asc
iQIVAwUBQdTX8aOILr94RG8mAQLXWA//dZcpW0EmsYLj2CU9bI5n6l3g2UW8VgTy
ryUiTPYjPYL/x2ZaIA+BJLuDy+cUd2g9/bykWhlLCCCumzvdxF5qsBqbwhiKgYtc
hbvQLOWT3cVMr5ZLitGInAu5b5dL8T6Y1QdSgq0/6I0SMUPJUbPBH6W6eFevjk11
lFXfYqmryS3if7rPIrz/kOUEMjfjVqC1BlUBtSiFNgyxMytrwpI/G2/Goa92K5e6
5Uy5hoWmHGUbxHCHnDFZOAIu2EP2wQAijI/sBcSU4bGYPEexE8jSxxaB6x2xZ/rn
hkb2SnziHGkFZfHJMmuYHB9wapYpVVsrIl4COpmHuLWWZYHIZgakW8orDxeTbCSs
DVq38AJRIjtb0MBYBFNJ9sEFNEnKtsP7TvAJVjIXWGmgQ5i0j8CM3TuHYMhc/Av8
4HswX+LfGeMhNzWdiS+h690GvlsCmIN7V0EZs6FPTPAgqY4lg2CxXvuKLdkzmV5l
htRyBzs94iwd3pkoQLfA9BD8bOwKLxqmD9l/kMGQBaNqFWoncAixi8ab/iM3a5nN
5cCwh2mgYPdK5CPCfy8W6sQGedUgaVa/wsGHWpP+Wz01fmx3w6TpAbECHz8IdJuD
wlDaC6BQwnGCCr9iI78slH7W2g1gVEEpGeFU0r/+Zf5RYvqNKCXhCxjcNTPLDBdV
eaYZU7eatyw=
=GJYN
-----END PGP SIGNATURE-----
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.