{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/543","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/543/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/543/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/543/events","html_url":"https://github.com/Azure/azure-iot-sdk-c/issues/543","id":337359644,"node_id":"MDU6SXNzdWUzMzczNTk2NDQ=","number":543,"title":"undefined reference error when using azure-iot-sdk-c-dev=0.2.0.0-7xenial package to build","user":{"login":"formulahendry","id":1050213,"node_id":"MDQ6VXNlcjEwNTAyMTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1050213?v=4","gravatar_id":"","url":"https://api.github.com/users/formulahendry","html_url":"https://github.com/formulahendry","followers_url":"https://api.github.com/users/formulahendry/followers","following_url":"https://api.github.com/users/formulahendry/following{/other_user}","gists_url":"https://api.github.com/users/formulahendry/gists{/gist_id}","starred_url":"https://api.github.com/users/formulahendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formulahendry/subscriptions","organizations_url":"https://api.github.com/users/formulahendry/orgs","repos_url":"https://api.github.com/users/formulahendry/repos","events_url":"https://api.github.com/users/formulahendry/events{/privacy}","received_events_url":"https://api.github.com/users/formulahendry/received_events","type":"User","site_admin":false},"labels":[{"id":461734070,"node_id":"MDU6TGFiZWw0NjE3MzQwNzA=","url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/labels/bug","name":"bug","color":"1d76db","default":true}],"state":"closed","locked":false,"assignee":{"login":"jebrando","id":8583083,"node_id":"MDQ6VXNlcjg1ODMwODM=","avatar_url":"https://avatars0.githubusercontent.com/u/8583083?v=4","gravatar_id":"","url":"https://api.github.com/users/jebrando","html_url":"https://github.com/jebrando","followers_url":"https://api.github.com/users/jebrando/followers","following_url":"https://api.github.com/users/jebrando/following{/other_user}","gists_url":"https://api.github.com/users/jebrando/gists{/gist_id}","starred_url":"https://api.github.com/users/jebrando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebrando/subscriptions","organizations_url":"https://api.github.com/users/jebrando/orgs","repos_url":"https://api.github.com/users/jebrando/repos","events_url":"https://api.github.com/users/jebrando/events{/privacy}","received_events_url":"https://api.github.com/users/jebrando/received_events","type":"User","site_admin":false},"assignees":[{"login":"jebrando","id":8583083,"node_id":"MDQ6VXNlcjg1ODMwODM=","avatar_url":"https://avatars0.githubusercontent.com/u/8583083?v=4","gravatar_id":"","url":"https://api.github.com/users/jebrando","html_url":"https://github.com/jebrando","followers_url":"https://api.github.com/users/jebrando/followers","following_url":"https://api.github.com/users/jebrando/following{/other_user}","gists_url":"https://api.github.com/users/jebrando/gists{/gist_id}","starred_url":"https://api.github.com/users/jebrando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebrando/subscriptions","organizations_url":"https://api.github.com/users/jebrando/orgs","repos_url":"https://api.github.com/users/jebrando/repos","events_url":"https://api.github.com/users/jebrando/events{/privacy}","received_events_url":"https://api.github.com/users/jebrando/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-02T03:39:32Z","updated_at":"2018-07-23T17:56:01Z","closed_at":"2018-07-23T17:55:51Z","author_association":"MEMBER","body":"**SDK version used:** Apt-get Xenial: 0.2.0.0-7xenial\r\n\r\n**Repro steps:** \r\nBuild the c sample code using:\r\n* https://github.com/VSChina/iot-edge-c-docker/blob/091b106e21c9b8d449a6ece9617b9bfea0b45896/modules/SampleModuleC/Dockerfile.amd64\r\n* https://github.com/VSChina/iot-edge-c-docker/blob/091b106e21c9b8d449a6ece9617b9bfea0b45896/modules/SampleModuleC/iothub_client_sample_module_filter.byTemp.c\r\n* https://github.com/VSChina/iot-edge-c-docker/blob/091b106e21c9b8d449a6ece9617b9bfea0b45896/modules/SampleModuleC/CMakeLists.txt\r\n\r\n**Issue:**\r\nMeet with bellow error:\r\n```\r\nStep 11/15 : RUN make\r\n ---> Running in 20119347fc8e\r\nScanning dependencies of target my_parson\r\n[ 25%] Building C object CMakeFiles/my_parson.dir/parson.c.o\r\n[ 50%] Linking C static library libmy_parson.a\r\n[ 50%] Built target my_parson\r\nScanning dependencies of target iothub_client_sample_module_sender\r\n[ 75%] Building C object CMakeFiles/iothub_client_sample_module_sender.dir/iothub_client_sample_module_filter.byTemp.c.o\r\n[100%] Linking C executable iothub_client_sample_module_sender\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_CreateFromDeviceAuth':\r\n(.text+0x35f): undefined reference to `iothub_device_auth_create'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_CreateFromDeviceAuth':\r\n(.text+0x3a2): undefined reference to `iothub_device_auth_get_type'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_CreateFromDeviceAuth':\r\n(.text+0x4d9): undefined reference to `iothub_device_auth_destroy'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_CreateFromDeviceAuth':\r\n(.text+0x529): undefined reference to `iothub_device_auth_destroy'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_Destroy':\r\n(.text+0x55e): undefined reference to `iothub_device_auth_destroy'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_Set_xio_Certificate':\r\n(.text+0x6d7): undefined reference to `iothub_device_auth_generate_credentials'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_Get_SasToken':\r\n(.text+0xa7a): undefined reference to `iothub_device_auth_generate_credentials'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): In function `IoTHubClient_Auth_Get_TrustBundle':\r\n(.text+0xe15): undefined reference to `iothub_device_auth_get_trust_bundle'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libiothub_client.a(iothub_client_core_ll.c.o): In function `IoTHubClientCore_LL_CreateFromEnvironment':\r\n(.text+0x3bc8): undefined reference to `iothub_security_init'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libaziotsharedutil.a(uniqueid_linux.c.o): In function `UniqueId_Generate':\r\n(.text+0xad): undefined reference to `uuid_generate'\r\n/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libaziotsharedutil.a(uniqueid_linux.c.o): In function `UniqueId_Generate':\r\n(.text+0xc7): undefined reference to `uuid_unparse'\r\ncollect2: error: ld returned 1 exit status\r\nCMakeFiles/iothub_client_sample_module_sender.dir/build.make:95: recipe for target 'iothub_client_sample_module_sender' failed\r\nmake[2]: *** [iothub_client_sample_module_sender] Error 1\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/iothub_client_sample_module_sender.dir/all' failed\r\nmake[1]: *** [CMakeFiles/iothub_client_sample_module_sender.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\nThe command '/bin/sh -c make' returned a non-zero code: 2\r\n```"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/comments/407145988","html_url":"https://github.com/Azure/azure-iot-sdk-c/issues/543#issuecomment-407145988","issue_url":"https://api.github.com/repos/Azure/azure-iot-sdk-c/issues/543","id":407145988,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzE0NTk4OA==","user":{"login":"az-iot-builder-01","id":10118926,"node_id":"MDQ6VXNlcjEwMTE4OTI2","avatar_url":"https://avatars3.githubusercontent.com/u/10118926?v=4","gravatar_id":"","url":"https://api.github.com/users/az-iot-builder-01","html_url":"https://github.com/az-iot-builder-01","followers_url":"https://api.github.com/users/az-iot-builder-01/followers","following_url":"https://api.github.com/users/az-iot-builder-01/following{/other_user}","gists_url":"https://api.github.com/users/az-iot-builder-01/gists{/gist_id}","starred_url":"https://api.github.com/users/az-iot-builder-01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/az-iot-builder-01/subscriptions","organizations_url":"https://api.github.com/users/az-iot-builder-01/orgs","repos_url":"https://api.github.com/users/az-iot-builder-01/repos","events_url":"https://api.github.com/users/az-iot-builder-01/events{/privacy}","received_events_url":"https://api.github.com/users/az-iot-builder-01/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T17:56:01Z","updated_at":"2018-07-23T17:56:01Z","author_association":"CONTRIBUTOR","body":"@formulahendry, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute [customer satisfaction survey](https://forms.office.com/Pages/DesignPage.aspx#FormId=v4j5cvGGr0GRqy180BHbRx8jpG79OudPqY-BojcKjkJUMFFBQjgxNkw5ODJIRjBWTzI0Nk85R0pUQiQlQCN0PWcu&Token=af48ed4ed02842bea21e0d3933b78fac)"}}
{"actor":{"display_login":"az-iot-builder-01"}}