matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
249 stars 79 forks source link

compilation keeps terminating #44

Open ghost opened 8 years ago

ghost commented 8 years ago

This is what happens when I do the make command. I end up with src/MegaFuse.cpp:15:20: fatal error: db_cxx.h: No such file or directory. Do you know why this would happen?

$ make g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::nodesupdated(Node*, int)’: src/MegaFuseApp.cpp:66:60: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘handle {aka long long unsigned int}’ [-Wformat=] printf("file uploaded nodehandle %lx\n",n[i]->nodehandle); ^ src/MegaFuseApp.cpp:75:64: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘handle {aka long long unsigned int}’ [-Wformat=] printf("file overwritten. nodehandle %lx\n",n[i]->nodehandle); ^ src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::transfercomplete(int, handle, const byte, const byte, SymmCipher)’: src/MegaFuseApp.cpp:241:70: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘handle {aka long long unsigned int}’ [-Wformat=] printf("ulhandle %lx, nodehandle %lx\n",ulhandle,newnode->nodehandle); ^ src/MegaFuseApp.cpp:241:70: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘handle {aka long long unsigned int}’ [-Wformat=] src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::transfer_update(int, m_off_t, m_off_t, dstime)’: src/MegaFuseApp.cpp:363:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) { ^ In file included from /usr/include/cryptopp/secblock.h:7:0, from /usr/include/cryptopp/modes.h:8, from sdk/megacrypto.h:25, from src/MegaFuseApp.cpp:7: /usr/include/cryptopp/algparam.h: In instantiation of ‘CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string]’: /usr/include/cryptopp/filters.h:793:132: required from here /usr/include/cryptopp/misc.h:59:118: warning: unused variable ‘cryptopp_assert_26’ [-Wunused-variable]

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                                                  ^

/usr/include/cryptopp/misc.h:62:39: note: in definition of macro ‘CRYPTOPP_DO_ASSERT_JOIN’

define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y

                                   ^

/usr/include/cryptopp/misc.h:59:97: note: in expansion of macro ‘CRYPTOPP_ASSERT_JOIN’

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                             ^

/usr/include/cryptopp/misc.h:55:44: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT_INSTANCE’

define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, LINE)

                                        ^

/usr/include/cryptopp/algparam.h:26:9: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT’ CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::valuetype) == 1); ^ In file included from /usr/include/cryptopp/modes.h:12:0, from sdk/megacrypto.h:25, from src/MegaFuseApp.cpp:7: /usr/include/cryptopp/algparam.h: In instantiation of ‘void CryptoPP::AlgorithmParametersTemplate::MoveInto(void) const [with T = CryptoPP::RandomNumberGenerator_]’: src/MegaFuseApp.cpp:380:1: required from here /usr/include/cryptopp/algparam.h:322:35: warning: unused variable ‘p’ [-Wunused-variable] AlgorithmParametersTemplate* p = new(buffer) AlgorithmParametersTemplate(_this); ^ In file included from /usr/include/cryptopp/secblock.h:7:0, from /usr/include/cryptopp/modes.h:8, from sdk/megacrypto.h:25, from src/MegaFuseApp.cpp:7: /usr/include/cryptopp/misc.h: At global scope: /usr/include/cryptopp/misc.h:549:20: warning: ‘std::string CryptoPP::StringNarrow(const wchart, bool)’ defined but not used [-Wunused-function] static std::string StringNarrow(const wchar_t _str, bool throwOnError = true) ^ g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/file_cache_row.cpp -o src/file_cache_row.o In file included from /usr/include/cryptopp/secblock.h:7:0, from /usr/include/cryptopp/modes.h:8, from sdk/megacrypto.h:25, from sdk/megaclient.h:23, from src/file_cache_row.cpp:10: /usr/include/cryptopp/algparam.h: In instantiation of ‘CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string]’: /usr/include/cryptopp/filters.h:793:132: required from here /usr/include/cryptopp/misc.h:59:118: warning: unused variable ‘cryptopp_assert_26’ [-Wunused-variable]

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                                                  ^

/usr/include/cryptopp/misc.h:62:39: note: in definition of macro ‘CRYPTOPP_DO_ASSERT_JOIN’

define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y

                                   ^

/usr/include/cryptopp/misc.h:59:97: note: in expansion of macro ‘CRYPTOPP_ASSERT_JOIN’

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                             ^

/usr/include/cryptopp/misc.h:55:44: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT_INSTANCE’

define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, LINE)

                                        ^

/usr/include/cryptopp/algparam.h:26:9: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT’ CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1); ^ In file included from /usr/include/cryptopp/modes.h:12:0, from sdk/megacrypto.h:25, from sdk/megaclient.h:23, from src/file_cacherow.cpp:10: /usr/include/cryptopp/algparam.h: In instantiation of ‘void CryptoPP::AlgorithmParametersTemplate::MoveInto(void) const [with T = CryptoPP::RandomNumberGenerator_]’: src/file_cacherow.cpp:155:1: required from here /usr/include/cryptopp/algparam.h:322:35: warning: unused variable ‘p’ [-Wunused-variable] AlgorithmParametersTemplate p = new(buffer) AlgorithmParametersTemplate(_this); ^ In file included from /usr/include/cryptopp/secblock.h:7:0, from /usr/include/cryptopp/modes.h:8, from sdk/megacrypto.h:25, from sdk/megaclient.h:23, from src/file_cache_row.cpp:10: /usr/include/cryptopp/misc.h:549:20: warning: ‘std::string CryptoPP::StringNarrow(const wchart, bool)’ defined but not used [-Wunused-function] static std::string StringNarrow(const wchar_t _str, bool throwOnError = true) ^ g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/EventsHandler.cpp -o src/EventsHandler.o g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/MegaFuse.cpp -o src/MegaFuse.o src/MegaFuse.cpp:15:20: fatal error: db_cxx.h: No such file or directory

include

                ^

compilation terminated. Makefile:43: recipe for target 'src/MegaFuse.o' failed make: _\ [src/MegaFuse.o] Error 1

e3rd commented 8 years ago

(for me, the same)

e3rd commented 8 years ago

I couldn't install libdb5.1++-dev library. So I tried to install libdb++-dev instead. Now, everything works. Maybe it would solve your problem, too!

Ubuntu 16.04

jesusgt commented 7 years ago

Many thanks e3rd Thanks to your suggestion I was able to compile MegaFuse in my Raspberry Pi2


Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0

Codename: jessie