[Mnet-devel] cryptopp problems.

Faried Nawaz silence-mnet at nilpotent.org
Sun Jan 2 00:46:16 GMT 2005


Hello,

I upgraded my box to FreeBSD 5.3, and cryptopp stopped working.
I guess I should've expected that -- gcc's changed its c++ abi
yet again for 3.4.x.

% python -OO Mnet
/usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
  DeprecationWarning)
NOTE: c_xor found, using accelerated C version of xor
Traceback (most recent call last):
  File "Mnet", line 5, in ?
    from mnetlib.scripts import startup
  File "/u/data/mnet/mnet_new_mt/mnetlib/scripts/startup.py", line 64, in ?
    from egtp import CommStrat, MojoTransaction, MojoMessage, TCPCommsHandler
  File "/u/data/mnet/mnet_new_mt/egtp/CommStrat.py", line 20, in ?
    import DataTypes, MojoMessage, TCPCommsHandler, TCPConnection, idlib, ipaddresslib, keyutil, mencode
  File "/u/data/mnet/mnet_new_mt/egtp/DataTypes.py", line 15, in ?
    from egtp import EGTPConstants, idlib, mojosixbit, std
  File "/u/data/mnet/mnet_new_mt/egtp/idlib.py", line 30, in ?
    from evilcrypto import randsource
  File "/u/data/mnet/mnet_new_mt/evilcrypto/randsource.py", line 8, in ?
    from evilcrypto import evilcryptopp
ImportError: /u/data/mnet/mnet_new_mt/evilcrypto/evilcryptopp.so: Undefined symbol "_ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj"
% 

It won't even compile:

% python setup.py download
INFO: Setting MAKE=gmake because of mutated red penguin with a fork
running download
Building crypto++...
[ now entering '/u/data/mnet/mnet_new_mt/build/crypto51' ... ]
g++ -g -pipe -c 3way.cpp
In file included from seckey.h:10,
                 from 3way.h:7,
                 from 3way.cpp:5:
simple.h: In member function `bool CryptoPP::Unflushable<T>::Flush(bool, int, bool)':
simple.h:71: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
simple.h: In member function `bool CryptoPP::Unflushable<T>::ChannelFlush(const std::string&, bool, int, bool)':
simple.h:80: error: there are no arguments to `AttachedTransformation' that depend on a template parameter, so a declaration of `AttachedTransformation' must be available
simple.h:80: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
simple.h: In member function `void CryptoPP::Multichannel<T>::Initialize(const CryptoPP::NameValuePairs&, int)':
simple.h:134: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel<T>::Flush(bool, int, bool)':
simple.h:136: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel<T>::MessageSeriesEnd(int, bool)':
simple.h:138: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h:138: error: there are no arguments to `ChannelMessageSeriesEnd' that depend on a template parameter, so a declaration of `ChannelMessageSeriesEnd' must be available
simple.h: In member function `byte* CryptoPP::Multichannel<T>::CreatePutSpace(unsigned int&)':
simple.h:140: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `unsigned int CryptoPP::Multichannel<T>::Put2(const byte*, unsigned int, int, bool)':
simple.h:142: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `unsigned int CryptoPP::Multichannel<T>::PutModifiable2(byte*, unsigned int, int, bool)':
simple.h:144: error: `NULL_CHANNEL' undeclared (first use this function)
simple.h: In member function `bool CryptoPP::Multichannel<T>::ChannelPutModifiable(const std::string&, byte*, unsigned int)':
simple.h:151: error: there are no arguments to `ChannelPut' that depend on a template parameter, so a declaration of `ChannelPut' must be available
In file included from 3way.h:7,
                 from 3way.cpp:5:
seckey.h: In member function `unsigned int CryptoPP::BlockCipherBaseTemplate<INFO, INTERFACE>::BlockSize() const':
seckey.h:159: error: `BLOCKSIZE' undeclared (first use this function)
seckey.h: In constructor `CryptoPP::BlockCipherTemplate<DIR, BASE>::BlockCipherTemplate(const byte*)':
seckey.h:169: error: `DEFAULT_KEYLENGTH' undeclared (first use this function)
seckey.h: In constructor `CryptoPP::BlockCipherTemplate<DIR, BASE>::BlockCipherTemplate(const byte*, unsigned int, unsigned int)':
seckey.h:173: error: there are no arguments to `SetKeyWithRounds' that depend on a template parameter, so a declaration of `SetKeyWithRounds' must be available
seckey.h: In constructor `CryptoPP::MessageAuthenticationCodeTemplate<BASE>::MessageAuthenticationCodeTemplate(const byte*)':
seckey.h:197: error: `DEFAULT_KEYLENGTH' undeclared (first use this function)
seckey.h: In member function `std::string CryptoPP::MessageAuthenticationCodeTemplate<BASE>::AlgorithmName() const':
seckey.h:201: error: there are no arguments to `StaticAlgorithmName' that depend on a template parameter, so a declaration of `StaticAlgorithmName' must be available
gmake: *** [3way.o] Error 1
[...]

The 0.6 metatracker is down because of this.


Faried.
-- 
The Great GNU has arrived, infidels, behold his wrath !
        "We have nothing to fear from free information
                               but pop-up advertising!" 
       continuations are hard.  let's go []! -- 'barbie


More information about the Mnet-devel mailing list