cleverca22/toxvpn

build failure with latest toxcore

msva opened this issue · 0 comments

msva commented
[ 14%] Building CXX object CMakeFiles/toxvpn.dir/main.cpp.o
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp: In function ‘void saveState(Tox*)’:
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:43:11: warning: unused variable ‘written’ [-Wunused-variable]
   ssize_t written = write(fd,savedata,size);
           ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp: At global scope:
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:47:98: warning: unused parameter ‘length’ [-Wunused-parameter]
 void MyFriendRequestCallback(Tox *tox, const uint8_t *public_key, const uint8_t *message, size_t length, void *user_data) {
                                                                                                  ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:47:112: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void MyFriendRequestCallback(Tox *tox, const uint8_t *public_key, const uint8_t *message, size_t length, void *user_data) {
                                                                                                                ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:56:103: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void FriendConnectionUpdate(Tox *tox, uint32_t friend_number, TOX_CONNECTION connection_status, void *user_data) {
                                                                                                       ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:76:35: warning: unused parameter ‘tox’ [-Wunused-parameter]
 void MyFriendMessageCallback(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *user_data) {
                                   ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:76:81: warning: unused parameter ‘type’ [-Wunused-parameter]
 void MyFriendMessageCallback(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *user_data) {
                                                                                 ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:76:118: warning: unused parameter ‘length’ [-Wunused-parameter]
 void MyFriendMessageCallback(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *user_data) {
                                                                                                                      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:76:132: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void MyFriendMessageCallback(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *user_data) {
                                                                                                                                    ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:90:108: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void MyFriendStatusCallback(Tox *tox, uint32_t friend_number, const uint8_t *message, size_t length, void *user_data) {
                                                                                                            ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:109:31: warning: unused parameter ‘tox’ [-Wunused-parameter]
 void MyFriendLossyPacket(Tox *tox, uint32_t friend_number, const uint8_t *data, size_t length, void *user_data) {
                               ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:109:102: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void MyFriendLossyPacket(Tox *tox, uint32_t friend_number, const uint8_t *data, size_t length, void *user_data) {
                                                                                                      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:118:74: warning: unused parameter ‘user_data’ [-Wunused-parameter]
 void connection_status(Tox *tox, TOX_CONNECTION connection_status, void *user_data) {
                                                                          ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp: In function ‘int main(int, char**)’:
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:352:62: error: too few arguments to function ‘void tox_callback_friend_request(Tox*, void (*)(Tox*, const uint8_t*, const uint8_t*, size_t, void*), void*)’
   tox_callback_friend_request(my_tox, MyFriendRequestCallback);
                                                              ^
In file included from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.h:30:0,
                 from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:1:
/usr/include/tox/tox.h:1551:6: note: declared here
 void tox_callback_friend_request(Tox *tox, tox_friend_request_cb *callback, void *user_data);
      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:353:62: error: too few arguments to function ‘void tox_callback_friend_message(Tox*, void (*)(Tox*, uint32_t, TOX_MESSAGE_TYPE, const uint8_t*, size_t, void*), void*)’
   tox_callback_friend_message(my_tox, MyFriendMessageCallback);
                                                              ^
In file included from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.h:30:0,
                 from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:1:
/usr/include/tox/tox.h:1570:6: note: declared here
 void tox_callback_friend_message(Tox *tox, tox_friend_message_cb *callback, void *user_data);
      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:354:68: error: too few arguments to function ‘void tox_callback_friend_status_message(Tox*, void (*)(Tox*, uint32_t, const uint8_t*, size_t, void*), void*)’
   tox_callback_friend_status_message(my_tox, MyFriendStatusCallback);
                                                                    ^
In file included from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.h:30:0,
                 from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:1:
/usr/include/tox/tox.h:1317:6: note: declared here
 void tox_callback_friend_status_message(Tox *tox, tox_friend_status_message_cb *callback, void *user_data);
      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:357:65: error: too few arguments to function ‘void tox_callback_self_connection_status(Tox*, void (*)(Tox*, TOX_CONNECTION, void*), void*)’
   tox_callback_self_connection_status(my_tox, &connection_status);
                                                                 ^
In file included from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.h:30:0,
                 from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:1:
/usr/include/tox/tox.h:779:6: note: declared here
 void tox_callback_self_connection_status(Tox *tox, tox_self_connection_status_cb *callback, void *user_data);
      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:444:28: error: too many arguments to function ‘void tox_iterate(Tox*)’
     tox_iterate(my_tox, NULL); // will call the callback functions defined and registered
                            ^
In file included from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.h:30:0,
                 from /var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:1:
/usr/include/tox/tox.h:791:6: note: declared here
 void tox_iterate(Tox *tox);
      ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:257:32: warning: ignoring return value of ‘int setgid(__gid_t)’, declared with attribute warn_unused_result [-Wunused-result]
     setgid(target_user->pw_gid);
                                ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:258:32: warning: ignoring return value of ‘int setuid(__uid_t)’, declared with attribute warn_unused_result [-Wunused-result]
     setuid(target_user->pw_uid);
                                ^
/var/tmp/portage/net-misc/toxvpn-9999/work/toxvpn-9999/main.cpp:280:21: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
     chdir(".toxvpn");
                     ^
make[2]: *** [CMakeFiles/toxvpn.dir/build.make:63: CMakeFiles/toxvpn.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/toxvpn.dir/all] Error 2
make: *** [Makefile:128: all] Error 2