{"action":"created","issue":{"url":"https://api.github.com/repos/GrayHatter/uTox/issues/164","labels_url":"https://api.github.com/repos/GrayHatter/uTox/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/GrayHatter/uTox/issues/164/comments","events_url":"https://api.github.com/repos/GrayHatter/uTox/issues/164/events","html_url":"https://github.com/GrayHatter/uTox/issues/164","id":126478278,"number":164,"title":"uTox does not compile in Gentoo","user":{"login":"vanjo9800","id":8289294,"avatar_url":"https://avatars.githubusercontent.com/u/8289294?v=3","gravatar_id":"","url":"https://api.github.com/users/vanjo9800","html_url":"https://github.com/vanjo9800","followers_url":"https://api.github.com/users/vanjo9800/followers","following_url":"https://api.github.com/users/vanjo9800/following{/other_user}","gists_url":"https://api.github.com/users/vanjo9800/gists{/gist_id}","starred_url":"https://api.github.com/users/vanjo9800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanjo9800/subscriptions","organizations_url":"https://api.github.com/users/vanjo9800/orgs","repos_url":"https://api.github.com/users/vanjo9800/repos","events_url":"https://api.github.com/users/vanjo9800/events{/privacy}","received_events_url":"https://api.github.com/users/vanjo9800/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T18:06:58Z","updated_at":"2016-01-14T04:01:05Z","closed_at":null,"body":"Hello, I use the tox-overlay in gentoo with layman and portage and I face the following problem. I have tox and libsodium up to date, but I cannot compile uTox.\r\n\r\nHere is the build log:\r\n\r\n````\r\n * Package:    net-im/utox-9999\r\n * Repository: tox-overlay\r\n * Maintainer: infrastructure@tox.chat\r\n * USE:        abi_x86_64 amd64 dbus elibc_glibc filter_audio kernel_linux userland_GNU\r\n * FEATURES:   preserve-libs sandbox userpriv usersandbox\r\n>>> Unpacking source...\r\n * Fetching git://github.com/GrayHatter/uTox.git ...\r\ngit fetch git://github.com/GrayHatter/uTox.git +HEAD:refs/git-r3/HEAD\r\ngit symbolic-ref refs/git-r3/net-im/utox/0/__main__ refs/heads/develop\r\n * Checking out git://github.com/GrayHatter/uTox.git to /var/tmp/portage/net-im/utox-9999/work/utox-9999 ...\r\ngit checkout --quiet develop\r\nGIT update -->\r\n   repository:               git://github.com/GrayHatter/uTox.git\r\n   at the commit:            2a9d4d9a960f83b75e7907128a1abb683dcb680d\r\n>>> Source unpacked in /var/tmp/portage/net-im/utox-9999/work\r\n>>> Preparing source in /var/tmp/portage/net-im/utox-9999/work/utox-9999 ...\r\n>>> Source prepared.\r\n>>> Configuring source in /var/tmp/portage/net-im/utox-9999/work/utox-9999 ...\r\n>>> Source configured.\r\n>>> Compiling source in /var/tmp/portage/net-im/utox-9999/work/utox-9999 ...\r\nmake -j4 CC=x86_64-pc-linux-gnu-gcc DBUS=1 FILTER_AUDIO=1 \r\n  CC    src/tooltip.o\r\n  CC    src/avatar.o\r\n  CC    src/theme.o\r\n  CC    src/file_transfers.o\r\nsrc/theme.c: In function ‘read_custom_theme’:\r\nsrc/theme.c:374:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]\r\n         fgets(buf, 1024, f);\r\n         ^\r\n  CC    src/friend.o\r\n  CC    src/button.o\r\n  CC    src/video.o\r\nsrc/file_transfers.c: In function ‘outgoing_file_send’:\r\n  CC    src/commands.o\r\nsrc/file_transfers.c:842:7: warning: ‘file_number’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n     if(file_number != UINT32_MAX) {\r\n       ^\r\nsrc/file_transfers.c:845:9: warning: ‘filename’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n         utox_build_file_transfer(file_handle, friend_number, file_number, file_size, 0, memory, avatar, kind, filename,\r\n         ^\r\n  CC    src/ui.o\r\n  CC    src/dropdown.o\r\nsrc/commands.c: In function ‘utox_run_command’:\r\nsrc/commands.c:38:13: warning: ‘cmd_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n             --cmd_length;\r\n             ^\r\nsrc/commands.c:53:17: warning: ‘argument_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]\r\n                 friend_set_alias(f, *argument, argument_length);\r\n                 ^\r\nsrc/ui.c: In function ‘draw_user_badge’:\r\n  CC    src/contextmenu.o\r\nsrc/ui.c:102:80: warning: pointer targets in passing argument 4 of ‘drawtextrange’ differ in signedness [-Wpointer-sign]\r\n         drawtextrange(SIDEBAR_NAME_LEFT, SIDEBAR_NAME_WIDTH, SIDEBAR_NAME_TOP, \"Not connected!\", 14);\r\n                                                                                ^\r\nIn file included from src/ui.c:1:0:\r\nsrc/main.h:359:6: note: expected ‘char_t * {aka unsigned char *}’ but argument is of type ‘char *’\r\n void drawtextrange(int x, int x2, int y, char_t *str, STRING_IDX length);\r\n      ^\r\n  CC    src/text.o\r\n  CC    src/groups.o\r\n  CC    src/dns.o\r\n  CC    src/ui_dropdown.o\r\n  CC    src/edit.o\r\n  CC    src/main.o\r\n  CC    src/ui_i18n.o\r\n  CC    src/util.o\r\nsrc/util.c: In function ‘file_write_raw’:\r\nsrc/util.c:52:12: warning: variable ‘outsize’ set but not used [-Wunused-but-set-variable]\r\n     size_t outsize;\r\n            ^\r\n  CC    src/utox_av.o\r\n  CC    src/roster.o\r\n  CC    src/scrollable.o\r\n  CC    src/tox.o\r\n  CC    src/svg.o\r\nsrc/tox.c: In function ‘load_toxcore_save’:\r\nsrc/tox.c:558:24: error: ‘struct Tox_Options’ has no member named ‘savedata_type’\r\n                 options.savedata_type   = TOX_SAVEDATA_TYPE_TOX_SAVE;\r\n                        ^\r\nsrc/tox.c:558:43: error: ‘TOX_SAVEDATA_TYPE_TOX_SAVE’ undeclared (first use in this function)\r\n                 options.savedata_type   = TOX_SAVEDATA_TYPE_TOX_SAVE;\r\n                                           ^\r\nsrc/tox.c:558:43: note: each undeclared identifier is reported only once for each function it appears in\r\nsrc/tox.c:559:24: error: ‘struct Tox_Options’ has no member named ‘savedata_data’\r\n                 options.savedata_data   = clear_data;\r\n                        ^\r\nsrc/tox.c:560:24: error: ‘struct Tox_Options’ has no member named ‘savedata_length’\r\n                 options.savedata_length = cleartext_length;\r\n                        ^\r\nsrc/tox.c:570:20: error: ‘struct Tox_Options’ has no member named ‘savedata_type’\r\n             options.savedata_type   = TOX_SAVEDATA_TYPE_TOX_SAVE;\r\n                    ^\r\nsrc/tox.c:571:20: error: ‘struct Tox_Options’ has no member named ‘savedata_data’\r\n             options.savedata_data   = raw_data;\r\n                    ^\r\nsrc/tox.c:572:20: error: ‘struct Tox_Options’ has no member named ‘savedata_length’\r\n             options.savedata_length = raw_length;\r\n                    ^\r\nsrc/tox.c: In function ‘init_toxcore’:\r\nsrc/tox.c:611:30: warning: passing argument 2 of ‘tox_new’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n     *tox = tox_new(&options, &tox_new_err);\r\n                              ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘TOX_ERR_NEW * {aka enum TOX_ERR_NEW *}’\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nsrc/tox.c:611:12: error: too few arguments to function ‘tox_new’\r\n     *tox = tox_new(&options, &tox_new_err);\r\n            ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: declared here\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nsrc/tox.c:618:34: warning: passing argument 2 of ‘tox_new’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n         *tox = tox_new(&options, &tox_new_err);\r\n                                  ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘TOX_ERR_NEW * {aka enum TOX_ERR_NEW *}’\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nsrc/tox.c:618:16: error: too few arguments to function ‘tox_new’\r\n         *tox = tox_new(&options, &tox_new_err);\r\n                ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: declared here\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nsrc/tox.c:625:38: warning: passing argument 2 of ‘tox_new’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n             *tox = tox_new(&options, &tox_new_err);\r\n                                      ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘TOX_ERR_NEW * {aka enum TOX_ERR_NEW *}’\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nsrc/tox.c:625:20: error: too few arguments to function ‘tox_new’\r\n             *tox = tox_new(&options, &tox_new_err);\r\n                    ^\r\nIn file included from src/main.h:20:0,\r\n                 from src/tox.c:1:\r\n/usr/local/include/tox/tox.h:521:6: note: declared here\r\n Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t length, TOX_ERR_NEW *error);\r\n      ^\r\nMakefile:130: recipe for target 'src/tox.o' failed\r\nmake: *** [src/tox.o] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\n * ERROR: net-im/utox-9999::tox-overlay failed (compile phase):\r\n *   emake failed\r\n * \r\n * If you need support, post the output of `emerge --info '=net-im/utox-9999::tox-overlay'`,\r\n * the complete build log and the output of `emerge -pqv '=net-im/utox-9999::tox-overlay'`.\r\n * The complete build log is located at '/var/tmp/portage/net-im/utox-9999/temp/build.log'.\r\n * The ebuild environment file is located at '/var/tmp/portage/net-im/utox-9999/temp/environment'.\r\n * Working directory: '/var/tmp/portage/net-im/utox-9999/work/utox-9999'\r\n * S: '/var/tmp/portage/net-im/utox-9999/work/utox-9999'\r\n```\r\n\r\nCan you tell me what is the problem?\r\n\r\nThank you in advance!!!"},"comment":{"url":"https://api.github.com/repos/GrayHatter/uTox/issues/comments/171522410","html_url":"https://github.com/GrayHatter/uTox/issues/164#issuecomment-171522410","issue_url":"https://api.github.com/repos/GrayHatter/uTox/issues/164","id":171522410,"user":{"login":"GrayHatter","id":243408,"avatar_url":"https://avatars.githubusercontent.com/u/243408?v=3","gravatar_id":"","url":"https://api.github.com/users/GrayHatter","html_url":"https://github.com/GrayHatter","followers_url":"https://api.github.com/users/GrayHatter/followers","following_url":"https://api.github.com/users/GrayHatter/following{/other_user}","gists_url":"https://api.github.com/users/GrayHatter/gists{/gist_id}","starred_url":"https://api.github.com/users/GrayHatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrayHatter/subscriptions","organizations_url":"https://api.github.com/users/GrayHatter/orgs","repos_url":"https://api.github.com/users/GrayHatter/repos","events_url":"https://api.github.com/users/GrayHatter/events{/privacy}","received_events_url":"https://api.github.com/users/GrayHatter/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T04:01:05Z","updated_at":"2016-01-14T04:01:05Z","body":"is toxcore installed and up to date??"}}