Building the latest Crypto++ from SVN with g++ on Mac OS X:

i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build  
5367)

yields this error:

c++ -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe -c default.cpp
modes.h: In constructor  
'CryptoPP::CipherModeFinalTemplate_ExternalCipher<BASE>::CipherModeFinal 
Template_ExternalCipher(CryptoPP::BlockCipher&)':
modes.h:311: error: there are no arguments to 'SetCipher' that depend  
on a template parameter, so a declaration of 'SetCipher' must be  
available
modes.h:311: error: (if you use '-fpermissive', G++ will accept your  
code, but allowing the use of an undeclared name is deprecated)
modes.h: In constructor  
'CryptoPP::CipherModeFinalTemplate_ExternalCipher<BASE>::CipherModeFinal 
Template_ExternalCipher(CryptoPP::BlockCipher&, const byte*, int)':
modes.h:313: error: there are no arguments to 'SetCipherWithIV' that  
depend on a template parameter, so a declaration of 'SetCipherWithIV'  
must be available
modes.h: In member function 'std::string  
CryptoPP::CipherModeFinalTemplate_ExternalCipher<BASE>::AlgorithmName 
() const':
modes.h:316: error: 'm_cipher' was not declared in this scope


Removing this patch makes the error go away:

Wed Dec  5 06:50:44 MST 2007  weidai
   * fix AlgorithmName() for ExternalCipher classes and move SetCipher 
() into CipherModeBase


However, then I get a different error at link time:


c++ -o cryptest.exe -DNDEBUG -g -O2 -DCRYPTOPP_DISABLE_ASM -pipe  
bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o  
datatest.o regtest.o fipsalgt.o dlltest.o -L. -lcryptopp
/usr/bin/ld: Undefined symbols:
CryptoPP::IteratedHashBase<unsigned int,  
CryptoPP::HashTransformation>::TruncatedFinal(unsigned char*,  
unsigned long)
CryptoPP::IteratedHashBase<unsigned int,  
CryptoPP::HashTransformation>::CreateUpdateSpace(unsigned long&)
(and many more...)


and then removing this patch makes that problem go away:

Mon Oct  1 18:21:52 MDT 2007  weidai
   * reduce executable size when only hash functions are used


Regards,

Zooko

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to