Hi!

I downloaded version 5.5.2 of cryptopp and tried to compile it using
the solaris bundled compiler (GCC 3.4.2) but I think it doesn't go
well. First, I had to correct the GNUmakefile, since the --divide
option is not accepted by gas (or g++, don't remember). But even after
this, while compiling it would throw lots of warnings. Here's an
excerpt:

[EMAIL PROTECTED] cryptopp552]# gmake
g++ -DNDEBUG -g -O2 -Wa  -pipe -c 3way.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c adler32.cpp
g++ -DNDEBUG -g -O2 -Wa  -pipe -c algebra.cpp
g++ -DNDEBUG -g -O2 -Wa  -pipe -c algparam.cpp
g++ -DNDEBUG -g -O2 -Wa  -pipe -c arc4.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c asn.cpp
asn.cpp: In copy constructor
`CryptoPP::DERGeneralEncoder::DERGeneralEncoder(CryptoPP::DERGeneralEncoder&,
byte)':
asn.cpp:487: warning: base class `class CryptoPP::ByteQueue' should be
explicitly initialized in the copy constructor
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c base32.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c base64.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c basecode.cpp
basecode.cpp: In member function `virtual size_t
CryptoPP::BaseN_Encoder::Put2(const byte*, size_t, int, bool)':
basecode.cpp:81: warning: statement has no effect
basecode.cpp:100: warning: statement has no effect
basecode.cpp: In member function `virtual size_t
CryptoPP::BaseN_Decoder::Put2(const byte*, size_t, int, bool)':
basecode.cpp:157: warning: statement has no effect
basecode.cpp:163: warning: statement has no effect
basecode.cpp: In member function `virtual size_t
CryptoPP::Grouper::Put2(const byte*, size_t, int, bool)':
basecode.cpp:214: warning: statement has no effect
basecode.cpp:226: warning: statement has no effect
basecode.cpp:230: warning: statement has no effect
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c bfinit.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c blowfish.cpp
blowfish.cpp: In member function `virtual void
CryptoPP::Blowfish::Base::UncheckedSetKey(const byte*, unsigned int,
const CryptoPP::NameValuePairs&)':
blowfish.cpp:30: warning: comparison between signed and unsigned
integer expressions
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false
g++ -DNDEBUG -g -O2 -Wa  -pipe -c blumshub.cpp
In file included from blumshub.h:4,
                 from blumshub.cpp:4:
modarith.h: In copy constructor
`CryptoPP::ModularArithmetic::ModularArithmetic(const
CryptoPP::ModularArithmetic&)':
modarith.h:30: warning: base class `class
CryptoPP::AbstractRing<CryptoPP::Integer>' should be explicitly
initialized in the copy constructor
g++ -DNDEBUG -g -O2 -Wa  -pipe -c camellia.cpp
misc.h: In function `std::string CryptoPP::IntToString(T, unsigned
int) [with T = unsigned int]':
simple.h:35:   instantiated from here
misc.h:369: warning: comparison of unsigned expression < 0 is always
false

However, I've previously succesfully used this same compiler to
compile version 5.2.1 of cryptopp. Are these warnings dangerous, or
can they be safely ignored?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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