Juppsy 4 Posted June 5, 2016 Share Posted June 5, 2016 Hello community, today I decided to upgrade boost-libs (1.55.0_10) and cryptopp (5.6.2_2) via pkg. I rezolved the compilation errors, but I have linking errors, most probably from cryptopp. Spoiler linking ../game_juppsy.... OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEEENS_20ConcretePolicyHolder INS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCi pherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFin alTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEE ENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPo licyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x 15c): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBuffe redTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string< char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long) ' OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20ConcretePolicyHolderINS_ 5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipher AbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTe mplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20Co ncretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHold erINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c): un defined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTrans formation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, unsigned long long)' OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4BaseEEENS_20ConcretePolicyHold erINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28Additive CipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeF inalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4Ba seEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20Abstra ctPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE ]+0x15c): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoB ufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_str ing<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long l ong)' OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20ConcretePolicyHolderINS_ 5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipher AbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTe mplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20Co ncretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHold erINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c): un defined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTrans formation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, unsigned long long)' OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_20ConcretePolicyHolderIN S_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCiph erAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinal Template_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_ 20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicy HolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c) : undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedT ransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char , std::char_traits<char>, std::allocator<char> > const&, unsigned long long)' OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4BaseEEENS_20ConcretePolicyHold erINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28Additive CipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeF inalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4Ba seEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20Abstra ctPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE ]+0x15c): more undefined references to `CryptoPP::RandomNumberGenerator::Generat eIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::bas ic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long)' follow OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP20AutoSeededRandomPoolE[_ZTVN8CryptoPP20A utoSeededRandomPoolE]+0x34): undefined reference to `CryptoPP::RandomPool::Gener ateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::b asic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigne d long long)' collect2: error: ld returned 1 exit status Makefile:118: recipe for target '../game_juppsy' failed (line: @echo linking $(TARGET)....) gmake: *** [../game_juppsy] Error 1 Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 6, 2016 Author Share Posted June 6, 2016 UP Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 7, 2016 Author Share Posted June 7, 2016 23 hours ago, arves100 said: Ok, i've got this problem. After a lot of edits i finally get that worked. Contact me in private if you want include\cryptopp and libcryptopp.a My Crypto++ is 2.6.3 I was trying with older Crypto++ and the newer boost few minutes ago, and the error are the same. Well, I tink the problem is from boost. Link to comment Share on other sites More sharing options...
Premium Istny 79 Posted June 7, 2016 Premium Share Posted June 7, 2016 i'm using cryptop 5.6.3 on 64 bit, no problems Link to comment Share on other sites More sharing options...
Premium Istny 79 Posted June 7, 2016 Premium Share Posted June 7, 2016 1 hour ago, Juppsy said: I was trying with older Crypto++ and the newer boost few minutes ago, and the error are the same. Well, I tink the problem is from boost. have you added -lcrypto in makefile ? Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 7, 2016 Author Share Posted June 7, 2016 (edited) 13 minutes ago, Istny said: have you added -lcrypto in makefile ? Yes, I have it. Spoiler Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 9, 2016 Author Share Posted June 9, 2016 On 6/7/2016 at 0:54 AM, arves100 said: I have sended the files in private message. The problem is the crypto++ library witch dosen't include by default deprecated features Same problem using crypto++ from you. Link to comment Share on other sites More sharing options...
ds_aim 241 Posted June 9, 2016 Share Posted June 9, 2016 37 minutes ago, Juppsy said: Same problem using crypto++ from you. If you don't know how to update. Then don't do it. If all work why you want to update? Any good reasons for this ? Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 9, 2016 Author Share Posted June 9, 2016 3 minutes ago, ds_aim said: If you don't know how to update. Then don't do it. If all work why you want to update? Any good reasons for this ? Why not? I just want to try. Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 9, 2016 Author Share Posted June 9, 2016 11 minutes ago, arves100 said: Try chaining cipher.cpp I sended you mine Same... Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 9, 2016 Author Share Posted June 9, 2016 Just now, arves100 said: Are you compiling with? Also are you using c++? I'm compiling with gcc5, using c++11. I'm need a newer version of c++? Link to comment Share on other sites More sharing options...
Juppsy 4 Posted June 9, 2016 Author Share Posted June 9, 2016 16 minutes ago, arves100 said: Well as i remember, i compiled Crypto++ lib with c++14 All it works now, thanks! Link to comment Share on other sites More sharing options...
Legor 0 Posted July 21, 2016 Share Posted July 21, 2016 On 9/6/2016 at 5:54 PM, Juppsy said: All it works now, thanks! Hello, could you explain in more detail the way you solved? I got lost after reading about having to compile the Crypto++ with C++ 14. thanks Link to comment Share on other sites More sharing options...
Legor 0 Posted July 22, 2016 Share Posted July 22, 2016 18 hours ago, arves100 said: You have to use Gcc5 with -std=c++14 flag I receive al lot of errors in every file (game src). I have to compile all with Gcc5 and -std=c++14 flag? Or only Crypto++? Link to comment Share on other sites More sharing options...
Legor 0 Posted July 25, 2016 Share Posted July 25, 2016 14 hours ago, arves100 said: Compile every source with Gcc5 and -std=c++14 You have also to do this: replace any auto_ptr to unique_ptr replace any typeof to __typeof or add in common/stl.h #if defined(__GNUC__) && defined(_USE_CPP11_) #define typeof __typeof #define auto_ptr unique_ptr #endif after #ifndef itertype Also edit Makefile in db\game and add at CXXFLAG: -D_USE_CPP11_ Ok, I try this. Thanks Link to comment Share on other sites More sharing options...
Legor 0 Posted July 27, 2016 Share Posted July 27, 2016 Mhmm, I receive a lot of error. But I'm trying to compile on 64 bit system. Is this the problem? P.S: Without Gcc5 and -std=c++14 I compile all without problems (But fail linking). Link to comment Share on other sites More sharing options...
Legor 0 Posted July 29, 2016 Share Posted July 29, 2016 20 hours ago, arves100 said: Please upgrade boost to 1.55 or greater. Boost 1.47 is not upgraded for c++11 Ok, now it call my installed 1.55 Boost libs, but.. (See images). I thank you very much for the help you are giving me Link to comment Share on other sites More sharing options...
Legor 0 Posted August 3, 2016 Share Posted August 3, 2016 13 hours ago, arves100 said: This is a skill bug. You have to create a hash of VID Could you explain more? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now