{"action":"created","issue":{"url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/3","repository_url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant","labels_url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/3/comments","events_url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/3/events","html_url":"https://github.com/hoang-tranviet/mptcp-vagrant/issues/3","id":249623272,"number":3,"title":"compilation problem with socket API","user":{"login":"FaZoREX","id":28922257,"avatar_url":"https://avatars1.githubusercontent.com/u/28922257?v=4","gravatar_id":"","url":"https://api.github.com/users/FaZoREX","html_url":"https://github.com/FaZoREX","followers_url":"https://api.github.com/users/FaZoREX/followers","following_url":"https://api.github.com/users/FaZoREX/following{/other_user}","gists_url":"https://api.github.com/users/FaZoREX/gists{/gist_id}","starred_url":"https://api.github.com/users/FaZoREX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FaZoREX/subscriptions","organizations_url":"https://api.github.com/users/FaZoREX/orgs","repos_url":"https://api.github.com/users/FaZoREX/repos","events_url":"https://api.github.com/users/FaZoREX/events{/privacy}","received_events_url":"https://api.github.com/users/FaZoREX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-11T12:38:54Z","updated_at":"2017-08-14T03:09:14Z","closed_at":null,"body":"Hello,\r\n\r\nI encountered the following error when I tried to install mptcp_v0.91.3 with your applied socket API patches ( https://github.com/hoang-tranviet/mptcp.git ):\r\n\r\n\r\n```\r\nnet/ipv4/tcp.c: In function ‘mptcp_setsockopt_sub_setsockopt’:\r\nnet/ipv4/tcp.c:2423:19: warning: unused variable ‘mpcb’ [-Wunused-variable]\r\n  struct mptcp_cb *mpcb = tp->mpcb;\r\n                   ^\r\nnet/ipv4/tcp.c: In function ‘mptcp_getsockopt_sub_ids’:\r\nnet/ipv4/tcp.c:2976:4: error: break statement not within loop or switch\r\n    break;\r\n    ^\r\nnet/ipv4/tcp.c: In function ‘mptcp_getsockopt_close_sub_id’:\r\nnet/ipv4/tcp.c:3025:4: error: implicit declaration of function ‘mptcp_sub_force_close’ [-Werror=implicit-function-declaration]\r\n    mptcp_sub_force_close(sub_sk);\r\n    ^\r\nnet/ipv4/tcp.c:3002:24: warning: unused variable ‘tmp’ [-Wunused-variable]\r\n  struct sock *sub_sk, *tmp;\r\n                        ^\r\nnet/ipv4/tcp.c:3001:19: warning: unused variable ‘mpcb’ [-Wunused-variable]\r\n  struct mptcp_cb *mpcb = tp->mpcb;\r\n                   ^\r\nnet/ipv4/tcp.c: In function ‘mptcp_getsockopt_get_sub_tuple’:\r\nnet/ipv4/tcp.c:3038:19: warning: unused variable ‘mpcb’ [-Wunused-variable]\r\n  struct mptcp_cb *mpcb = tp->mpcb;\r\n                   ^\r\nnet/ipv4/tcp.c: In function ‘mptcp_getsockopt_open_sub_tuple’:\r\nnet/ipv4/tcp.c:3173:10: error: implicit declaration of function ‘mptcp_init4_subsockets’ [-Werror=implicit-function-declaration]\r\n   return mptcp_init4_subsockets(tp->meta_sk, &loc, &rem);\r\n          ^\r\nnet/ipv4/tcp.c:3207:10: error: implicit declaration of function ‘mptcp_init6_subsockets’ [-Werror=implicit-function-declaration]\r\n   return mptcp_init6_subsockets(tp->meta_sk, &loc, &rem);\r\n          ^\r\nnet/ipv4/tcp.c: In function ‘mptcp_getsockopt_sub_getsockopt’:\r\nnet/ipv4/tcp.c:3218:19: warning: unused variable ‘mpcb’ [-Wunused-variable]\r\n  struct mptcp_cb *mpcb = tp->mpcb;\r\n                   ^\r\nnet/ipv4/tcp.c: At top level:\r\nnet/ipv4/tcp.c:2420:12: warning: ‘mptcp_setsockopt_sub_setsockopt’ defined but not used [-Wunused-function]\r\n static int mptcp_setsockopt_sub_setsockopt(struct sock *sk, char __user *optval\r\n            ^\r\nnet/ipv4/tcp.c:2942:12: warning: ‘mptcp_getsockopt_sub_ids’ defined but not used [-Wunused-function]\r\n static int mptcp_getsockopt_sub_ids(struct sock *sk, char __user *optval,\r\n            ^\r\nnet/ipv4/tcp.c:2997:12: warning: ‘mptcp_getsockopt_close_sub_id’ defined but not used [-Wunused-function]\r\n static int mptcp_getsockopt_close_sub_id(struct sock *sk, char __user *optval,\r\n            ^\r\nnet/ipv4/tcp.c:3034:12: warning: ‘mptcp_getsockopt_get_sub_tuple’ defined but not used [-Wunused-function]\r\n static int mptcp_getsockopt_get_sub_tuple(struct sock *sk, char __user *optval,\r\n            ^\r\nnet/ipv4/tcp.c:3134:12: warning: ‘mptcp_getsockopt_open_sub_tuple’ defined but not used [-Wunused-function]\r\n static int mptcp_getsockopt_open_sub_tuple(struct sock *sk, char __user *optval\r\n            ^\r\nnet/ipv4/tcp.c:3214:12: warning: ‘mptcp_getsockopt_sub_getsockopt’ defined but not used [-Wunused-function]\r\n static int mptcp_getsockopt_sub_getsockopt(struct sock *sk, char __user *optval\r\n            ^\r\ncc1: some warnings being treated as errors\r\nscripts/Makefile.build:258: recipe for target 'net/ipv4/tcp.o' failed\r\nmake[2]: *** [net/ipv4/tcp.o] Error 1\r\nscripts/Makefile.build:403: recipe for target 'net/ipv4' failed\r\nmake[1]: *** [net/ipv4] Error 2\r\nMakefile:961: recipe for target 'net' failed\r\nmake: *** [net] Error 2\r\n\r\n```\r\nI would appreciate any advice.\r\n\r\nthank you\r\nFeri"},"comment":{"url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/comments/322090610","html_url":"https://github.com/hoang-tranviet/mptcp-vagrant/issues/3#issuecomment-322090610","issue_url":"https://api.github.com/repos/hoang-tranviet/mptcp-vagrant/issues/3","id":322090610,"user":{"login":"hoang-tranviet","id":6783437,"avatar_url":"https://avatars3.githubusercontent.com/u/6783437?v=4","gravatar_id":"","url":"https://api.github.com/users/hoang-tranviet","html_url":"https://github.com/hoang-tranviet","followers_url":"https://api.github.com/users/hoang-tranviet/followers","following_url":"https://api.github.com/users/hoang-tranviet/following{/other_user}","gists_url":"https://api.github.com/users/hoang-tranviet/gists{/gist_id}","starred_url":"https://api.github.com/users/hoang-tranviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoang-tranviet/subscriptions","organizations_url":"https://api.github.com/users/hoang-tranviet/orgs","repos_url":"https://api.github.com/users/hoang-tranviet/repos","events_url":"https://api.github.com/users/hoang-tranviet/events{/privacy}","received_events_url":"https://api.github.com/users/hoang-tranviet/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T03:09:13Z","updated_at":"2017-08-14T03:09:13Z","body":"Hello,\r\nDid you try to clone and compile the kernel on mptcp_v0.91.3_api branch, and not the vagrant box?\r\nI need to take some times to retest this branch.\r\n\r\nIn the mean time, could you try the mptcp_v0.92_socket_api branch?\r\nhttps://github.com/hoang-tranviet/mptcp/tree/mptcp_v0.92_socket_api\r\n\r\nThanks"}}
{"actor":{"display_login":"hoang-tranviet"}}