aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule CVS & cryptopp 5.2  (Read 3429 times)

b1ng0

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
aMule CVS & cryptopp 5.2
« 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
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule CVS & cryptopp 5.2
« Reply #1 on: July 15, 2004, 12:35:11 AM »

up, same problem reported in gentoo bugzilla
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

kricklen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
Re: aMule CVS & cryptopp 5.2
« Reply #2 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?
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: aMule CVS & cryptopp 5.2
« Reply #3 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

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: aMule CVS & cryptopp 5.2
« Reply #4 on: July 15, 2004, 09:52:48 PM »

Fixed! :D
Logged

kricklen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
Re: aMule CVS & cryptopp 5.2
« Reply #5 on: July 16, 2004, 05:38:24 PM »

amule cvs 20040716 works fine with crypto++ 5.2, thanks ;)
Logged

bootstrap

  • Guest
Re: aMule CVS & cryptopp 5.2
« Reply #6 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.

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.
Logged

b1ng0

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule CVS & cryptopp 5.2
« Reply #7 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!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule CVS & cryptopp 5.2
« Reply #8 on: July 18, 2004, 07:56:10 PM »

Great!
Logged