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:
Ugh.. my bad. It doesn't work with GCC4.1 but works with 4.0.x series.