Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113229 - dev-libs/crypto++-5.2.1 requires patch for GCC4
Summary: dev-libs/crypto++-5.2.1 requires patch for GCC4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.eskimo.com/~weidai/cryptli...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-21 22:24 UTC by Priit Laes (IRC: plaes)
Modified: 2005-11-21 22:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2005-11-21 22:24:43 UTC
By default emerge fails:
>>> Unpacking source...
>>> Unpacking cryptopp521.zip to /var/tmp/portage/crypto++-5.2.1/work
>>> Source unpacked.
g++ -g -msse2 -pipe -c 3way.cpp
g++ -g -msse2 -pipe -c adler32.cpp
seckey.h: In function 'void CryptoPP::CheckedSetKey(T*, CryptoPP::CipherDir,
const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with T =
CryptoPP::BlockCipherFinal<DECRYPTION, CryptoPP::ThreeWay::Dec>]':
seckey.h:179:   instantiated from 'void CryptoPP::BlockCipherFinal<DIR,
BASE>::SetKey(const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with
CryptoPP::CipherDir DIR = DECRYPTION, BASE = CryptoPP::ThreeWay::Dec]'
3way.cpp:139:   instantiated from here
seckey.h:137: error: no matching function for call to
'CryptoPP::BlockCipherFinal<DECRYPTION,
CryptoPP::ThreeWay::Dec>::UncheckedSetKey(CryptoPP::CipherDir&, const byte*&,
unsigned int&)'
3way.cpp:64: note: candidates are: void
CryptoPP::ThreeWay::Base::UncheckedSetKey(CryptoPP::CipherDir, const byte*,
unsigned int, unsigned int)
seckey.h: In function 'void CryptoPP::CheckedSetKey(T*, CryptoPP::CipherDir,
const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with T =
CryptoPP::BlockCipherFinal<ENCRYPTION, CryptoPP::ThreeWay::Enc>]':
seckey.h:179:   instantiated from 'void CryptoPP::BlockCipherFinal<DIR,
BASE>::SetKey(const byte*, unsigned int, const CryptoPP::NameValuePairs&) [with
CryptoPP::CipherDir DIR = ENCRYPTION, BASE = CryptoPP::ThreeWay::Enc]'
3way.cpp:139:   instantiated from here
seckey.h:137: error: no matching function for call to
'CryptoPP::BlockCipherFinal<ENCRYPTION,
CryptoPP::ThreeWay::Enc>::UncheckedSetKey(CryptoPP::CipherDir&, const byte*&,
unsigned int&)'
3way.cpp:64: note: candidates are: void
CryptoPP::ThreeWay::Base::UncheckedSetKey(CryptoPP::CipherDir, const byte*,
unsigned int, unsigned int)
make: *** [3way.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-libs/crypto++-5.2.1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost b

Patch is needed for Gcc4 support which is available here:
http://www.eskimo.com/~weidai/crypto521gcc4patch

Reproducible: Always
Steps to Reproduce:
Comment 1 Priit Laes (IRC: plaes) 2005-11-21 22:33:35 UTC
Ugh.. my bad. It doesn't work with GCC4.1 but works with 4.0.x series.