meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.92k stars 406 forks source link

megacmd doesn't want to be compiled #347

Open grs444 opened 4 years ago

grs444 commented 4 years ago

Good Day. A couple of weeks ago I discovered this wonderful application. I immediately installed ubuntu on top of termux/android, found all the libraries, compiled. And it worked wonderfully until started to say that a second instance of the server is running. I tinkered a bit with this problem, quickly found no answer and decided to rebuild the application. But since this did not help, reinstalled the ubuntu. And that’s all. I have never succeeded in compiling megacmd anymore. Dances with a tambourine began. I reinstalled ubuntu 5 times (16.04, 19.04). I tried different libraries from different repos, tried to build some of the libraries, followed some tips from your readme, tried to compile different versions of the application, tried different versions of g++. And so far it has not worked. All the time during compilation there are some errors. And I thought, maybe you can help? I don't know what information would be useful. Here are my last try logs. it seems like when installing with different source data (different libraries, compilers, etc.) errors occur in different places. But once it compiled fine and worked for quite some time!

`[root@localhost:~/megacmd]

: ./configure

checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking that generated files are newer than configure... done configure: creating ./config.status
config.status: creating Makefile config.status: executing depfiles commands checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking dependency style of gcc... (cached) gcc3 checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether make supports nested variables... (cached) yes checking for size_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for pid_t... yes checking for off_t... yes checking for ssize_t... yes checking for g++... g++ checking whether we are using the GNU Objective C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... gcc3 checking dependency style of g++... (cached) gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether build environment is sane... yes checking for cppcheck... no checking whether g++ supports C++11 features by default... yes checking for ANSI C header files... (cached) yes checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... no checking for _Bool... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGEFILE_SOURCE value needed for large files... no checking for off_t... (cached) yes checking size of uint64_t... 8 checking whether struct tm is in sys/time.h or time.h... time.h checking for off_t... (cached) yes checking for size_t... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking htonl usability... no checking htonl presence... no checking for htonl... no checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking sys/malloc.h usability... no checking sys/malloc.h presence... no checking for sys/malloc.h... no checking malloc/malloc.h usability... no checking malloc/malloc.h presence... no checking for malloc/malloc.h... no checking whether C++ compiler accepts -fPIC... yes checking whether the linker accepts -fPIC... yes checking if building for Win32 platform... no checking for libpcrecpp... --with-pcre not specified checking pcrecpp.h usability... yes checking pcrecpp.h presence... yes checking for pcrecpp.h... yes checking for main in -lpcrecpp... yes checking for pcre_compile in -lpcre... yes checking for termcap... --with-termcap not specified checking for tputs in -ltermcap... yes checking for Readline... --with-readline not specified checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for rl_save_prompt in -lreadline... yes checking for pthread_create in -lpthread... yes checking that generated files are newer than configure... done checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile
config.status: creating src/megacmdconfig.h config.status: src/megacmdconfig.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands
=== configuring in sdk (/root/megacmd/sdk) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking dependency style of gcc... gcc3 checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether make supports nested variables... (cached) yes checking for size_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for pid_t... yes checking for off_t... yes checking for ssize_t... yes checking for g++... g++ checking whether we are using the GNU Objective C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether build environment is sane... yes checking for cppcheck... no checking whether g++ supports C++11 features by default... yes checking for ANSI C header files... (cached) yes checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... no checking for _Bool... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGEFILE_SOURCE value needed for large files... no checking for off_t... (cached) yes checking size of uint64_t... 8 checking whether struct tm is in sys/time.h or time.h... time.h checking for off_t... (cached) yes checking for size_t... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking htonl usability... no checking htonl presence... no checking for htonl... no checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking sys/malloc.h usability... no checking sys/malloc.h presence... no checking for sys/malloc.h... no checking malloc/malloc.h usability... no checking malloc/malloc.h presence... no checking for malloc/malloc.h... no checking whether C++ compiler accepts -fPIC... yes checking whether the linker accepts -fPIC... yes checking for dlopen in -ldl... yes checking sys/inotify.h usability... yes checking sys/inotify.h presence... yes checking for sys/inotify.h... yes checking mcheck.h usability... yes checking mcheck.h presence... yes checking for mcheck.h... yes checking for inotify_init1... yes checking for fdopendir... yes checking for select... yes checking for sendfile in -lsendfile... no checking for socket in -lsocket... no checking for clock_gettime in -lrt... yes checking platform options... no checking for pthread_create in -lpthread... yes checking if building Java bindings... no checking for libcryptopp... --with-cryptopp not specified checking cryptopp/cryptlib.h usability... yes checking cryptopp/cryptlib.h presence... yes checking for cryptopp/cryptlib.h... yes checking for main in -lcryptopp... yes checking for libsodium... --with-sodium not specified checking sodium.h usability... yes checking sodium.h presence... yes checking for sodium.h... yes checking for sodium_init in -lsodium... yes checking for libpcrecpp... checking for libraw... checking libraw/libraw.h usability... yes checking libraw/libraw.h presence... yes checking for libraw/libraw.h... yes checking for libraw_init in -lraw... yes checking for libuv... --with-libuv not specified checking uv.h usability... yes checking uv.h presence... yes checking for uv.h... yes checking for uv_run in -luv... yes checking for zlib... --with-zlib not specified checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for main in -lz... yes checking for SQLite... --with-sqlite not specified checking for Berkeley DB... --with-db not specified
configure: Using SQLite3 as the default DB access layer. checking sqlite3.h usability... yes checking sqlite3.h presence... yes checking for sqlite3.h... yes checking for sqlite3_open in -lsqlite3... yes checking for ffmpeg... --with-ffmpeg not specified checking ffmpeg-mega/libavutil/macros.h usability... no checking ffmpeg-mega/libavutil/macros.h presence... no checking for ffmpeg-mega/libavutil/macros.h... no checking libavutil/macros.h usability... yes checking libavutil/macros.h presence... yes checking for libavutil/macros.h... yes checking for main in -lavformat... no checking for libzen... --with-libzen not specified checking ZenLib/Ztring.h usability... yes checking ZenLib/Ztring.h presence... yes checking for ZenLib/Ztring.h... yes checking for _ZN6ZenLib15int8u2BigEndianEPch in -lzen... no checking for _ZN6ZenLib19int48s2LittleEndianEPcx in -lzen... yes checking for pthread_create in -lpthread... (cached) yes checking for libmediainfo... --with-libmediainfo not specified checking MediaInfo/MediaInfo.h usability... no checking MediaInfo/MediaInfo.h presence... no checking for MediaInfo/MediaInfo.h... no checking for aio_write in -lrt... yes checking for OpenSSL... --with-openssl not specified checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for SSL_new in -lssl... yes checking for c-ares... --with-cares not specified checking ares.h usability... yes checking ares.h presence... yes checking for ares.h... yes checking for ares_library_init in -lcares... yes checking curl/curl.h usability... yes checking curl/curl.h presence... yes checking for curl/curl.h... yes checking for main in -lcurl... yes checking whether cURL is built with OpenSSL support... yes checking if building example applications... yes checking for FreeImage... --with-freeimage not specified checking FreeImage.h usability... yes checking FreeImage.h presence... yes checking for FreeImage.h... yes checking for main in -lfreeimage... yes checking for termcap... --with-termcap not specified checking for tputs in -ltermcap... yes checking for Readline... --with-readline not specified checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for rl_save_prompt in -lreadline... yes checking for FUSE... --with-fuse not specified checking fuse.h usability... no checking fuse.h presence... no checking for fuse.h... no checking for fuse_main in -lfuse... no checking if building tests... no checking if building Python bindings... checking if building PHP bindings... no checking for main in -lstdc++fs... yes checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation checking for perl... /usr/bin/perl checking that generated files are newer than configure... done checking that generated files are newer than configure... done
configure: creating ./config.status config.status: creating Makefile
config.status: creating include/Makefile config.status: creating libmega.pc
config.status: creating doc/Doxyfile config.status: creating include/mega/config.h
config.status: include/mega/config.h is unchanged config.status: executing depfiles commands
config.status: executing libtool commands configure: Configured to build Mega SDK: SDK version: 3.6.9
Host setup: aarch64-unknown-linux-gnu Install prefix: /usr/local
Compiler: g++ CXXFLAGS: -g -O2 -DNDEBUG=1 -fPIC LDFLAGS: -lstdc++fs -pthread -lrt gcc hardening: no
debug: no static: no
sync subsystem: yes chat: no
MEGA API yes example apps: yes inotify: yes
posix threads: yes

Python bindings: no Python3 bindings: no
PHP bindings: no SWIG_FLAGS_PHP:

Java bindings: no

OpenSSL: -lssl -lcrypto Crypto++: -lcryptopp
Sodium: -lsodium Zlib: -lz SQLite3: -lsqlite3 c-ares: -lcares
cURL: -lcurl FreeImage: -lfreeimage Readline: -lreadline
Termcap: -ltermcap PCRE: LIBUV: -luv
LIBRAW: -lraw -fopenmp LIBMEDIAINFO:
FFMPEG:

checking that generated files are newer than configure... done checking that generated files are newer than configure... done
configure: creating ./config.status config.status: creating Makefile
config.status: creating src/megacmdconfig.h config.status: src/megacmdconfig.h is unchanged
config.status: executing depfiles commands config.status: executing libtool commands === configuring in sdk (/root/megacmd/sdk)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking dependency style of gcc... gcc3 checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether make supports nested variables... (cached) yes checking for size_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for pid_t... yes checking for off_t... yes checking for ssize_t... yes checking for g++... g++ checking whether we are using the GNU Objective C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether build environment is sane... yes checking for cppcheck... no checking whether g++ supports C++11 features by default... yes checking for ANSI C header files... (cached) yes checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... no checking for _Bool... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGEFILE_SOURCE value needed for large files... no checking for off_t... (cached) yes checking size of uint64_t... 8 checking whether struct tm is in sys/time.h or time.h... time.h checking for off_t... (cached) yes checking for size_t... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking htonl usability... no checking htonl presence... no checking for htonl... no checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes

checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking sys/malloc.h usability... no checking sys/malloc.h presence... no checking for sys/malloc.h... no checking malloc/malloc.h usability... no checking malloc/malloc.h presence... no checking for malloc/malloc.h... no checking whether C++ compiler accepts -fPIC... yes checking whether the linker accepts -fPIC... yes checking for dlopen in -ldl... yes checking sys/inotify.h usability... yes checking sys/inotify.h presence... yes checking for sys/inotify.h... yes checking mcheck.h usability... yes checking mcheck.h presence... yes checking for mcheck.h... yes checking for inotify_init1... yes checking for fdopendir... yes checking for select... yes

checking for sendfile in -lsendfile... no checking for socket in -lsocket... no checking for clock_gettime in -lrt... yes checking platform options... no checking for pthread_create in -lpthread... yes checking if building Java bindings... no checking for libcryptopp... --with-cryptopp not specified checking cryptopp/cryptlib.h usability... yes checking cryptopp/cryptlib.h presence... yes checking for cryptopp/cryptlib.h... yes checking for main in -lcryptopp... yes checking for libsodium... --with-sodium not specified checking sodium.h usability... yes checking sodium.h presence... yes checking for sodium.h... yes checking for sodium_init in -lsodium... yes checking for libpcrecpp... checking for libraw... checking libraw/libraw.h usability... yes checking libraw/libraw.h presence... yes checking for libraw/libraw.h... yes checking for libraw_init in -lraw... yes checking for libuv... --with-libuv not specified checking uv.h usability... yes checking uv.h presence... yes checking for uv.h... yes checking for uv_run in -luv... yes checking for zlib... --with-zlib not specified checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for main in -lz... yes checking for SQLite... --with-sqlite not specified checking for Berkeley DB... --with-db not specified configure: Using SQLite3 as the default DB access layer. checking sqlite3.h usability... yes checking sqlite3.h presence... yes checking for sqlite3.h... yes checking for sqlite3_open in -lsqlite3... yes checking for ffmpeg... --with-ffmpeg not specified checking ffmpeg-mega/libavutil/macros.h usability... no checking ffmpeg-mega/libavutil/macros.h presence... no checking for ffmpeg-mega/libavutil/macros.h... no checking libavutil/macros.h usability... yes checking libavutil/macros.h presence... yes checking for libavutil/macros.h... yes checking for main in -lavformat... no checking for libzen... --with-libzen not specified checking ZenLib/Ztring.h usability... yes checking ZenLib/Ztring.h presence... yes checking for ZenLib/Ztring.h... yes checking for _ZN6ZenLib15int8u2BigEndianEPch in -lzen... no checking for _ZN6ZenLib19int48s2LittleEndianEPcx in -lzen... yes checking for pthread_create in -lpthread... (cached) yes checking for libmediainfo... --with-libmediainfo not specified checking MediaInfo/MediaInfo.h usability... no checking MediaInfo/MediaInfo.h presence... no checking for MediaInfo/MediaInfo.h... no checking for aio_write in -lrt... yes checking for OpenSSL... --with-openssl not specified checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for SSL_new in -lssl... yes checking for c-ares... --with-cares not specified checking ares.h usability... yes checking ares.h presence... yes checking for ares.h... yes checking for ares_library_init in -lcares... yes checking curl/curl.h usability... yes checking curl/curl.h presence... yes checking for curl/curl.h... yes checking for main in -lcurl... yes checking whether cURL is built with OpenSSL support... yes checking if building example applications... yes checking for FreeImage... --with-freeimage not specified checking FreeImage.h usability... yes checking FreeImage.h presence... yes checking for FreeImage.h... yes checking for main in -lfreeimage... yes checking for termcap... --with-termcap not specified checking for tputs in -ltermcap... yes checking for Readline... --with-readline not specified checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for rl_save_prompt in -lreadline... yes checking for FUSE... --with-fuse not specified checking fuse.h usability... no checking fuse.h presence... no checking for fuse.h... no checking for fuse_main in -lfuse... no checking if building tests... no checking if building Python bindings... checking if building PHP bindings... no checking for main in -lstdc++fs... yes checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation checking for perl... /usr/bin/perl checking that generated files are newer than configure... done checking that generated files are newer than configure... done configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libmega.pc
config.status: creating doc/Doxyfile config.status: creating include/mega/config.h
config.status: include/mega/config.h is unchanged config.status: executing depfiles commands
config.status: executing libtool commands
configure: Configured to build Mega SDK: SDK version: 3.6.9 Host setup: aarch64-unknown-linux-gnu
Install prefix: /usr/local Compiler: g++
CXXFLAGS: -g -O2 -DNDEBUG=1 -fPIC
LDFLAGS: -lstdc++fs -pthread -lrt gcc hardening: no debug: no static: no
sync subsystem: yes chat: no
MEGA API yes
example apps: yes inotify: yes
posix threads: yes Python bindings: no
Python3 bindings: no
PHP bindings: no
SWIG_FLAGS_PHP: Java bindings: no OpenSSL: -lssl -lcrypto Crypto++: -lcryptopp
Sodium: -lsodium Zlib: -lz SQLite3: -lsqlite3 c-ares: -lcares
cURL: -lcurl
FreeImage: -lfreeimage Readline: -lreadline Termcap: -ltermcap
PCRE: LIBUV: -luv LIBRAW: -lraw -fopenmp LIBMEDIAINFO:
FFMPEG: configure: MEGAcmd configuration: MEGACMD version: 1.2.0 Install prefix: /usr/local
Compiler: g++
CXXFLAGS: -g -O2 -DNDEBUG=1 -fPIC -DENABLE_BACKUPS=1 CPPFLAGS: LDFLAGS: -pthread
debug: no
static: no
posix threads: yes Readline: -lreadline Termcap: -ltermcap
PCRE: -lpcrecpp -lpcre
SDK includes: -I. -I./include -I./include/mega -I./include/mega/posix -I./third_party/utf8proc

[root@localhost:~/megacmd]

: make

make all-recursive make[1]: Entering directory '/root/megacmd' Making all in sdk make[2]: Entering directory '/root/megacmd/sdk' make all-recursive make[3]: Entering directory '/root/megacmd/sdk' Making all in include make[4]: Entering directory '/root/megacmd/sdk/include' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/root/megacmd/sdk/include'
make[4]: Entering directory '/root/megacmd/sdk' CXX src/src_libmega_la-filesystem.lo
CXX src/src_libmega_la-gfx.lo CXX src/src_libmega_la-http.lo CXX src/src_libmega_la-json.lo CXX src/src_libmega_la-mediafileattribute.lo CXX src/src_libmega_la-node.lo CXX src/src_libmega_la-pubkeyaction.lo CXX src/src_libmega_la-raid.lo CXX src/src_libmega_la-testhooks.lo CXX src/src_libmega_la-request.lo
CXX src/src_libmega_la-serialize64.lo CXX src/src_libmega_la-share.lo
CXX src/src_libmega_la-sharenodekeys.lo
CXX src/src_libmega_la-sync.lo
CXX src/src_libmega_la-transfer.lo CXX src/src_libmega_la-transferslot.lo
CXX src/src_libmega_la-treeproc.lo CXX src/src_libmega_la-user.lo
CXX src/src_libmega_la-useralerts.lo CXX src/src_libmega_la-utils.lo
CXX src/src_libmega_la-logging.lo CXX src/src_libmega_la-waiterbase.lo CXX src/src_libmega_la-proxy.lo CXX src/crypto/src_libmega_la-cryptopp.lo CXX src/db/src_libmega_la-sqlite.lo CXX src/src_libmega_la-mega_evt_tls.lo
CXX src/gfx/src_libmega_la-external.lo CXX src/src_libmega_la-pendingcontactrequest.lo
CXX src/src_libmega_la-megaapi_impl.lo CXX src/src_libmega_la-megaapi.lo
CXX src/gfx/src_libmega_la-freeimage.lo
CXX src/crypto/src_libmega_la-sodium.lo
CXX src/posix/src_libmega_la-fs.lo CXX src/posix/src_libmega_la-console.lo
CXX src/posix/src_libmega_la-net.lo
CXX src/posix/src_libmega_la-waiter.lo
src/posix/waiter.cpp: In member function ‘virtual void mega::PosixWaiter::notify()’: src/posix/waiter.cpp:145:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] 145 | write(m_pipe[1], "0", 1); | ~^~~~~~~
CXX src/posix/src_libmega_la-consolewaiter.lo
CXX src/thread/src_libmega_la-posixthread.lo OBJCXXLD src/libmega.la
CXX examples/examples_megacli-megacli.o
examples/megacli.cpp: In function ‘mega::autocomplete::ACN autocompleteSyntax()’:
examples/megacli.cpp:2764:19: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
2764 | autocomplete::ACN autocompleteSyntax() | ^~~~~~
CXXLD examples/megacli
examples/examples_megacli-megacli.o:(.data.rel.ro._ZTVN8CryptoPP16BlockCipherFinalILNS_9CipherDirE0ENS_8Rijndael3EncEEE[_ZTVN8CryptoPP16BlockCipherFinalILNS_9CipherDirE0ENS_8Rijndael3EncEEE]+0x100): undefined reference to non-virtual thunk to CryptoPP::Rijndael::Base::AlgorithmProvider[abi:cxx11]() const' examples/examples_megacli-megacli.o:(.data.rel.ro._ZTVN8CryptoPP16BlockCipherFinalILNS_9CipherDirE1ENS_8Rijndael3DecEEE[_ZTVN8CryptoPP16BlockCipherFinalILNS_9CipherDirE1ENS_8Rijndael3DecEEE]+0x100): undefined reference tonon-virtual thunk to CryptoPP::Rijndael::Base::AlgorithmProvider[abi:cxx11]() const' collect2: error: ld returned 1 exit status Makefile:1890: recipe for target 'examples/megacli' failed make[4]: [examples/megacli] Error 1 make[4]: Leaving directory '/root/megacmd/sdk'
Makefile:3192: recipe for target 'all-recursive' failed make[3]:
[all-recursive] Error 1
make[3]: Leaving directory '/root/megacmd/sdk' Makefile:1402: recipe for target 'all' failed
make[2]: [all] Error 2 make[2]: Leaving directory '/root/megacmd/sdk'
Makefile:1410: recipe for target 'all-recursive' failed
make[1]:
[all-recursive] Error 1
make[1]: Leaving directory '/root/megacmd'
Makefile:669: recipe for target 'all' failed
make: *** [all] Error 2

`

polmr commented 4 years ago

that a second instance of the server is running

if there were no mega-cmd-server process running, that could have been because there was a ~/.megaCmd/lockMCMD when it shouldn't be there. starting mega-cmd-server with --skip-lock-check would allow startup of the server in that case.

Regarding your compilation issues, there seems to be an issue linking cryptopp when building an example application, try passing --disable-examples to your configure line. Also --disable-silent-rules will give you some idea of what are the exact building commands. You might also need to build cryptopp yourself and pass it to MEGAcmd with --with-cryptopp=/path/to/inst/installation

grs444 commented 4 years ago

Well, to know this before)

I remember that at the time when everything worked for me, I compiled cryptopp from the sources. I'll try your advices, hope it works.

By the way, maybe there is a way to compile your application in termux? So far, I have not been able to find freeimage libraries for it. Can we void this troubles somehow?

BlackMage2 commented 1 year ago

hmpf, for me all works great, but if i want compile the MEGAcmd project, it stucks at CXX examples/megacli-megacli.o. it never completes

but: --disable-examples helped :+1:

and i needed --without-freeimage due to that problems with freeimage :100:

  CXX      src/gfx/libmega_la-freeimage.lo
src/gfx/freeimage.cpp: In member function ‘bool mega::GfxProviderFreeImage::readbitmapFfmpeg(mega::FileSystemAccess*, const mega::LocalPath&, int)’:
src/gfx/freeimage.cpp:333:18: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘skip_to_keyframe’
  333 |     videoStream->skip_to_keyframe = true;
      |                  ^~~~~~~~~~~~~~~~
supersonictw commented 11 months ago

https://github.com/meganz/sdk/issues/2576