aMule Forum

English => en_Bugs => Topic started by: b1ng0 on July 05, 2004, 08:20:27 PM

Title: aMule CVS & cryptopp 5.2
Post by: b1ng0 on July 05, 2004, 08:20:27 PM
Is there any hope for getting aMule CVS and cryptopp 5.2 to work together? Unfortunately cryptopp 5.1 does not compile on x86-64 but 5.2 does, however aMule does not compile with it. I believe I installed cryptopp correctly - I built it and then just copied *.h into /usr/include/cryptopp. I get these errors with aMule CVS 20040705:

make[4]: *** [amule-ListenSocket.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/cryptopp/sha.h:4,
                 from /usr/include/cryptopp/oaep.h:5,
                 from /usr/include/cryptopp/rsa.h:10,
                 from KnownFile.h:29,
                 from AddFileThread.cpp:29:
/usr/include/cryptopp/iterhash.h:76: error: syntax error before numeric
   constant
/usr/include/cryptopp/iterhash.h:76: error: missing ';' before right brace
/usr/include/cryptopp/misc.h: In instantiation of `CryptoPP::CompileAssert':
/usr/include/cryptopp/iterhash.h:77:   instantiated from here
/usr/include/cryptopp/misc.h:18: error: creating array with size zero (`-1')
/usr/include/cryptopp/iterhash.h:79: error: syntax error before `protected'
/usr/include/cryptopp/iterhash.h:85: error: syntax error before `<' token
/usr/include/cryptopp/iterhash.h:89: error: non-member function `unsigned int
   DigestSize()' cannot have `const' method qualifier
/usr/include/cryptopp/iterhash.h: In function `unsigned int DigestSize()':
/usr/include/cryptopp/iterhash.h:89: error: `DIGESTSIZE' undeclared (first use
   this function)
/usr/include/cryptopp/iterhash.h:89: error: (Each undeclared identifier is
   reported only once for each function it appears in.)
/usr/include/cryptopp/iterhash.h: At global scope:
/usr/include/cryptopp/iterhash.h:91: error: syntax error before `protected'
/usr/include/cryptopp/iterhash.h:96: error: syntax error before `}' token
/usr/include/cryptopp/iterhash.h:97: error: syntax error before `*' token
/usr/include/cryptopp/iterhash.h: In function `void
   HashEndianCorrectedBlock(...)':
/usr/include/cryptopp/iterhash.h:97: error: `T_Transform' undeclared (first use
   this function)
/usr/include/cryptopp/iterhash.h:97: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h: In function `void Init()':
/usr/include/cryptopp/iterhash.h:98: error: new declaration `void Init()'
/usr/include/cryptopp/iterhash.h:95: error: ambiguates old declaration `int
   Init()'
/usr/include/cryptopp/iterhash.h: In function `void Init()':
/usr/include/cryptopp/iterhash.h:98: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h: At global scope:
/usr/include/cryptopp/iterhash.h:103: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h: In function `int TruncatedFinal(unsigned
   char*, unsigned int)':
/usr/include/cryptopp/iterhash.h:105: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:107: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:107: error: `HashWordType' undeclared (first
   use this function)
/usr/include/cryptopp/iterhash.h:107: error: `PadLastBlock' undeclared (first
   use this function)
/usr/include/cryptopp/iterhash.h:108: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:108: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:108: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:108: error: `CorrectEndianess' undeclared
   (first use this function)
/usr/include/cryptopp/iterhash.h:110: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:110: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:110: error: `B' undeclared (first use this
   function)
/usr/include/cryptopp/iterhash.h:110: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h:111: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:111: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:111: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h:113: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:114: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:114: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:114: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:115: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h:117: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h: At global scope:
/usr/include/cryptopp/iterhash.h:120: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h:120: error: syntax error before `*' token
/usr/include/cryptopp/iterhash.h: In function `int HashBlock(...)':
/usr/include/cryptopp/iterhash.h:122: error: syntax error before `::' token
/usr/include/cryptopp/iterhash.h:127: error: invalid use of `this' in
   non-member function
/usr/include/cryptopp/iterhash.h: At global scope:
/usr/include/cryptopp/iterhash.h:129: error: syntax error before `}' token
In file included from /usr/include/cryptopp/oaep.h:5,
                 from /usr/include/cryptopp/rsa.h:10,
                 from KnownFile.h:29,
                 from AddFileThread.cpp:29:
/usr/include/cryptopp/sha.h:10: error: base class `
   IteratedHashWithStaticTransform   CryptoPP::SHA, 20>' has incomplete type
/usr/include/cryptopp/sha.h:12: error: `state' was not declared in this scope
/usr/include/cryptopp/sha.h:12: error: invalid data member initialization
/usr/include/cryptopp/sha.h:12: error: (use `=' to initialize static data
   members)
/usr/include/cryptopp/sha.h:12: error: variable or field `InitState' declared
   void
/usr/include/cryptopp/sha.h:21: error: base class `
   IteratedHashWithStaticTransform   CryptoPP::SHA256, 32>' has incomplete type
/usr/include/cryptopp/sha.h:23: error: `state' was not declared in this scope
/usr/include/cryptopp/sha.h:23: error: invalid data member initialization
/usr/include/cryptopp/sha.h:23: error: variable or field `InitState' declared
   void
/usr/include/cryptopp/sha.h:35: error: base class `
   IteratedHashWithStaticTransform   CryptoPP::SHA512, 64>' has incomplete type
/usr/include/cryptopp/sha.h:37: error: `state' was not declared in this scope
/usr/include/cryptopp/sha.h:37: error: invalid data member initialization
/usr/include/cryptopp/sha.h:37: error: variable or field `InitState' declared
   void
/usr/include/cryptopp/sha.h:47: error: base class `
   IteratedHashWithStaticTransformCryptoPP::SHA384, 48>' has incomplete type
/usr/include/cryptopp/sha.h:49: error: `state' was not declared in this scope
/usr/include/cryptopp/sha.h:49: error: invalid data member initialization
/usr/include/cryptopp/sha.h:49: error: variable or field `InitState' declared
   void
make[4]: *** [amule-AddFileThread.o] Error 1
make[4]: Leaving directory `/home/eklinger/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/eklinger/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/eklinger/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eklinger/amule-cvs'
make: *** [all] Error 2
Title: Re: aMule CVS & cryptopp 5.2
Post by: GhePeU on July 15, 2004, 12:35:11 AM
up, same problem reported in gentoo bugzilla
Title: Re: aMule CVS & cryptopp 5.2
Post by: kricklen on July 15, 2004, 08:40:49 PM
Just noticed that on my gentoo system.
./configure identifies crypto++ 5.2 as mdk_suse_fc, 5.1 is gentoo_debian.
That how it should be?
Title: Re: aMule CVS & cryptopp 5.2
Post by: deltaHF on July 15, 2004, 08:45:54 PM
Quote
Originally posted by kricklen
Just noticed that on my gentoo system.
./configure identifies crypto++ 5.2 as mdk_suse_fc, 5.1 is gentoo_debian.
That how it should be?

it has smth to do with the name, i.e crypto++ or cryptopp
Title: Re: aMule CVS & cryptopp 5.2
Post by: Xaignar on July 15, 2004, 09:52:48 PM
Fixed! :D
Title: Re: aMule CVS & cryptopp 5.2
Post by: kricklen on July 16, 2004, 05:38:24 PM
amule cvs 20040716 works fine with crypto++ 5.2, thanks ;)
Title: Re: aMule CVS & cryptopp 5.2
Post by: bootstrap on July 16, 2004, 07:15:14 PM
I'm currently building libcryptopp 5.2 rpms for fedora core {1,2} and rh9.
Once i'm done with testing they will be put on our download page as well as on the aMule CVS snapshot site (http://amule.hirnriss.net).

As the first (fc1) build just completed without errors and the validation suite worked well, i think i'll release 5.2-1 rpms today.
Title: Re: aMule CVS & cryptopp 5.2
Post by: b1ng0 on July 18, 2004, 07:10:34 PM
Yep - just wanted to report that aMule is now working great on Fedora Core 2 on a dual Opteron server! Way to go guys!
Title: Re: aMule CVS & cryptopp 5.2
Post by: Kry on July 18, 2004, 07:56:10 PM
Great!