{"action":"opened","issue":{"url":"https://api.github.com/repos/meganz/sdk/issues/59","labels_url":"https://api.github.com/repos/meganz/sdk/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/meganz/sdk/issues/59/comments","events_url":"https://api.github.com/repos/meganz/sdk/issues/59/events","html_url":"https://github.com/meganz/sdk/issues/59","id":53302208,"number":59,"title":"Compiling fails on Ubuntu 12.04.5 with gcc version 4.6.3","user":{"login":"nephilim1973","id":2423311,"avatar_url":"https://avatars.githubusercontent.com/u/2423311?v=3","gravatar_id":"","url":"https://api.github.com/users/nephilim1973","html_url":"https://github.com/nephilim1973","followers_url":"https://api.github.com/users/nephilim1973/followers","following_url":"https://api.github.com/users/nephilim1973/following{/other_user}","gists_url":"https://api.github.com/users/nephilim1973/gists{/gist_id}","starred_url":"https://api.github.com/users/nephilim1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nephilim1973/subscriptions","organizations_url":"https://api.github.com/users/nephilim1973/orgs","repos_url":"https://api.github.com/users/nephilim1973/repos","events_url":"https://api.github.com/users/nephilim1973/events{/privacy}","received_events_url":"https://api.github.com/users/nephilim1973/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-03T11:51:38Z","updated_at":"2015-01-03T11:51:38Z","closed_at":null,"body":"gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)\r\n\r\n# sh autogen.sh\r\nautoreconf: Entering directory `.'\r\nautoreconf: configure.ac: not using Gettext\r\nautoreconf: running: aclocal --force -I m4\r\nautoreconf: configure.ac: tracing\r\nautoreconf: running: libtoolize --install --copy --force\r\nlibtoolize: putting auxiliary files in `.'.\r\nlibtoolize: copying file `./config.guess'\r\nlibtoolize: copying file `./config.sub'\r\nlibtoolize: copying file `./install-sh'\r\nlibtoolize: copying file `./ltmain.sh'\r\nlibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.\r\nlibtoolize: copying file `m4/libtool.m4'\r\nlibtoolize: copying file `m4/ltoptions.m4'\r\nlibtoolize: copying file `m4/ltsugar.m4'\r\nlibtoolize: copying file `m4/ltversion.m4'\r\nlibtoolize: copying file `m4/lt~obsolete.m4'\r\nautoreconf: running: /usr/bin/autoconf --force\r\nautoreconf: running: /usr/bin/autoheader --force\r\nautoreconf: running: automake --add-missing --copy --force-missing\r\nautoreconf: Leaving directory `.'\r\n\r\n-----------------------------------------------------------------------------\r\n\r\n# ./configure\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking minix/config.h usability... no\r\nchecking minix/config.h presence... no\r\nchecking for minix/config.h... no\r\nchecking whether it is safe to define __EXTENSIONS__... yes\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking for style of include used by make... GNU\r\nchecking whether make supports nested variables... yes\r\nchecking dependency style of gcc... gcc3\r\nchecking build system type... i686-pc-linux-gnu\r\nchecking host system type... i686-pc-linux-gnu\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... /bin/sed\r\nchecking for fgrep... /bin/grep -F\r\nchecking for ld used by gcc... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1966080\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... yes\r\nchecking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop\r\nchecking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/bin/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from gcc object... ok\r\nchecking for sysroot... no\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc supports -fno-rtti -fno-exceptions... no\r\nchecking for gcc option to produce PIC... -fPIC -DPIC\r\nchecking if gcc PIC flag -fPIC -DPIC works... yes\r\nchecking if gcc static flag -static works... yes\r\nchecking if gcc supports -c -o file.o... yes\r\nchecking if gcc supports -c -o file.o... (cached) yes\r\nchecking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... no\r\nchecking whether make supports nested variables... (cached) yes\r\nchecking for size_t... yes\r\nchecking for uint8_t... yes\r\nchecking for uint16_t... yes\r\nchecking for uint32_t... yes\r\nchecking for uint64_t... yes\r\nchecking for pid_t... yes\r\nchecking for off_t... yes\r\nchecking for ssize_t... yes\r\nchecking for g++... g++\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether g++ accepts -g... yes\r\nchecking dependency style of g++... gcc3\r\nchecking how to run the C++ preprocessor... g++ -E\r\nchecking for ld used by g++... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... yes\r\nchecking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes\r\nchecking for g++ option to produce PIC... -fPIC -DPIC\r\nchecking if g++ PIC flag -fPIC -DPIC works... yes\r\nchecking if g++ static flag -static works... yes\r\nchecking if g++ supports -c -o file.o... yes\r\nchecking if g++ supports -c -o file.o... (cached) yes\r\nchecking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... (cached) GNU/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether build environment is sane... yes\r\nchecking for cppcheck... no\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for stdbool.h that conforms to C99... yes\r\nchecking for _Bool... no\r\nchecking for dirent.h that defines DIR... yes\r\nchecking for library containing opendir... none required\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... 64\r\nchecking for _LARGEFILE_SOURCE value needed for large files... no\r\nchecking for off_t... (cached) yes\r\nchecking size of uint64_t... 8\r\nchecking whether struct tm is in sys/time.h or time.h... time.h\r\nchecking for off_t... (cached) yes\r\nchecking for size_t... (cached) yes\r\nchecking arpa/inet.h usability... yes\r\nchecking arpa/inet.h presence... yes\r\nchecking for arpa/inet.h... yes\r\nchecking netdb.h usability... yes\r\nchecking netdb.h presence... yes\r\nchecking for netdb.h... yes\r\nchecking netinet/in.h usability... yes\r\nchecking netinet/in.h presence... yes\r\nchecking for netinet/in.h... yes\r\nchecking stddef.h usability... yes\r\nchecking stddef.h presence... yes\r\nchecking for stddef.h... yes\r\nchecking for stdint.h... (cached) yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking sys/socket.h usability... yes\r\nchecking sys/socket.h presence... yes\r\nchecking for sys/socket.h... yes\r\nchecking sys/timeb.h usability... yes\r\nchecking sys/timeb.h presence... yes\r\nchecking for sys/timeb.h... yes\r\nchecking htonl usability... no\r\nchecking htonl presence... no\r\nchecking for htonl... no\r\nchecking whether C++ compiler accepts -fPIC... yes\r\nchecking whether the linker accepts -fPIC... yes\r\nchecking sys/inotify.h usability... yes\r\nchecking sys/inotify.h presence... yes\r\nchecking for sys/inotify.h... yes\r\nchecking mcheck.h usability... yes\r\nchecking mcheck.h presence... yes\r\nchecking for mcheck.h... yes\r\nchecking for inotify_init1... yes\r\nchecking for fdopendir... yes\r\nchecking for select... yes\r\nchecking for sendfile in -lsendfile... no\r\nchecking for socket in -lsocket... no\r\nchecking for clock_gettime in -lrt... yes\r\nchecking for stdlib.h... (cached) yes\r\nchecking for GNU libc compatible malloc... yes\r\nchecking if building for Win32 platform... no\r\nchecking for pthread_create in -lpthread... yes\r\nchecking for libcryptopp... --with-cryptopp not specified\r\nchecking cryptopp/cryptlib.h usability... yes\r\nchecking cryptopp/cryptlib.h presence... yes\r\nchecking for cryptopp/cryptlib.h... yes\r\nchecking for main in -lcryptopp... yes\r\nchecking for libsodium... --with-sodium not specified\r\nchecking sodium/core.h usability... no\r\nchecking sodium/core.h presence... no\r\nchecking for sodium/core.h... no\r\nconfigure: sodium/core.h header not found or not usable\r\nchecking for sodium_init in -lsodium... no\r\nconfigure: Could not find libsodium\r\nchecking for zlib... --with-zlib not specified\r\nchecking zlib.h usability... yes\r\nchecking zlib.h presence... yes\r\nchecking for zlib.h... yes\r\nchecking for main in -lz... yes\r\nchecking for SQLite... --with-sqlite not specified\r\nchecking for Berkeley DB... --with-db not specified\r\nconfigure: Using SQLite3 as the default DB access layer.\r\nchecking sqlite3.h usability... yes\r\nchecking sqlite3.h presence... yes\r\nchecking for sqlite3.h... yes\r\nchecking for sqlite3_open in -lsqlite3... yes\r\nchecking for OpenSSL... --with-openssl not specified\r\nchecking openssl/ssl.h usability... yes\r\nchecking openssl/ssl.h presence... yes\r\nchecking for openssl/ssl.h... yes\r\nchecking for SSL_new in -lssl... yes\r\nchecking for c-ares... --with-cares not specified\r\nchecking ares.h usability... yes\r\nchecking ares.h presence... yes\r\nchecking for ares.h... yes\r\nchecking for ares_library_init in -lcares... yes\r\nchecking curl/curl.h usability... yes\r\nchecking curl/curl.h presence... yes\r\nchecking for curl/curl.h... yes\r\nchecking for main in -lcurl... yes\r\nchecking whether cURL is built with OpenSSL support... yes\r\nchecking if building example applications... yes\r\nchecking for FreeImage... --with-freeimage not specified\r\nchecking FreeImage.h usability... yes\r\nchecking FreeImage.h presence... yes\r\nchecking for FreeImage.h... yes\r\nchecking for main in -lfreeimage... yes\r\nchecking for termcap... --with-termcap not specified\r\nchecking for tputs in -ltermcap... yes\r\nchecking for Readline... --with-readline not specified\r\nchecking readline/readline.h usability... yes\r\nchecking readline/readline.h presence... yes\r\nchecking for readline/readline.h... yes\r\nchecking for rl_save_prompt in -lreadline... yes\r\nchecking if building tests... no\r\nchecking for doxygen... no\r\nconfigure: WARNING: doxygen not found - will not generate any doxygen documentation\r\nchecking for perl... /usr/bin/perl\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating include/Makefile\r\nconfig.status: creating libmega.pc\r\nconfig.status: creating include/mega/config.h\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\nconfigure: Configured to build Mega SDK:\r\n\r\n  SDK version:      2.5.0\r\n  Host setup:       i686-pc-linux-gnu\r\n  Install prefix:   /usr/local\r\n  Compiler:         g++\r\n  CXXFLAGS:         -g -O2 -fPIC\r\n  gcc hardening:    no\r\n  debug:            no\r\n  static:           no\r\n  sync subsystem    yes\r\n  MEGA API          yes\r\n  example apps:     yes\r\n\r\n  inotify:          yes\r\n  posix threads:    yes\r\n\r\n  OpenSSL:            -lssl\r\n  Crypto++:           -lcryptopp\r\n  Sodium:             \r\n  Zlib:               -lz\r\n  SQLite3:            -lsqlite3\r\n  c-ares:             -lcares\r\n  cURL:              -lcurl\r\n  FreeeImage:         -lfreeimage\r\n  Readline:           -lreadline\r\n  Termcap:            -ltermcap\r\n\r\n-----------------------------------------------------------------------------\r\n\r\n# make -j\r\nmake  all-recursive\r\nmake[1]: Entering directory `/root/GIT/mega-sdk'\r\nMaking all in include\r\nmake[2]: Entering directory `/root/GIT/mega-sdk/include'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `/root/GIT/mega-sdk/include'\r\nmake[2]: Entering directory `/root/GIT/mega-sdk'\r\n  CXX    src/src_libmega_la-megaapi_impl.lo\r\n  CXX    src/src_libmega_la-megaapi.lo\r\n  CXX    src/gfx/src_libmega_la-freeimage.lo\r\n  CXX    src/src_libmega_la-megaclient.lo\r\n  CXX    src/src_libmega_la-attrmap.lo\r\n  CXX    src/src_libmega_la-backofftimer.lo\r\n  CXX    src/src_libmega_la-base64.lo\r\n  CXX    src/src_libmega_la-command.lo\r\n  CXX    src/src_libmega_la-commands.lo\r\n  CXX    src/src_libmega_la-db.lo\r\n  CXX    src/src_libmega_la-fileattributefetch.lo\r\n  CXX    src/src_libmega_la-file.lo\r\n  CXX    src/src_libmega_la-filefingerprint.lo\r\n  CXX    src/src_libmega_la-filesystem.lo\r\n  CXX    src/src_libmega_la-gfx.lo\r\n  CXX    src/src_libmega_la-http.lo\r\n  CXX    src/src_libmega_la-json.lo\r\n  CXX    src/src_libmega_la-node.lo\r\n  CXX    src/src_libmega_la-pubkeyaction.lo\r\n  CXX    src/src_libmega_la-request.lo\r\n  CXX    src/src_libmega_la-serialize64.lo\r\n  CXX    src/src_libmega_la-share.lo\r\n  CXX    src/src_libmega_la-sharenodekeys.lo\r\n  CXX    src/src_libmega_la-sync.lo\r\n  CXX    src/src_libmega_la-transfer.lo\r\n  CXX    src/src_libmega_la-transferslot.lo\r\n  CXX    src/src_libmega_la-treeproc.lo\r\n  CXX    src/src_libmega_la-user.lo\r\n  CXX    src/src_libmega_la-utils.lo\r\n  CXX    src/src_libmega_la-logging.lo\r\n  CXX    src/src_libmega_la-waiterbase.lo\r\n  CXX    src/src_libmega_la-proxy.lo\r\n  CXX    src/crypto/src_libmega_la-cryptopp.lo\r\n  CXX    src/db/src_libmega_la-sqlite.lo\r\n  CXX    third_party/utf8proc/src_libmega_la-utf8proc.lo\r\n  CXX    src/gfx/src_libmega_la-external.lo\r\n  CXX    src/posix/src_libmega_la-fs.lo\r\n  CXX    src/posix/src_libmega_la-console.lo\r\n  CXX    src/posix/src_libmega_la-net.lo\r\n  CXX    src/posix/src_libmega_la-waiter.lo\r\n  CXX    src/posix/src_libmega_la-consolewaiter.lo\r\n  CXX    src/thread/src_libmega_la-posixthread.lo\r\n  CXX    examples/examples_megacli-megacli.o\r\n  CXX    examples/examples_megasimplesync-megasimplesync.o\r\nsrc/megaapi_impl.cpp:39:0: warning: \"_LARGEFILE64_SOURCE\" redefined [enabled by default]\r\n/usr/include/features.h:170:0: note: this is the location of the previous definition\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-megaapi_impl.lo] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-megaapi.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/gfx/src_libmega_la-freeimage.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-megaclient.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-command.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-commands.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-fileattributefetch.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-file.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-gfx.lo] Error 1\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.\r\nmake[2]: *** [src/src_libmega_la-node.lo] Error 1\r\nsrc/posix/waiter.cpp: In member function ‘void mega::PosixWaiter::notify()’:\r\nsrc/posix/waiter.cpp:141:29: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\nmake[2]: Leaving directory `/root/GIT/mega-sdk'\r\nmake[1]: *** [all-recursive] Error 1\r\nmake[1]: Leaving directory `/root/GIT/mega-sdk'\r\nmake: *** [all] Error 2\r\n"}}