{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/206","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/206/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/206/events","html_url":"https://github.com/Azure/azure-iot-sdk-c/issues/206","id":250814023,"number":206,"title":" In function ‘get_target_mac_address’  error: storage size of ‘ifr’ isn’t known struct ifreq ifr;","user":{"login":"taroyutao","id":20704268,"avatar_url":"https://avatars1.githubusercontent.com/u/20704268?v=4","gravatar_id":"","url":"https://api.github.com/users/taroyutao","html_url":"https://github.com/taroyutao","followers_url":"https://api.github.com/users/taroyutao/followers","following_url":"https://api.github.com/users/taroyutao/following{/other_user}","gists_url":"https://api.github.com/users/taroyutao/gists{/gist_id}","starred_url":"https://api.github.com/users/taroyutao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taroyutao/subscriptions","organizations_url":"https://api.github.com/users/taroyutao/orgs","repos_url":"https://api.github.com/users/taroyutao/repos","events_url":"https://api.github.com/users/taroyutao/events{/privacy}","received_events_url":"https://api.github.com/users/taroyutao/received_events","type":"User","site_admin":false},"labels":[{"id":494742285,"url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/labels/CSS","name":"CSS","color":"e99695","default":false},{"id":461734082,"url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"closed","locked":false,"assignee":{"login":"markrad","id":12402055,"avatar_url":"https://avatars2.githubusercontent.com/u/12402055?v=4","gravatar_id":"","url":"https://api.github.com/users/markrad","html_url":"https://github.com/markrad","followers_url":"https://api.github.com/users/markrad/followers","following_url":"https://api.github.com/users/markrad/following{/other_user}","gists_url":"https://api.github.com/users/markrad/gists{/gist_id}","starred_url":"https://api.github.com/users/markrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markrad/subscriptions","organizations_url":"https://api.github.com/users/markrad/orgs","repos_url":"https://api.github.com/users/markrad/repos","events_url":"https://api.github.com/users/markrad/events{/privacy}","received_events_url":"https://api.github.com/users/markrad/received_events","type":"User","site_admin":false},"assignees":[{"login":"markrad","id":12402055,"avatar_url":"https://avatars2.githubusercontent.com/u/12402055?v=4","gravatar_id":"","url":"https://api.github.com/users/markrad","html_url":"https://github.com/markrad","followers_url":"https://api.github.com/users/markrad/followers","following_url":"https://api.github.com/users/markrad/following{/other_user}","gists_url":"https://api.github.com/users/markrad/gists{/gist_id}","starred_url":"https://api.github.com/users/markrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markrad/subscriptions","organizations_url":"https://api.github.com/users/markrad/orgs","repos_url":"https://api.github.com/users/markrad/repos","events_url":"https://api.github.com/users/markrad/events{/privacy}","received_events_url":"https://api.github.com/users/markrad/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-08-17T02:40:59Z","updated_at":"2017-09-08T02:49:21Z","closed_at":"2017-09-08T02:49:21Z","author_association":"NONE","body":"<!--\r\nHi there! thank you for discovering and submitting an issue!\r\n\r\nPlease first tell us a little bit about the environment you're running:\r\n-->\r\nhttps://github.com/Azure/azure-iot-device-ecosystem/blob/master/iotcertification/iot_certification_linux_c/iot_certification_linux_c.md\r\n\r\nstep by stey ,but when i run:sudo ./azure-iot-sdk-c/build_all/linux/build.sh --run-e2e-tests | tee LogFile.txt\r\n\r\n- **OS and version used:** <VERSION> <!-- Windows 10, Ubuntu14.04... -->\r\n\r\nUbuntu14.04\r\ngcc 4.9.4\r\n\r\n- **SDK version used:** <VERSION> <!-- Please include the SDK version -->\r\n\r\ngit clone -b 2017-06-30 --recursive https://github.com/Azure/azure-iot-sdk-c.git\r\n\r\n# Description of the issue:\r\n<!-- Please be as detailed as possible: which feature has a problem, how often does it fail,  -->\r\n\r\n# Code sample exhibiting the issue:\r\n<!-- Please remove any connection string information! -->\r\n\r\n# Console log of the issue:\r\n<!-- Please share as much logs as posible, that will help debugging -->\r\n<!-- Don't forget to remove any connection string information! -->\r\n\r\n[ 85%] Building C object iothub_client/tests/iothubclient_mqtt_e2e/CMakeFiles/iothubclient_mqtt_e2e_exe.dir/__/common_e2e/iothubclient_common_e2e.c.o\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c: In function ‘get_target_mac_address’:\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:356:22: error: storage size of ‘ifr’ isn’t known\r\n         struct ifreq ifr;\r\n                      ^\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:357:23: error: storage size of ‘ifc’ isn’t known\r\n         struct ifconf ifc;\r\n                       ^\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:371:72: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’\r\n             const struct ifreq* const end = it + (ifc.ifc_len / sizeof(struct ifreq));\r\n                                                                        ^\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:375:31: error: increment of pointer to unknown structure\r\n             for (; it != end; ++it)\r\n                               ^\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:375:13: error: arithmetic on pointer to an incomplete type\r\n             for (; it != end; ++it)\r\n             ^\r\n/root/azure-iot-sdk-c/iothub_client/tests/common_e2e/iothubclient_common_e2e.c:377:40: error: dereferencing pointer to incomplete type\r\n                 strcpy(ifr.ifr_name, it->ifr_name);\r\n                                        ^\r\nmake[2]: *** [iothub_client/tests/iothubclient_mqtt_e2e/CMakeFiles/iothubclient_mqtt_e2e_exe.dir/__/common_e2e/iothubclient_common_e2e.c.o] Error 1\r\nmake[1]: *** [iothub_client/tests/iothubclient_mqtt_e2e/CMakeFiles/iothubclient_mqtt_e2e_exe.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n\r\n\r\n"}}
{"actor":{"display_login":"markrad"}}