{"action":"created","issue":{"url":"https://api.github.com/repos/haavardp/tox-weechat/issues/3","labels_url":"https://api.github.com/repos/haavardp/tox-weechat/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/haavardp/tox-weechat/issues/3/comments","events_url":"https://api.github.com/repos/haavardp/tox-weechat/issues/3/events","html_url":"https://github.com/haavardp/tox-weechat/issues/3","id":102576621,"number":3,"title":"Compile Issue.","user":{"login":"shaggytwodope","id":2557512,"avatar_url":"https://avatars.githubusercontent.com/u/2557512?v=3","gravatar_id":"","url":"https://api.github.com/users/shaggytwodope","html_url":"https://github.com/shaggytwodope","followers_url":"https://api.github.com/users/shaggytwodope/followers","following_url":"https://api.github.com/users/shaggytwodope/following{/other_user}","gists_url":"https://api.github.com/users/shaggytwodope/gists{/gist_id}","starred_url":"https://api.github.com/users/shaggytwodope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaggytwodope/subscriptions","organizations_url":"https://api.github.com/users/shaggytwodope/orgs","repos_url":"https://api.github.com/users/shaggytwodope/repos","events_url":"https://api.github.com/users/shaggytwodope/events{/privacy}","received_events_url":"https://api.github.com/users/shaggytwodope/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-23T00:22:42Z","updated_at":"2015-08-26T18:23:55Z","closed_at":"2015-08-26T18:23:55Z","body":"Hello, I'm the current lame guy trying to maintain the aur package for this awesome tool. But for some reason it's no longer compiling.\r\n\r\nOutput from makpkg:\r\n↘ makepkg                                                                                                                                               ♥\r\n==> Making package: tox-weechat-git r255.ed96d36-1 (Sat Aug 22 17:19:03 PDT 2015)\r\n==> Checking runtime dependencies...\r\n==> Checking buildtime dependencies...\r\n==> Retrieving sources...\r\n  -> Updating tox-weechat-git git repo...\r\nFetching origin\r\n==> Validating source files with md5sums...\r\n    tox-weechat-git ... Skipped\r\n==> Extracting sources...\r\n  -> Creating working copy of tox-weechat git repo...\r\nReset branch 'makepkg'\r\n==> Starting pkgver()...\r\n==> Removing existing $pkgdir/ directory...\r\n==> Starting build()...\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git\r\n[ 13%] Building C object CMakeFiles/tox.dir/src/twc.c.o\r\n[ 13%] Building C object CMakeFiles/tox.dir/src/twc-bootstrap.c.o\r\n[ 20%] Building C object CMakeFiles/tox.dir/src/twc-completion.c.o\r\n[ 26%] Building C object CMakeFiles/tox.dir/src/twc-chat.c.o\r\n[ 33%] Building C object CMakeFiles/tox.dir/src/twc-commands.c.o\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-bootstrap.c: In function ‘twc_bootstrap_tox’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-bootstrap.c:74:18: warning: implicit declaration of function ‘tox_bootstrap_from_address’ [-Wimplicit-function-declaration]\r\n     int result = tox_bootstrap_from_address(tox, address, port,\r\n                  ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-chat.c: In function ‘twc_chat_new_friend’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-chat.c:106:5: warning: implicit declaration of function ‘tox_get_client_id’ [-Wimplicit-function-declaration]\r\n     tox_get_client_id(profile->tox, friend_number, client_id);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_match_friend’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:145:29: warning: implicit declaration of function ‘tox_count_friendlist’ [-Wimplicit-function-declaration]\r\n     uint32_t friend_count = tox_count_friendlist(profile->tox);\r\n                             ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:147:5: warning: implicit declaration of function ‘tox_get_friendlist’ [-Wimplicit-function-declaration]\r\n     tox_get_friendlist(profile->tox, friend_numbers, friend_count);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:165:13: warning: implicit declaration of function ‘tox_get_client_id’ [-Wimplicit-function-declaration]\r\n             tox_get_client_id(profile->tox, friend_numbers[i], tox_id);\r\n             ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_friend’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:309:24: warning: implicit declaration of function ‘tox_del_friend’ [-Wimplicit-function-declaration]\r\n                 fail = tox_del_friend(profile->tox, friend_number) != 0;\r\n                        ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:321:37: warning: implicit declaration of function ‘tox_add_friend’ [-Wimplicit-function-declaration]\r\n         TOX_ERR_FRIEND_ADD result = tox_add_friend(profile->tox,\r\n                                     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_myid’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:696:5: warning: implicit declaration of function ‘tox_get_address’ [-Wimplicit-function-declaration]\r\n     tox_get_address(profile->tox, address);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_name’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:725:18: warning: implicit declaration of function ‘tox_set_name’ [-Wimplicit-function-declaration]\r\n     int result = tox_set_name(profile->tox, (uint8_t *)name, strlen(name));\r\n                  ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_nospam’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:792:27: warning: implicit declaration of function ‘tox_get_nospam’ [-Wimplicit-function-declaration]\r\n     uint32_t old_nospam = tox_get_nospam(profile->tox);\r\n                           ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:793:5: warning: implicit declaration of function ‘tox_set_nospam’ [-Wimplicit-function-declaration]\r\n     tox_set_nospam(profile->tox, new_nospam);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_status’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:890:5: warning: implicit declaration of function ‘tox_set_user_status’ [-Wimplicit-function-declaration]\r\n     tox_set_user_status(profile->tox, status);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c: In function ‘twc_cmd_statusmsg’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-commands.c:909:18: warning: implicit declaration of function ‘tox_set_status_message’ [-Wimplicit-function-declaration]\r\n     int result = tox_set_status_message(profile->tox,\r\n                  ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-completion.c: In function ‘twc_completion_friend’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-completion.c:60:29: warning: implicit declaration of function ‘tox_count_friendlist’ [-Wimplicit-function-declaration]\r\n     uint32_t friend_count = tox_count_friendlist(profile->tox);\r\n                             ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-completion.c:62:5: warning: implicit declaration of function ‘tox_get_friendlist’ [-Wimplicit-function-declaration]\r\n     tox_get_friendlist(profile->tox, friend_numbers, friend_count);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-completion.c:71:13: warning: implicit declaration of function ‘tox_get_client_id’ [-Wimplicit-function-declaration]\r\n             tox_get_client_id(profile->tox, friend_numbers[i], tox_id);\r\n             ^\r\n[ 40%] Building C object CMakeFiles/tox.dir/src/twc-gui.c.o\r\n[ 46%] Building C object CMakeFiles/tox.dir/src/twc-friend-request.c.o\r\n[ 53%] Building C object CMakeFiles/tox.dir/src/twc-config.c.o\r\n[ 60%] Building C object CMakeFiles/tox.dir/src/twc-group-invite.c.o\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-gui.c: In function ‘twc_bar_item_away’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-gui.c:44:13: warning: implicit declaration of function ‘tox_get_self_user_status’ [-Wimplicit-function-declaration]\r\n     switch (tox_get_self_user_status(profile->tox))\r\n             ^\r\n[ 66%] Building C object CMakeFiles/tox.dir/src/twc-list.c.o\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-friend-request.c: In function ‘twc_friend_request_accept’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-friend-request.c:70:5: warning: implicit declaration of function ‘tox_add_friend_norequest’ [-Wimplicit-function-declaration]\r\n     tox_add_friend_norequest(request->profile->tox, request->tox_id);\r\n     ^\r\n[ 80%] Building C object CMakeFiles/tox.dir/src/twc-profile.c.o\r\n[ 80%] Building C object CMakeFiles/tox.dir/src/twc-message-queue.c.o\r\n[ 86%] Building C object CMakeFiles/tox.dir/src/twc-tox-callbacks.c.o\r\n[ 93%] Building C object CMakeFiles/tox.dir/src/twc-utils.c.o\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-message-queue.c: In function ‘twc_message_queue_add_friend_message’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-message-queue.c:78:12: warning: implicit declaration of function ‘tox_get_friend_connection_status’ [-Wimplicit-function-declaration]\r\n         && tox_get_friend_connection_status(profile->tox, friend_number) == 1)\r\n            ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-message-queue.c: In function ‘twc_message_queue_flush_friend’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-message-queue.c:103:22: warning: implicit declaration of function ‘tox_send_message’ [-Wimplicit-function-declaration]\r\n                 rc = tox_send_message(profile->tox,\r\n                      ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-message-queue.c:109:22: warning: implicit declaration of function ‘tox_send_action’ [-Wimplicit-function-declaration]\r\n                 rc = tox_send_action(profile->tox,\r\n                      ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c: In function ‘twc_profile_load’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c:306:38: warning: passing argument 2 of ‘tox_new’ from incompatible pointer type [-Wincompatible-pointer-types]\r\n     profile->tox = tox_new(&options, data, data_size, &rc);\r\n                                      ^\r\nIn file included from /home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c:26:0:\r\n/usr/include/tox/tox.h:632:6: note: expected ‘TOX_ERR_NEW * {aka enum TOX_ERR_NEW *}’ but argument is of type ‘uint8_t * {aka unsigned char *}’\r\n Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);\r\n      ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c:306:20: error: too many arguments to function ‘tox_new’\r\n     profile->tox = tox_new(&options, data, data_size, &rc);\r\n                    ^\r\nIn file included from /home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c:26:0:\r\n/usr/include/tox/tox.h:632:6: note: declared here\r\n Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error);\r\n      ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-profile.c:357:1: warning: control reaches end of non-void function [-Wreturn-type]\r\n }\r\n ^\r\nCMakeFiles/tox.dir/build.make:326: recipe for target 'CMakeFiles/tox.dir/src/twc-profile.c.o' failed\r\nmake[2]: *** [CMakeFiles/tox.dir/src/twc-profile.c.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c: In function ‘twc_get_name_nt’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:84:21: warning: implicit declaration of function ‘tox_get_name_size’ [-Wimplicit-function-declaration]\r\n     size_t length = tox_get_name_size(tox, friend_number);\r\n                     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:91:5: warning: implicit declaration of function ‘tox_get_name’ [-Wimplicit-function-declaration]\r\n     tox_get_name(tox, friend_number, name);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c: In function ‘twc_get_status_message_nt’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:101:21: warning: implicit declaration of function ‘tox_get_status_message_size’ [-Wimplicit-function-declaration]\r\n     size_t length = tox_get_status_message_size(tox, friend_number);\r\n                     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:103:5: warning: implicit declaration of function ‘tox_get_status_message’ [-Wimplicit-function-declaration]\r\n     tox_get_status_message(tox, friend_number, message, length);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c: In function ‘twc_get_self_name_nt’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:130:21: warning: implicit declaration of function ‘tox_get_self_name_size’ [-Wimplicit-function-declaration]\r\n     size_t length = tox_get_self_name_size(tox);\r\n                     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:132:5: warning: implicit declaration of function ‘tox_get_self_name’ [-Wimplicit-function-declaration]\r\n     tox_get_self_name(tox, name);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c: In function ‘twc_get_friend_id_short’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:144:5: warning: implicit declaration of function ‘tox_get_client_id’ [-Wimplicit-function-declaration]\r\n     tox_get_client_id(tox, friend_number, client_id);\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c: In function ‘twc_read_file’:\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:196:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n     if (file = fopen(path, \"r\"))\r\n     ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:203:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]\r\n         if (data = malloc(sizeof(*data) * *size))\r\n         ^\r\n/home/shaggy/workspace/aur4/tox-weechat-git/src/tox-weechat-git/src/twc-utils.c:205:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]\r\n             fread(data, sizeof(uint8_t), *size, file);\r\n             ^\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/tox.dir/all' failed\r\nmake[1]: *** [CMakeFiles/tox.dir/all] Error 2\r\nMakefile:127: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n==> ERROR: A failure occurred in build().\r\n    Aborting...\r\n\r\n\r\nYou can see the pkgbuild here https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tox-weechat-git Not entirely seeing the issue right away (not the greatest coder lol) Any help towards figuring out the problem would be wonderful."},"comment":{"url":"https://api.github.com/repos/haavardp/tox-weechat/issues/comments/135130422","html_url":"https://github.com/haavardp/tox-weechat/issues/3#issuecomment-135130422","issue_url":"https://api.github.com/repos/haavardp/tox-weechat/issues/3","id":135130422,"user":{"login":"haavardp","id":476389,"avatar_url":"https://avatars.githubusercontent.com/u/476389?v=3","gravatar_id":"","url":"https://api.github.com/users/haavardp","html_url":"https://github.com/haavardp","followers_url":"https://api.github.com/users/haavardp/followers","following_url":"https://api.github.com/users/haavardp/following{/other_user}","gists_url":"https://api.github.com/users/haavardp/gists{/gist_id}","starred_url":"https://api.github.com/users/haavardp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haavardp/subscriptions","organizations_url":"https://api.github.com/users/haavardp/orgs","repos_url":"https://api.github.com/users/haavardp/repos","events_url":"https://api.github.com/users/haavardp/events{/privacy}","received_events_url":"https://api.github.com/users/haavardp/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T18:23:54Z","updated_at":"2015-08-26T18:23:54Z","body":"Fixed by #4, thanks to @spacefrogg."}}