Advertisement
jiapei100

azure-umqtt-c.txt

Jul 18th, 2022
1,418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 75.63 KB | None | 0 0
  1. [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqp_management.c.o
  2. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/amqp_management.c.o -MF CMakeFiles/uamqp.dir/src/amqp_management.c.o.d -o CMakeFiles/uamqp.dir/src/amqp_management.c.o -c ....../azure-iot-sdk-c/uamqp/src/amqp_management.c
  3. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:7,
  4.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:5:
  5. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
  6.    20 |     CONNECT_TYPE, 0x10, \
  7.       |                   ^~~~
  8. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
  9.    39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
  10.       |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
  12.    53 | } APP_PAYLOAD;
  13.       |   ^~~~~~~~~~~
  14. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: type defaults to ‘int’ in declaration of ‘APP_PAYLOAD’ [-Werror=implicit-int]
  15. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
  16.    65 |     QOS_VALUE qualityOfServiceValue;
  17.       |     ^~~~~~~~~
  18. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
  19.    89 |     QOS_VALUE qosReturn;
  20.       |     ^~~~~~~~~
  21. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
  22.    95 |     QOS_VALUE* qosReturn;
  23.       |     ^~~~~~~~~
  24. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:8,
  25.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:5:
  26. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:115: error: unknown type name ‘QOS_VALUE’
  27.    22 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create_in_place, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  28.       |                                                                                                                   ^~~~~~~~~
  29. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  30.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  31.       |                                                                  ^~~~~~~~
  32. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12489:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_6’
  33. 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
  34.       | ^~~~~~~~~~~~~~~~~~~~~~~
  35. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12493:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_8’
  36. 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
  37.       | ^~~~~~~~~~~~~~~~~~~~~~~
  38. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_10’
  39.    39 | #define MU_C2_(x,y) x##y
  40.       |                     ^
  41. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  42.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  43.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  44. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  45.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  46.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  48.    22 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create_in_place, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  49.       | ^~~~~~~~~~~~~~~~~
  50. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:106: error: unknown type name ‘QOS_VALUE’
  51.    23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  52.       |                                                                                                          ^~~~~~~~~
  53. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  54.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  55.       |                                                                  ^~~~~~~~
  56. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12489:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_6’
  57. 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
  58.       | ^~~~~~~~~~~~~~~~~~~~~~~
  59. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12493:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_8’
  60. 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
  61.       | ^~~~~~~~~~~~~~~~~~~~~~~
  62. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_10’
  63.    39 | #define MU_C2_(x,y) x##y
  64.       |                     ^
  65. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  66.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  67.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  68. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  69.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  70.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  71. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  72.    23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  73.       | ^~~~~~~~~~~~~~~~~
  74. [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue.c.o
  75. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:21: error: unknown type name ‘QOS_VALUE’
  76.    39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
  77.       |                     ^~~~~~~~~
  78. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  79.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  80.       |     ^~~~~~
  81. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  82.    39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
  83.       | ^~~~~~~~~~~~~~~~~
  84. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/amqpvalue.c.o -MF CMakeFiles/uamqp.dir/src/amqpvalue.c.o.d -o CMakeFiles/uamqp.dir/src/amqpvalue.c.o -c ....../azure-iot-sdk-c/uamqp/src/amqpvalue.c
  85. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  86.    44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
  87.       |                                      ^
  88. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  89.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  90.       |     ^~~~~~
  91. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  92.    44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
  93.       | ^~~~~~~~~~~~~~~~~
  94. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:15:5: error: unknown type name ‘QOS_VALUE’
  95.    15 |     QOS_VALUE qosInfo;
  96.       |     ^~~~~~~~~
  97. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:18:5: error: expected specifier-qualifier-list before ‘APP_PAYLOAD’
  98.    18 |     APP_PAYLOAD appPayload;
  99.       |     ^~~~~~~~~~~
  100. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:27:59: error: unknown type name ‘QOS_VALUE’
  101.    27 | static MQTT_MESSAGE* create_msg_object(uint16_t packetId, QOS_VALUE qosValue)
  102.       |                                                           ^~~~~~~~~
  103. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:9,
  104.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
  105. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
  106.    20 |     CONNECT_TYPE, 0x10, \
  107.       |                   ^~~~
  108. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
  109.    39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
  110.       |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  111. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
  112.    53 | } APP_PAYLOAD;
  113.       |   ^~~~~~~~~~~
  114. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: type defaults to ‘int’ in declaration of ‘APP_PAYLOAD’ [-Werror=implicit-int]
  115. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
  116.    65 |     QOS_VALUE qualityOfServiceValue;
  117.       |     ^~~~~~~~~
  118. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
  119.    89 |     QOS_VALUE qosReturn;
  120.       |     ^~~~~~~~~
  121. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
  122.    95 |     QOS_VALUE* qosReturn;
  123.       |     ^~~~~~~~~
  124. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:46:91: error: unknown type name ‘QOS_VALUE’
  125.    46 | MQTT_MESSAGE_HANDLE mqttmessage_create_in_place(uint16_t packetId, const char* topicName, QOS_VALUE qosValue, const uint8_t* appMsg, size_t appMsgLength)
  126.       |                                                                                           ^~~~~~~~~
  127. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:78:82: error: unknown type name ‘QOS_VALUE’
  128.    78 | MQTT_MESSAGE_HANDLE mqttmessage_create(uint16_t packetId, const char* topicName, QOS_VALUE qosValue, const uint8_t* appMsg, size_t appMsgLength)
  129.       |                                                                                  ^~~~~~~~~
  130. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_destroy’:
  131. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:146:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
  132.   146 |         if (handle->appPayload.message != NULL)
  133.       |                   ^~
  134. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:148:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
  135.   148 |             free(handle->appPayload.message);
  136.       |                        ^~
  137. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:8,
  138.                  from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:10,
  139.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
  140. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:115: error: unknown type name ‘QOS_VALUE’
  141.    22 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create_in_place, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  142.       |                                                                                                                   ^~~~~~~~~
  143. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  144.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  145.       |                                                                  ^~~~~~~~
  146. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12489:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_6’
  147. 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
  148.       | ^~~~~~~~~~~~~~~~~~~~~~~
  149. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12493:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_8’
  150. 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
  151.       | ^~~~~~~~~~~~~~~~~~~~~~~
  152. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_10’
  153.    39 | #define MU_C2_(x,y) x##y
  154.       |                     ^
  155. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  156.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  157.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  158. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  159.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  160.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  161. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  162.    22 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create_in_place, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  163.       | ^~~~~~~~~~~~~~~~~
  164. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_clone’:
  165. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:166:18: error: implicit declaration of function ‘mqttmessage_create’; did you mean ‘mqttmessage_clone’? [-Werror=implicit-function-declaration]
  166.   166 |         result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
  167.       |                  ^~~~~~~~~~~~~~~~~~
  168.       |                  mqttmessage_clone
  169. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:166:97: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
  170.   166 |         result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
  171.       |                                                                                                 ^~
  172. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:166:125: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
  173.   166 |         result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
  174.       |                                                                                                                             ^~
  175. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:169:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
  176.   169 |             result->isDuplicateMsg = handle->isDuplicateMsg;
  177.       |                   ^~
  178. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:169:44: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
  179.   169 |             result->isDuplicateMsg = handle->isDuplicateMsg;
  180.       |                                            ^~
  181. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:170:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
  182.   170 |             result->isMessageRetained = handle->isMessageRetained;
  183.       |                   ^~
  184. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:170:47: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
  185.   170 |             result->isMessageRetained = handle->isMessageRetained;
  186.       |                                               ^~
  187. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getTopicName’:
  188. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:207:28: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘const_topic_name’
  189.   207 |             result = handle->const_topic_name;
  190.       |                            ^~
  191. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getTopicLevels’:
  192. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:231:91: error: ‘MQTT_MESSAGE’ {aka ‘struct MQTT_MESSAGE_TAG’} has no member named ‘const_topic_name’
  193.   231 |         const char* topic_name = msgInfo->topicName != NULL ? msgInfo->topicName : msgInfo->const_topic_name;
  194.       |                                                                                           ^~
  195. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:10,
  196.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
  197. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
  198.    20 |     CONNECT_TYPE, 0x10, \
  199.       |                   ^~~~
  200. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
  201.    39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
  202.       |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  203. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
  204.    53 | } APP_PAYLOAD;
  205.       |   ^~~~~~~~~~~
  206. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: type defaults to ‘int’ in declaration of ‘APP_PAYLOAD’ [-Werror=implicit-int]
  207. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
  208.    65 |     QOS_VALUE qualityOfServiceValue;
  209.       |     ^~~~~~~~~
  210. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
  211.    89 |     QOS_VALUE qosReturn;
  212.       |     ^~~~~~~~~
  213. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
  214.    95 |     QOS_VALUE* qosReturn;
  215.       |     ^~~~~~~~~
  216. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:106: error: unknown type name ‘QOS_VALUE’
  217.    23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  218.       |                                                                                                          ^~~~~~~~~
  219. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  220.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  221.       |                                                                  ^~~~~~~~
  222. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12489:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_6’
  223. 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
  224.       | ^~~~~~~~~~~~~~~~~~~~~~~
  225. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12493:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_8’
  226. 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
  227.       | ^~~~~~~~~~~~~~~~~~~~~~~
  228. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_10’
  229.    39 | #define MU_C2_(x,y) x##y
  230.       |                     ^
  231. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  232.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  233.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  234. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  235.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  236.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  237. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  238.    23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
  239.       | ^~~~~~~~~~~~~~~~~
  240. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: At top level:
  241. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:263:1: error: unknown type name ‘QOS_VALUE’
  242.   263 | QOS_VALUE mqttmessage_getQosType(MQTT_MESSAGE_HANDLE handle)
  243.       | ^~~~~~~~~
  244. [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o
  245. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o -MF CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o.d -o CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o -c ....../azure-iot-sdk-c/uamqp/src/amqpvalue_to_string.c
  246. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getQosType’:
  247. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:265:5: error: unknown type name ‘QOS_VALUE’
  248.   265 |     QOS_VALUE result;
  249.       |     ^~~~~~~~~
  250. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:21: error: unknown type name ‘QOS_VALUE’
  251.    39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
  252.       |                     ^~~~~~~~~
  253. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  254.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  255.       |     ^~~~~~
  256. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  257.    39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
  258.       | ^~~~~~~~~~~~~~~~~
  259. In file included from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
  260. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:25:59: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  261.    25 | typedef void(*ON_PACKET_COMPLETE_CALLBACK)(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData);
  262.       |                                                           ^~~~~~~~~~~~~~~~~~~
  263.       |                                                           CONTROL_PACKET_TYPE_VALUES
  264. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  265.    44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
  266.       |                                      ^
  267. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  268.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  269.       |     ^~~~~~
  270. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  271.    44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
  272.       | ^~~~~~~~~~~~~~~~~
  273. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:270:18: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
  274.   270 |         result = DELIVER_AT_MOST_ONCE;
  275.       |                  ^~~~~~~~~~~~~~~~~~~~
  276. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:270:18: note: each undeclared identifier is reported only once for each function it appears in
  277. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getIsDuplicateMsg’:
  278. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:292:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
  279.   292 |         result = handle->isDuplicateMsg;
  280.       |                        ^~
  281. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getIsRetained’:
  282. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:309:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
  283.   309 |         result = handle->isMessageRetained;
  284.       |                        ^~
  285. In file included from ....../azure-iot-sdk-c/c-utility/inc/azure_c_shared_utility/crt_abstractions.h:20,
  286.                  from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:7,
  287.                  from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:10,
  288.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
  289. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:58: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
  290.    27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
  291.       |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  292. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  293.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  294.       |                                                                  ^~~~~~~~
  295. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_4’
  296.    39 | #define MU_C2_(x,y) x##y
  297.       |                     ^
  298. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  299.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  300.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  301. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  302.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  303.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  304. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  305.    27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
  306.       | ^~~~~~~~~~~~~~~~~
  307. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_setIsDuplicateMsg’:
  308. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:326:15: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
  309.   326 |         handle->isDuplicateMsg = duplicateMsg;
  310.       |               ^~
  311. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_setIsRetained’:
  312. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:344:15: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
  313.   344 |         handle->isMessageRetained = retainMsg;
  314.       |               ^~
  315. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: At top level:
  316. ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:350:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  317.   350 | const APP_PAYLOAD* mqttmessage_getApplicationMsg(MQTT_MESSAGE_HANDLE handle)
  318.       |                  ^
  319. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:11,
  320.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
  321. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:68:109: error: unknown type name ‘QOS_VALUE’
  322.    68 | MOCKABLE_FUNCTION(, int, mqtt_client_send_message_response, MQTT_CLIENT_HANDLE, handle, uint16_t, packetId, QOS_VALUE, qosValue);
  323.       |                                                                                                             ^~~~~~~~~
  324. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  325.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  326.       |                                                                  ^~~~~~~~
  327. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12481:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_2’
  328. 12481 | MU_FOR_EACH_2_COUNTED_2(X, P3, P4)
  329.       | ^~~~~~~~~~~~~~~~~~~~~~~
  330. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils_generated.h:12485:1: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_4’
  331. 12485 | MU_FOR_EACH_2_COUNTED_4(X, P3, P4, P5, P6)
  332.       | ^~~~~~~~~~~~~~~~~~~~~~~
  333. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_6’
  334.    39 | #define MU_C2_(x,y) x##y
  335.       |                     ^
  336. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  337.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  338.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  339. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  340.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  341.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  342. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:68:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  343.    68 | MOCKABLE_FUNCTION(, int, mqtt_client_send_message_response, MQTT_CLIENT_HANDLE, handle, uint16_t, packetId, QOS_VALUE, qosValue);
  344.       | ^~~~~~~~~~~~~~~~~
  345. cc1: all warnings being treated as errors
  346. [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/async_operation.c.o
  347. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/async_operation.c.o -MF CMakeFiles/uamqp.dir/src/async_operation.c.o.d -o CMakeFiles/uamqp.dir/src/async_operation.c.o -c ....../azure-iot-sdk-c/uamqp/src/async_operation.c
  348. make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:107: umqtt/CMakeFiles/umqtt.dir/src/mqtt_message.c.o] Error 1
  349. make[2]: *** Waiting for unfinished jobs....
  350. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:56: error: unknown type name ‘QOS_VALUE’
  351.    33 | MOCKABLE_FUNCTION(, BUFFER_HANDLE, mqtt_codec_publish, QOS_VALUE, qosValue, bool, duplicateMsg, bool, serverRetain, uint16_t, packetId, const char*, topicName, const uint8_t*, msgBuffer, size_t, buffLen, STRING_HANDLE, trace_log);
  352.       |                                                        ^~~~~~~~~
  353. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  354.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  355.       |                                                                  ^~~~~~~~
  356. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_16’
  357.    39 | #define MU_C2_(x,y) x##y
  358.       |                     ^
  359. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  360.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  361.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  362. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  363.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  364.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  365. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  366.    33 | MOCKABLE_FUNCTION(, BUFFER_HANDLE, mqtt_codec_publish, QOS_VALUE, qosValue, bool, duplicateMsg, bool, serverRetain, uint16_t, packetId, const char*, topicName, const uint8_t*, msgBuffer, size_t, buffLen, STRING_HANDLE, trace_log);
  367.       | ^~~~~~~~~~~~~~~~~
  368. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:58:5: error: unknown type name ‘CONTROL_PACKET_TYPE’
  369.    58 |     CONTROL_PACKET_TYPE currPacket;
  370.       |     ^~~~~~~~~~~~~~~~~~~
  371. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:63:5: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
  372.    63 |     ON_PACKET_COMPLETE_CALLBACK packetComplete;
  373.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  374. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:74:5: error: unknown type name ‘QOS_VALUE’
  375.    74 |     QOS_VALUE qualityOfServiceValue;
  376.       |     ^~~~~~~~~
  377. [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/cbs.c.o
  378. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/cbs.c.o -MF CMakeFiles/uamqp.dir/src/cbs.c.o.d -o CMakeFiles/uamqp.dir/src/cbs.c.o -c ....../azure-iot-sdk-c/uamqp/src/cbs.c
  379. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:77:39: error: unknown type name ‘QOS_VALUE’
  380.    77 | static const char* retrieve_qos_value(QOS_VALUE value)
  381.       |                                       ^~~~~~~~~
  382. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:121:8: error: unknown type name ‘CONTROL_PACKET_TYPE’
  383.   121 | static CONTROL_PACKET_TYPE processControlPacketType(uint8_t pktByte, int* flags)
  384.       |        ^~~~~~~~~~~~~~~~~~~
  385. In file included from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:19:
  386. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:25:59: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  387.    25 | typedef void(*ON_PACKET_COMPLETE_CALLBACK)(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData);
  388.       |                                                           ^~~~~~~~~~~~~~~~~~~
  389.       |                                                           CONTROL_PACKET_TYPE_VALUES
  390. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘processControlPacketType’:
  391. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:123:5: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  392.   123 |     CONTROL_PACKET_TYPE result;
  393.       |     ^~~~~~~~~~~~~~~~~~~
  394.       |     CONTROL_PACKET_TYPE_VALUES
  395. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:16:46: error: ‘CONTROL_PACKET_TYPE’ undeclared (first use in this function); did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  396.    16 | #define PACKET_TYPE_BYTE(p)                 (CONTROL_PACKET_TYPE)((uint8_t)(((uint8_t)(p)) & 0xf0))
  397.       |                                              ^~~~~~~~~~~~~~~~~~~
  398. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:124:14: note: in expansion of macro ‘PACKET_TYPE_BYTE’
  399.   124 |     result = PACKET_TYPE_BYTE(pktByte);
  400.       |              ^~~~~~~~~~~~~~~~
  401. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:16:46: note: each undeclared identifier is reported only once for each function it appears in
  402.    16 | #define PACKET_TYPE_BYTE(p)                 (CONTROL_PACKET_TYPE)((uint8_t)(((uint8_t)(p)) & 0xf0))
  403.       |                                              ^~~~~~~~~~~~~~~~~~~
  404. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:124:14: note: in expansion of macro ‘PACKET_TYPE_BYTE’
  405.   124 |     result = PACKET_TYPE_BYTE(pktByte);
  406.       |              ^~~~~~~~~~~~~~~~
  407. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:9,
  408.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:19:
  409. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:58: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
  410.    27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
  411.       |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  412. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  413.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  414.       |                                                                  ^~~~~~~~
  415. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_4’
  416.    39 | #define MU_C2_(x,y) x##y
  417.       |                     ^
  418. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  419.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  420.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  421. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  422.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  423.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  424. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  425.    27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
  426.       | ^~~~~~~~~~~~~~~~~
  427. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:56: error: unknown type name ‘QOS_VALUE’
  428.    33 | MOCKABLE_FUNCTION(, BUFFER_HANDLE, mqtt_codec_publish, QOS_VALUE, qosValue, bool, duplicateMsg, bool, serverRetain, uint16_t, packetId, const char*, topicName, const uint8_t*, msgBuffer, size_t, buffLen, STRING_HANDLE, trace_log);
  429.       |                                                        ^~~~~~~~~
  430. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:88:66: note: in definition of macro ‘UMOCK_C_PROD_ARG_IN_SIGNATURE’
  431.    88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
  432.       |                                                                  ^~~~~~~~
  433. ....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc/macro_utils/macro_utils.h:39:21: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED_16’
  434.    39 | #define MU_C2_(x,y) x##y
  435.       |                     ^
  436. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:70: note: in expansion of macro ‘MU_FOR_EACH_2_COUNTED’
  437.    91 |     result modifiers function(MU_IF(MU_COUNT_ARG(__VA_ARGS__),,void) MU_FOR_EACH_2_COUNTED(UMOCK_C_PROD_ARG_IN_SIGNATURE, __VA_ARGS__))
  438.       |                                                                      ^~~~~~~~~~~~~~~~~~~~~
  439. ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
  440.   101 |     MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
  441.       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  442. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
  443.    33 | MOCKABLE_FUNCTION(, BUFFER_HANDLE, mqtt_codec_publish, QOS_VALUE, qosValue, bool, duplicateMsg, bool, serverRetain, uint16_t, packetId, const char*, topicName, const uint8_t*, msgBuffer, size_t, buffLen, STRING_HANDLE, trace_log);
  444.       | ^~~~~~~~~~~~~~~~~
  445. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘constructPublishVariableHeader’:
  446. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:238:49: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
  447.   238 |     if (publishHeader->qualityOfServiceValue != DELIVER_AT_MOST_ONCE)
  448.       |                                                 ^~~~~~~~~~~~~~~~~~~~
  449. In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:9,
  450.                  from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
  451. ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:42:27: error: expected ‘)’ before numeric constant
  452.    42 |     DELIVER_AT_MOST_ONCE, 0x00, \
  453.       |                           ^~~~
  454. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:35:37: note: in expansion of macro ‘QOS_VALUE_VALUES’
  455.    35 | MU_DEFINE_ENUM_STRINGS_2(QOS_VALUE, QOS_VALUE_VALUES);
  456.       |                                     ^~~~~~~~~~~~~~~~
  457. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:49:5: error: unknown type name ‘CONTROL_PACKET_TYPE’
  458.    49 |     CONTROL_PACKET_TYPE packetState;
  459.       |     ^~~~~~~~~~~~~~~~~~~
  460. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:59:5: error: unknown type name ‘QOS_VALUE’
  461.    59 |     QOS_VALUE qosValue;
  462.       |     ^~~~~~~~~
  463. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
  464. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:305:44: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  465.   305 | static BUFFER_HANDLE constructPublishReply(CONTROL_PACKET_TYPE type, uint8_t flags, uint16_t packetId)
  466.       |                                            ^~~~~~~~~~~~~~~~~~~
  467.       |                                            CONTROL_PACKET_TYPE_VALUES
  468. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘sendComplete’:
  469. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:211:45: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
  470.   211 |             if (mqtt_client->packetState == DISCONNECT_TYPE)
  471.       |                                             ^~~~~~~~~~~~~~~
  472. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:211:45: note: each undeclared identifier is reported only once for each function it appears in
  473. [ 37%] Linking C static library libuhttp.a
  474. cd ....../azure-iot-sdk-c/build_22.04/deps/uhttp && /usr/bin/cmake -P CMakeFiles/uhttp.dir/cmake_clean_target.cmake
  475. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘onOpenComplete’:
  476. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:413:40: error: ‘CONNECT_TYPE’ undeclared (first use in this function); did you mean ‘CONNECT_ACK’?
  477.   413 |             mqtt_client->packetState = CONNECT_TYPE;
  478.       |                                        ^~~~~~~~~~~~
  479.       |                                        CONNECT_ACK
  480. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:336:59: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  481.   336 | static int constructFixedHeader(BUFFER_HANDLE ctrlPacket, CONTROL_PACKET_TYPE packetType, uint8_t flags)
  482.       |                                                           ^~~~~~~~~~~~~~~~~~~
  483.       |                                                           CONTROL_PACKET_TYPE_VALUES
  484. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘completePacketData’:
  485. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:590:35: error: comparison between pointer and integer [-Werror]
  486.   590 |     if (codecData->packetComplete != NULL)
  487.       |                                   ^~
  488. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:592:9: error: called object is not a function or function pointer
  489.   592 |         codecData->packetComplete(codecData->callContext, codecData->currPacket, codecData->headerFlags, codecData->headerData);
  490.       |         ^~~~~~~~~
  491. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
  492. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:634:73: error: unknown type name ‘QOS_VALUE’
  493.   634 | static void SendMessageAck(MQTT_CLIENT* mqtt_client, uint16_t packetId, QOS_VALUE qosValue)
  494.       |                                                                         ^~~~~~~~~
  495. [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/connection.c.o
  496. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/connection.c.o -MF CMakeFiles/uamqp.dir/src/connection.c.o.d -o CMakeFiles/uamqp.dir/src/connection.c.o -c ....../azure-iot-sdk-c/uamqp/src/connection.c
  497. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:596:29: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  498.   596 |     codecData->currPacket = UNKNOWN_TYPE;
  499.       |                             ^~~~~~~~~~~~
  500. cd ....../azure-iot-sdk-c/build_22.04/deps/uhttp && /usr/bin/cmake -E cmake_link_script CMakeFiles/uhttp.dir/link.txt --verbose=1
  501. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘ProcessPublishMessage’:
  502. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:5: error: unknown type name ‘QOS_VALUE’
  503.   688 |     QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
  504.       |     ^~~~~~~~~
  505. [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/frame_codec.c.o
  506. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/frame_codec.c.o -MF CMakeFiles/uamqp.dir/src/frame_codec.c.o.d -o CMakeFiles/uamqp.dir/src/frame_codec.c.o -c ....../azure-iot-sdk-c/uamqp/src/frame_codec.c
  507. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘clear_codec_data’:
  508. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:606:30: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  509.   606 |     codec_data->currPacket = UNKNOWN_TYPE;
  510.       |                              ^~~~~~~~~~~~
  511. /usr/bin/ar qc libuhttp.a CMakeFiles/uhttp.dir/src/uhttp.c.o
  512. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:41: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
  513.   688 |     QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
  514.       |                                         ^~~~~~~~~~~~~~~~~~~~
  515. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
  516. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:623:36: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
  517.   623 | MQTTCODEC_HANDLE mqtt_codec_create(ON_PACKET_COMPLETE_CALLBACK packetComplete, void* callbackCtx)
  518.       |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  519. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:101: error: ‘DELIVER_AT_LEAST_ONCE’ undeclared (first use in this function)
  520.   688 |     QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
  521.       |                                                                                                     ^~~~~~~~~~~~~~~~~~~~~
  522. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_connect’:
  523. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:690:25: error: implicit declaration of function ‘constructFixedHeader’ [-Werror=implicit-function-declaration]
  524.   690 |                     if (constructFixedHeader(result, CONNECT_TYPE, 0) != 0)
  525.       |                         ^~~~~~~~~~~~~~~~~~~~
  526. /usr/bin/ranlib libuhttp.a
  527. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:690:54: error: ‘CONNECT_TYPE’ undeclared (first use in this function); did you mean ‘CONNECT_ACK’?
  528.   690 |                     if (constructFixedHeader(result, CONNECT_TYPE, 0) != 0)
  529.       |                                                      ^~~~~~~~~~~~
  530.       |                                                      CONNECT_ACK
  531. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_disconnect’:
  532. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:737:31: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
  533.   737 |                 iterator[0] = DISCONNECT_TYPE;
  534.       |                               ^~~~~~~~~~~~~~~
  535. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:125: error: ‘DELIVER_EXACTLY_ONCE’ undeclared (first use in this function)
  536.   688 |     QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
  537.       |                                                                                                                             ^~~~~~~~~~~~~~~~~~~~
  538. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
  539. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:745:34: error: unknown type name ‘QOS_VALUE’
  540.   745 | BUFFER_HANDLE mqtt_codec_publish(QOS_VALUE qosValue, bool duplicateMsg, bool serverRetain, uint16_t packetId, const char* topicName, const uint8_t* msgBuffer, size_t buffLen, STRING_HANDLE trace_log)
  541.       |                                  ^~~~~~~~~
  542. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:707:38: error: implicit declaration of function ‘MU_ENUM_TO_STRING_2’; did you mean ‘MU_ENUM_TO_STRING’? [-Werror=implicit-function-declaration]
  543.   707 |                 isRetainMsg ? 1 : 0, MU_ENUM_TO_STRING_2(QOS_VALUE, qosValue), topicName);
  544.       |                                      ^~~~~~~~~~~~~~~~~~~
  545.       |                                      MU_ENUM_TO_STRING
  546. make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
  547. [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/header_detect_io.c.o
  548. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishAck’:
  549. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:866:28: error: implicit declaration of function ‘constructPublishReply’ [-Werror=implicit-function-declaration]
  550.   866 |     BUFFER_HANDLE result = constructPublishReply(PUBACK_TYPE, 0, packetId);
  551.       |                            ^~~~~~~~~~~~~~~~~~~~~
  552. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/header_detect_io.c.o -MF CMakeFiles/uamqp.dir/src/header_detect_io.c.o.d -o CMakeFiles/uamqp.dir/src/header_detect_io.c.o -c ....../azure-iot-sdk-c/uamqp/src/header_detect_io.c
  553. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:707:58: error: ‘QOS_VALUE’ undeclared (first use in this function)
  554.   707 |                 isRetainMsg ? 1 : 0, MU_ENUM_TO_STRING_2(QOS_VALUE, qosValue), topicName);
  555.       |                                                          ^~~~~~~~~
  556. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:866:50: error: ‘PUBACK_TYPE’ undeclared (first use in this function)
  557.   866 |     BUFFER_HANDLE result = constructPublishReply(PUBACK_TYPE, 0, packetId);
  558.       |                                                  ^~~~~~~~~~~
  559. [ 38%] Built target uhttp
  560. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishReceived’:
  561. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:874:50: error: ‘PUBREC_TYPE’ undeclared (first use in this function)
  562.   874 |     BUFFER_HANDLE result = constructPublishReply(PUBREC_TYPE, 0, packetId);
  563.       |                                                  ^~~~~~~~~~~
  564. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:731:45: error: implicit declaration of function ‘mqttmessage_create_in_place’ [-Werror=implicit-function-declaration]
  565.   731 |             MQTT_MESSAGE_HANDLE msgHandle = mqttmessage_create_in_place(packetId, topicName, qosValue, iterator, numberOfBytesToBeRead);
  566.       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  567. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:731:45: error: initialization of ‘MQTT_MESSAGE_HANDLE’ {aka ‘struct MQTT_MESSAGE_TAG *} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
  568. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishRelease’:
  569. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:882:50: error: ‘PUBREL_TYPE’ undeclared (first use in this function)
  570.   882 |     BUFFER_HANDLE result = constructPublishReply(PUBREL_TYPE, 2, packetId);
  571.       |                                                  ^~~~~~~~~~~
  572. [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/link.c.o
  573. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/link.c.o -MF CMakeFiles/uamqp.dir/src/link.c.o.d -o CMakeFiles/uamqp.dir/src/link.c.o -c ....../azure-iot-sdk-c/uamqp/src/link.c
  574. [ 39%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message.c.o
  575. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:756:21: error: implicit declaration of function ‘SendMessageAck’ [-Werror=implicit-function-declaration]
  576.   756 |                     SendMessageAck(mqtt_client, packetId, qosValue);
  577.       |                     ^~~~~~~~~~~~~~
  578. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/message.c.o -MF CMakeFiles/uamqp.dir/src/message.c.o.d -o CMakeFiles/uamqp.dir/src/message.c.o -c ....../azure-iot-sdk-c/uamqp/src/message.c
  579. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishComplete’:
  580. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:890:50: error: ‘PUBCOMP_TYPE’ undeclared (first use in this function)
  581.   890 |     BUFFER_HANDLE result = constructPublishReply(PUBCOMP_TYPE, 0, packetId);
  582.       |                                                  ^~~~~~~~~~~~
  583. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_ping’:
  584. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:917:31: error: ‘PINGREQ_TYPE’ undeclared (first use in this function)
  585.   917 |                 iterator[0] = PINGREQ_TYPE;
  586.       |                               ^~~~~~~~~~~~
  587. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
  588. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:771:49: error: unknown type name ‘CONTROL_PACKET_TYPE’; did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  589.   771 | static void recvCompleteCallback(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData)
  590.       |                                                 ^~~~~~~~~~~~~~~~~~~
  591.       |                                                 CONTROL_PACKET_TYPE_VALUES
  592. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_subscribe’:
  593. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:966:54: error: ‘SUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘SUBSCRIBE_ACK’?
  594.   966 |                     if (constructFixedHeader(result, SUBSCRIBE_TYPE, SUBSCRIBE_FIXED_HEADER_FLAG) != 0)
  595.       |                                                      ^~~~~~~~~~~~~~
  596.       |                                                      SUBSCRIBE_ACK
  597. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_init’:
  598. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1043:35: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  599.  1043 |             result->packetState = UNKNOWN_TYPE;
  600.       |                                   ^~~~~~~~~~~~
  601. make  -f provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build.make provisioning_service_client/CMakeFiles/provisioning_service_client.dir/depend
  602. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_unsubscribe’:
  603. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1030:54: error: ‘UNSUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘UNSUBSCRIBE_ACK’?
  604.  1030 |                     if (constructFixedHeader(result, UNSUBSCRIBE_TYPE, UNSUBSCRIBE_FIXED_HEADER_FLAG) != 0)
  605.       |                                                      ^~~~~~~~~~~~~~~~
  606.       |                                                      UNSUBSCRIBE_ACK
  607. make[2]: Entering directory '....../azure-iot-sdk-c/build_22.04'
  608. cd ....../azure-iot-sdk-c/build_22.04 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" ....../azure-iot-sdk-c ....../azure-iot-sdk-c/provisioning_service_client ....../azure-iot-sdk-c/build_22.04 ....../azure-iot-sdk-c/build_22.04/provisioning_service_client ....../azure-iot-sdk-c/build_22.04/provisioning_service_client/CMakeFiles/provisioning_service_client.dir/DependInfo.cmake --color=
  609. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1049:32: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
  610.  1049 |             result->qosValue = DELIVER_AT_MOST_ONCE;
  611.       |                                ^~~~~~~~~~~~~~~~~~~~
  612. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1061:40: error: implicit declaration of function ‘mqtt_codec_create’; did you mean ‘mqtt_codec_reset’? [-Werror=implicit-function-declaration]
  613.  1061 |                 result->codec_handle = mqtt_codec_create(recvCompleteCallback, result);
  614.       |                                        ^~~~~~~~~~~~~~~~~
  615.       |                                        mqtt_codec_reset
  616. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_bytesReceived’:
  617. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1067:34: error: ‘PACKET_TYPE_ERROR’ undeclared (first use in this function); did you mean ‘PACKET_TYPE_BYTE’?
  618.  1067 |         codec_Data->currPacket = PACKET_TYPE_ERROR;
  619.       |                                  ^~~~~~~~~~~~~~~~~
  620.       |                                  PACKET_TYPE_BYTE
  621. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1080:47: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  622.  1080 |                 if (codec_Data->currPacket == UNKNOWN_TYPE)
  623.       |                                               ^~~~~~~~~~~~
  624. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1061:58: error: ‘recvCompleteCallback’ undeclared (first use in this function)
  625.  1061 |                 result->codec_handle = mqtt_codec_create(recvCompleteCallback, result);
  626.       |                                                          ^~~~~~~~~~~~~~~~~~~~
  627. [ 39%] Linking C static library libutpm.a
  628. make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
  629. cd ....../azure-iot-sdk-c/build_22.04/provisioning_client/deps/utpm && /usr/bin/cmake -P CMakeFiles/utpm.dir/cmake_clean_target.cmake
  630. make  -f provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build.make provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build
  631. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_connect’:
  632. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1103:36: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  633.  1103 |         mqtt_client->packetState = UNKNOWN_TYPE;
  634.       |                                    ^~~~~~~~~~~~
  635. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_publish’:
  636. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1144:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
  637.  1144 |         const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
  638.       |                          ^
  639. make[2]: Entering directory '....../azure-iot-sdk-c/build_22.04'
  640. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1087:30: error: ‘PACKET_INVALID1_TYPE’ undeclared (first use in this function)
  641.  1087 |                         case PACKET_INVALID1_TYPE:
  642.       |                              ^~~~~~~~~~~~~~~~~~~~
  643. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1144:28: error: ‘payload’ undeclared (first use in this function)
  644.  1144 |         const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
  645.       |                            ^~~~~~~
  646. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1144:38: error: implicit declaration of function ‘mqttmessage_getApplicationMsg’; did you mean ‘mqttmessage_getIsDuplicateMsg’? [-Werror=implicit-function-declaration]
  647.  1144 |         const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
  648.       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  649.       |                                      mqttmessage_getIsDuplicateMsg
  650. cd ....../azure-iot-sdk-c/build_22.04/provisioning_client/deps/utpm && /usr/bin/cmake -E cmake_link_script CMakeFiles/utpm.dir/link.txt --verbose=1
  651. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1155:13: error: unknown type name ‘QOS_VALUE’
  652.  1155 |             QOS_VALUE qos = mqttmessage_getQosType(msgHandle);
  653.       |             ^~~~~~~~~
  654. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1088:30: error: ‘PACKET_INVALID2_TYPE’ undeclared (first use in this function)
  655.  1088 |                         case PACKET_INVALID2_TYPE:
  656.       |                              ^~~~~~~~~~~~~~~~~~~~
  657. [ 40%] Building C object provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_attestation_mechanism.c.o
  658. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1160:43: error: implicit declaration of function ‘mqtt_codec_publish’; did you mean ‘mqtt_codec_publishAck’? [-Werror=implicit-function-declaration]
  659.  1160 |             BUFFER_HANDLE publishPacket = mqtt_codec_publish(qos, isDuplicate, isRetained, packetId, topicName, payload->message, payload->length, trace_log);
  660.       |                                           ^~~~~~~~~~~~~~~~~~
  661.       |                                           mqtt_codec_publishAck
  662. cd ....../azure-iot-sdk-c/build_22.04/provisioning_service_client && /usr/bin/cc  -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/deps/uhttp/inc -I....../azure-iot-sdk-c/provisioning_service_client/../deps/parson -I....../azure-iot-sdk-c/provisioning_service_client/inc -I....../azure-iot-sdk-c/provisioning_client/inc -I....../azure-iot-sdk-c/provisioning_client/inc/internal -I....../azure-iot-sdk-c/c-utility/pal/linux -fPIC  -Werror -DUSE_PROV_MODULE_FULL -DUSE_PROV_MODULE -std=gnu99 -MD -MT provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_attestation_mechanism.c.o -MF CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_attestation_mechanism.c.o.d -o CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_attestation_mechanism.c.o -c ....../azure-iot-sdk-c/provisioning_service_client/src/provisioning_sc_attestation_mechanism.c
  663. /usr/bin/ar qc libutpm.a CMakeFiles/utpm.dir/src/Marshal.c.o CMakeFiles/utpm.dir/src/Memory.c.o CMakeFiles/utpm.dir/src/tpm_codec.c.o CMakeFiles/utpm.dir/src/gbfiledescript.c.o CMakeFiles/utpm.dir/src/tpm_comm_linux.c.o CMakeFiles/utpm.dir/src/tpm_socket_comm.c.o
  664. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1093:30: error: ‘CONNECT_TYPE’ undeclared (first use in this function); did you mean ‘CONNECT_ACK’?
  665.  1093 |                         case CONNECT_TYPE:
  666.       |                              ^~~~~~~~~~~~
  667.       |                              CONNECT_ACK
  668. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1169:44: error: ‘PUBLISH_TYPE’ undeclared (first use in this function); did you mean ‘PUBLISH_ACK’?
  669.  1169 |                 mqtt_client->packetState = PUBLISH_TYPE;
  670.       |                                            ^~~~~~~~~~~~
  671.       |                                            PUBLISH_ACK
  672. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1094:30: error: ‘CONNACK_TYPE’ undeclared (first use in this function)
  673.  1094 |                         case CONNACK_TYPE:
  674.       |                              ^~~~~~~~~~~~
  675. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_subscribe’:
  676. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1218:40: error: ‘SUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘SUBSCRIBE_ACK’?
  677.  1218 |             mqtt_client->packetState = SUBSCRIBE_TYPE;
  678.       |                                        ^~~~~~~~~~~~~~
  679.       |                                        SUBSCRIBE_ACK
  680. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1095:30: error: ‘PUBACK_TYPE’ undeclared (first use in this function)
  681.  1095 |                         case PUBACK_TYPE:
  682.       |                              ^~~~~~~~~~~
  683. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_unsubscribe’:
  684. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1266:40: error: ‘UNSUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘UNSUBSCRIBE_ACK’?
  685.  1266 |             mqtt_client->packetState = UNSUBSCRIBE_TYPE;
  686.       |                                        ^~~~~~~~~~~~~~~~
  687.       |                                        UNSUBSCRIBE_ACK
  688. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1096:30: error: ‘PUBREC_TYPE’ undeclared (first use in this function)
  689.  1096 |                         case PUBREC_TYPE:
  690.       |                              ^~~~~~~~~~~
  691. [ 40%] Building C object provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_bulk_operation.c.o
  692. cd ....../azure-iot-sdk-c/build_22.04/provisioning_service_client && /usr/bin/cc  -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/deps/uhttp/inc -I....../azure-iot-sdk-c/provisioning_service_client/../deps/parson -I....../azure-iot-sdk-c/provisioning_service_client/inc -I....../azure-iot-sdk-c/provisioning_client/inc -I....../azure-iot-sdk-c/provisioning_client/inc/internal -I....../azure-iot-sdk-c/c-utility/pal/linux -fPIC  -Werror -DUSE_PROV_MODULE_FULL -DUSE_PROV_MODULE -std=gnu99 -MD -MT provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_bulk_operation.c.o -MF CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_bulk_operation.c.o.d -o CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_bulk_operation.c.o -c ....../azure-iot-sdk-c/provisioning_service_client/src/provisioning_sc_bulk_operation.c
  693. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
  694. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1291:85: error: unknown type name ‘QOS_VALUE’
  695.  1291 | int mqtt_client_send_message_response(MQTT_CLIENT_HANDLE handle, uint16_t packetId, QOS_VALUE qosValue)
  696.       |                                                                                     ^~~~~~~~~
  697. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1097:30: error: ‘PUBCOMP_TYPE’ undeclared (first use in this function)
  698.  1097 |                         case PUBCOMP_TYPE:
  699.       |                              ^~~~~~~~~~~~
  700. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1098:30: error: ‘SUBACK_TYPE’ undeclared (first use in this function)
  701.  1098 |                         case SUBACK_TYPE:
  702.       |                              ^~~~~~~~~~~
  703. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_disconnect’:
  704. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1328:44: error: ‘PACKET_TYPE_ERROR’ undeclared (first use in this function)
  705.  1328 |                 mqtt_client->packetState = PACKET_TYPE_ERROR;
  706.       |                                            ^~~~~~~~~~~~~~~~~
  707. [ 40%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_receiver.c.o
  708. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/message_receiver.c.o -MF CMakeFiles/uamqp.dir/src/message_receiver.c.o.d -o CMakeFiles/uamqp.dir/src/message_receiver.c.o -c ....../azure-iot-sdk-c/uamqp/src/message_receiver.c
  709. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1099:30: error: ‘UNSUBACK_TYPE’ undeclared (first use in this function)
  710.  1099 |                         case UNSUBACK_TYPE:
  711.       |                              ^~~~~~~~~~~~~
  712. /usr/bin/ranlib libutpm.a
  713. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1336:44: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
  714.  1336 |                 mqtt_client->packetState = DISCONNECT_TYPE;
  715.       |                                            ^~~~~~~~~~~~~~~
  716. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1100:30: error: ‘PINGREQ_TYPE’ undeclared (first use in this function)
  717.  1100 |                         case PINGREQ_TYPE:
  718.       |                              ^~~~~~~~~~~~
  719. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_dowork’:
  720. ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1411:52: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
  721.  1411 |                         mqtt_client->packetState = UNKNOWN_TYPE;
  722.       |                                                    ^~~~~~~~~~~~
  723. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1101:30: error: ‘PINGRESP_TYPE’ undeclared (first use in this function)
  724.  1101 |                         case PINGRESP_TYPE:
  725.       |                              ^~~~~~~~~~~~~
  726. cc1: all warnings being treated as errors
  727. make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:79: umqtt/CMakeFiles/umqtt.dir/src/mqtt_client.c.o] Error 1
  728. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1102:30: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
  729.  1102 |                         case DISCONNECT_TYPE:
  730.       |                              ^~~~~~~~~~~~~~~
  731. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1110:30: error: ‘PUBREL_TYPE’ undeclared (first use in this function)
  732.  1110 |                         case PUBREL_TYPE:
  733.       |                              ^~~~~~~~~~~
  734. [ 40%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_sender.c.o
  735. cd ....../azure-iot-sdk-c/build_22.04/uamqp && /usr/bin/cc -DREFCOUNT_ATOMIC_DONTCARE -D__STDC_NO_ATOMICS__=1 -I....../azure-iot-sdk-c/c-utility/deps/macro-utils-c/inc -I....../azure-iot-sdk-c/deps/umock-c/inc -I....../azure-iot-sdk-c/c-utility/inc -I....../azure-iot-sdk-c/c-utility/pal/linux -I....../azure-iot-sdk-c/uamqp/inc -D_POSIX_C_SOURCE=200112L -fPIC  -Werror -DUSE_PROV_MODULE_FULL -Werror -Werror -fPIC -std=gnu99 -MD -MT uamqp/CMakeFiles/uamqp.dir/src/message_sender.c.o -MF CMakeFiles/uamqp.dir/src/message_sender.c.o.d -o CMakeFiles/uamqp.dir/src/message_sender.c.o -c ....../azure-iot-sdk-c/uamqp/src/message_sender.c
  736. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1111:30: error: ‘SUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘SUBSCRIBE_ACK’?
  737.  1111 |                         case SUBSCRIBE_TYPE:
  738.       |                              ^~~~~~~~~~~~~~
  739.       |                              SUBSCRIBE_ACK
  740. make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
  741. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1112:30: error: ‘UNSUBSCRIBE_TYPE’ undeclared (first use in this function); did you mean ‘UNSUBSCRIBE_ACK’?
  742.  1112 |                         case UNSUBSCRIBE_TYPE:
  743.       |                              ^~~~~~~~~~~~~~~~
  744.       |                              UNSUBSCRIBE_ACK
  745. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1120:30: error: ‘PUBLISH_TYPE’ undeclared (first use in this function); did you mean ‘PUBLISH_ACK’?
  746.  1120 |                         case PUBLISH_TYPE:
  747.       |                              ^~~~~~~~~~~~
  748.       |                              PUBLISH_ACK
  749. [ 40%] Built target utpm
  750. ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1121:30: error: ‘CONTROL_PACKET_TYPE_INVALID’ undeclared (first use in this function); did you mean ‘CONTROL_PACKET_TYPE_VALUES’?
  751.  1121 |                         case CONTROL_PACKET_TYPE_INVALID:
  752.       |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  753.       |                              CONTROL_PACKET_TYPE_VALUES
  754. cc1: all warnings being treated as errors
  755. make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:93: umqtt/CMakeFiles/umqtt.dir/src/mqtt_codec.c.o] Error 1
  756. make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
  757. make[1]: *** [CMakeFiles/Makefile2:2202: umqtt/CMakeFiles/umqtt.dir/all] Error 2
  758. make[1]: *** Waiting for unfinished jobs....
  759.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement