On Sun, 6 May 2007, Carlos E. R. wrote:-

>
>The Friday 2007-02-23 at 12:39 -0000, David Bolt wrote:

<Snip>

>What would I need to compile - from sourceforge?

>       par2cmdline-0.4.tar.gz

That's all I grabbed.

<Snip>

>The make run (par2cmdline-0.4) fails...
>
>reedsolomon.cpp:54: error: explicit specialization of bool
>ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(const
>std::vector<bool, std::allocator<bool> >&) must be introduced by
>template <>
>reedsolomon.cpp:54: error: template-id SetInput<> for bool
>ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(const
>std::vector<bool, std::allocator<bool> >&) does not match any template
>declaration
>reedsolomon.cpp:54: error: invalid function declaration
>
>And a lot more.

GCC4 is a lot more strict than GCC3. You need to apply a patch to the
sources to get it to build using GCC4. If you grab the source RPM from
my site and unpack it, you'll have a copy of the .diff file you can use
to patch the sources. Then you'll be able to compile without errors[0]
:-)

<Snip>

>> >What are you using, where did you get it from?
>>
>> Source code from sourceforge, patched it to handle GCC4, and then built
>> an RPM for it. I keep copies of it built for multiple versions of SUSE
>> here:
>>
>> <URL:http://www.davjam.org/~davjam/linux/par2/index.htm>
>
>Ah! So you had to modify them...

Yes and no. The sources are the same as those from sourceforge. As a
part of the building process RPM applies the patch so they build using
GCC4.

>But... that is version "par2-0.4-5". At
><http://sourceforge.net/projects/parchive> I can only see release 0.3 (feb
>2006).

That would be the gpar2 release. I don't build that, since I have no use
for it. I don't build the libpar2 either, for the same reason.

>Where does the 0.4.5 comes from?

It's the same as par2cmdline-0.4. I just dropped the "cmdline" bit. The
0.4.5 is actually 0.4-5, which is the fifth release of the 0.4 package.


[0] You'll still get loads of warnings, but the build will succeed.

Regards,
        David Bolt

-- 
Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/
RISCOS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit
RISCOS 3.6  | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit
TOS 4.02    | SUSE 9.3 32bit  |                 | openSUSE 10.3a3 32bit
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to