Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqp_management.c.o
- 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
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:7,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:5:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
- 20 | CONNECT_TYPE, 0x10, \
- | ^~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
- 39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
- 53 | } APP_PAYLOAD;
- | ^~~~~~~~~~~
- ....../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]
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
- 65 | QOS_VALUE qualityOfServiceValue;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
- 89 | QOS_VALUE qosReturn;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
- 95 | QOS_VALUE* qosReturn;
- | ^~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:8,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:5:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:115: error: unknown type name ‘QOS_VALUE’
- 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);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 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);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:106: error: unknown type name ‘QOS_VALUE’
- 23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
- | ^~~~~~~~~~~~~~~~~
- [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue.c.o
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:21: error: unknown type name ‘QOS_VALUE’
- 39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 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__))
- | ^~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~~~~~~~~~
- 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
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
- | ^
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 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__))
- | ^~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:15:5: error: unknown type name ‘QOS_VALUE’
- 15 | QOS_VALUE qosInfo;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:18:5: error: expected specifier-qualifier-list before ‘APP_PAYLOAD’
- 18 | APP_PAYLOAD appPayload;
- | ^~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:27:59: error: unknown type name ‘QOS_VALUE’
- 27 | static MQTT_MESSAGE* create_msg_object(uint16_t packetId, QOS_VALUE qosValue)
- | ^~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:9,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
- 20 | CONNECT_TYPE, 0x10, \
- | ^~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
- 39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
- 53 | } APP_PAYLOAD;
- | ^~~~~~~~~~~
- ....../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]
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
- 65 | QOS_VALUE qualityOfServiceValue;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
- 89 | QOS_VALUE qosReturn;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
- 95 | QOS_VALUE* qosReturn;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:46:91: error: unknown type name ‘QOS_VALUE’
- 46 | MQTT_MESSAGE_HANDLE mqttmessage_create_in_place(uint16_t packetId, const char* topicName, QOS_VALUE qosValue, const uint8_t* appMsg, size_t appMsgLength)
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:78:82: error: unknown type name ‘QOS_VALUE’
- 78 | MQTT_MESSAGE_HANDLE mqttmessage_create(uint16_t packetId, const char* topicName, QOS_VALUE qosValue, const uint8_t* appMsg, size_t appMsgLength)
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_destroy’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:146:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
- 146 | if (handle->appPayload.message != NULL)
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:148:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
- 148 | free(handle->appPayload.message);
- | ^~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:8,
- from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:10,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:115: error: unknown type name ‘QOS_VALUE’
- 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);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:22:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 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);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_clone’:
- ....../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 | result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
- | ^~~~~~~~~~~~~~~~~~
- | mqttmessage_clone
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:166:97: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
- 166 | result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:166:125: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘appPayload’
- 166 | result = mqttmessage_create(handle->packetId, handle->topicName, handle->qosInfo, handle->appPayload.message, handle->appPayload.length);
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:169:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
- 169 | result->isDuplicateMsg = handle->isDuplicateMsg;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:169:44: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
- 169 | result->isDuplicateMsg = handle->isDuplicateMsg;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:170:19: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
- 170 | result->isMessageRetained = handle->isMessageRetained;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:170:47: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
- 170 | result->isMessageRetained = handle->isMessageRetained;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getTopicName’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:207:28: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘const_topic_name’
- 207 | result = handle->const_topic_name;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getTopicLevels’:
- ....../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’
- 231 | const char* topic_name = msgInfo->topicName != NULL ? msgInfo->topicName : msgInfo->const_topic_name;
- | ^~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:10,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:20:19: error: expected ‘)’ before numeric constant
- 20 | CONNECT_TYPE, 0x10, \
- | ^~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:39:39: note: in expansion of macro ‘CONTROL_PACKET_TYPE_VALUES’
- 39 | MU_DEFINE_ENUM_2(CONTROL_PACKET_TYPE, CONTROL_PACKET_TYPE_VALUES)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:53:3: error: data definition has no type or storage class [-Werror]
- 53 | } APP_PAYLOAD;
- | ^~~~~~~~~~~
- ....../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]
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:65:5: error: unknown type name ‘QOS_VALUE’
- 65 | QOS_VALUE qualityOfServiceValue;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:89:5: error: unknown type name ‘QOS_VALUE’
- 89 | QOS_VALUE qosReturn;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:95:5: error: unknown type name ‘QOS_VALUE’
- 95 | QOS_VALUE* qosReturn;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:106: error: unknown type name ‘QOS_VALUE’
- 23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 12489 | MU_FOR_EACH_2_COUNTED_6(X, P3, P4, P5, P6, P7, P8)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 12493 | MU_FOR_EACH_2_COUNTED_8(X, P3, P4, P5, P6, P7, P8, P9, P10)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:23:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 23 | MOCKABLE_FUNCTION(, MQTT_MESSAGE_HANDLE, mqttmessage_create, uint16_t, packetId, const char*, topicName, QOS_VALUE, qosValue, const uint8_t*, appMsg, size_t, appMsgLength);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:263:1: error: unknown type name ‘QOS_VALUE’
- 263 | QOS_VALUE mqttmessage_getQosType(MQTT_MESSAGE_HANDLE handle)
- | ^~~~~~~~~
- [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getQosType’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:265:5: error: unknown type name ‘QOS_VALUE’
- 265 | QOS_VALUE result;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:21: error: unknown type name ‘QOS_VALUE’
- 39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 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__))
- | ^~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:39:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 39 | MOCKABLE_FUNCTION(, QOS_VALUE, mqttmessage_getQosType, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
- ....../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’?
- 25 | typedef void(*ON_PACKET_COMPLETE_CALLBACK)(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData);
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
- | ^
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:91:5: note: in definition of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 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__))
- | ^~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_message.h:44:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 44 | MOCKABLE_FUNCTION(, const APP_PAYLOAD*, mqttmessage_getApplicationMsg, MQTT_MESSAGE_HANDLE, handle);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:270:18: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
- 270 | result = DELIVER_AT_MOST_ONCE;
- | ^~~~~~~~~~~~~~~~~~~~
- ....../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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getIsDuplicateMsg’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:292:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
- 292 | result = handle->isDuplicateMsg;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_getIsRetained’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:309:24: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
- 309 | result = handle->isMessageRetained;
- | ^~
- In file included from ....../azure-iot-sdk-c/c-utility/inc/azure_c_shared_utility/crt_abstractions.h:20,
- from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:7,
- from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:10,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:12:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:58: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
- 27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 39 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_setIsDuplicateMsg’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:326:15: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isDuplicateMsg’
- 326 | handle->isDuplicateMsg = duplicateMsg;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: In function ‘mqttmessage_setIsRetained’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:344:15: error: ‘struct MQTT_MESSAGE_TAG’ has no member named ‘isMessageRetained’
- 344 | handle->isMessageRetained = retainMsg;
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_message.c:350:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 350 | const APP_PAYLOAD* mqttmessage_getApplicationMsg(MQTT_MESSAGE_HANDLE handle)
- | ^
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:11,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:68:109: error: unknown type name ‘QOS_VALUE’
- 68 | MOCKABLE_FUNCTION(, int, mqtt_client_send_message_response, MQTT_CLIENT_HANDLE, handle, uint16_t, packetId, QOS_VALUE, qosValue);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 12481 | MU_FOR_EACH_2_COUNTED_2(X, P3, P4)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 12485 | MU_FOR_EACH_2_COUNTED_4(X, P3, P4, P5, P6)
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 39 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:68:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 68 | MOCKABLE_FUNCTION(, int, mqtt_client_send_message_response, MQTT_CLIENT_HANDLE, handle, uint16_t, packetId, QOS_VALUE, qosValue);
- | ^~~~~~~~~~~~~~~~~
- cc1: all warnings being treated as errors
- [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/async_operation.c.o
- 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
- make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:107: umqtt/CMakeFiles/umqtt.dir/src/mqtt_message.c.o] Error 1
- make[2]: *** Waiting for unfinished jobs....
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:56: error: unknown type name ‘QOS_VALUE’
- 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);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 39 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 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);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:58:5: error: unknown type name ‘CONTROL_PACKET_TYPE’
- 58 | CONTROL_PACKET_TYPE currPacket;
- | ^~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:63:5: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
- 63 | ON_PACKET_COMPLETE_CALLBACK packetComplete;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:74:5: error: unknown type name ‘QOS_VALUE’
- 74 | QOS_VALUE qualityOfServiceValue;
- | ^~~~~~~~~
- [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/cbs.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:77:39: error: unknown type name ‘QOS_VALUE’
- 77 | static const char* retrieve_qos_value(QOS_VALUE value)
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:121:8: error: unknown type name ‘CONTROL_PACKET_TYPE’
- 121 | static CONTROL_PACKET_TYPE processControlPacketType(uint8_t pktByte, int* flags)
- | ^~~~~~~~~~~~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:19:
- ....../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’?
- 25 | typedef void(*ON_PACKET_COMPLETE_CALLBACK)(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData);
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘processControlPacketType’:
- ....../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’?
- 123 | CONTROL_PACKET_TYPE result;
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../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’?
- 16 | #define PACKET_TYPE_BYTE(p) (CONTROL_PACKET_TYPE)((uint8_t)(((uint8_t)(p)) & 0xf0))
- | ^~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:124:14: note: in expansion of macro ‘PACKET_TYPE_BYTE’
- 124 | result = PACKET_TYPE_BYTE(pktByte);
- | ^~~~~~~~~~~~~~~~
- ....../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
- 16 | #define PACKET_TYPE_BYTE(p) (CONTROL_PACKET_TYPE)((uint8_t)(((uint8_t)(p)) & 0xf0))
- | ^~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:124:14: note: in expansion of macro ‘PACKET_TYPE_BYTE’
- 124 | result = PACKET_TYPE_BYTE(pktByte);
- | ^~~~~~~~~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:9,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:19:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:58: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
- 27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 39 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:27:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 27 | MOCKABLE_FUNCTION(, MQTTCODEC_HANDLE, mqtt_codec_create, ON_PACKET_COMPLETE_CALLBACK, packetComplete, void*, callbackCtx);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:56: error: unknown type name ‘QOS_VALUE’
- 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);
- | ^~~~~~~~~
- ....../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’
- 88 | #define UMOCK_C_PROD_ARG_IN_SIGNATURE(count, arg_type, arg_name) arg_type arg_name MU_IFCOMMA(count)
- | ^~~~~~~~
- ....../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’
- 39 | #define MU_C2_(x,y) x##y
- | ^
- ....../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’
- 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__))
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/deps/umock-c/inc/umock_c/umock_c_prod.h:101:5: note: in expansion of macro ‘MOCKABLE_FUNCTION_SIGNATURE’
- 101 | MOCKABLE_FUNCTION_SIGNATURE(modifiers, result, function, ##__VA_ARGS__);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_codec.h:33:1: note: in expansion of macro ‘MOCKABLE_FUNCTION’
- 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);
- | ^~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘constructPublishVariableHeader’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:238:49: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
- 238 | if (publishHeader->qualityOfServiceValue != DELIVER_AT_MOST_ONCE)
- | ^~~~~~~~~~~~~~~~~~~~
- In file included from ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqtt_client.h:9,
- from ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:18:
- ....../azure-iot-sdk-c/umqtt/inc/azure_umqtt_c/mqttconst.h:42:27: error: expected ‘)’ before numeric constant
- 42 | DELIVER_AT_MOST_ONCE, 0x00, \
- | ^~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:35:37: note: in expansion of macro ‘QOS_VALUE_VALUES’
- 35 | MU_DEFINE_ENUM_STRINGS_2(QOS_VALUE, QOS_VALUE_VALUES);
- | ^~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:49:5: error: unknown type name ‘CONTROL_PACKET_TYPE’
- 49 | CONTROL_PACKET_TYPE packetState;
- | ^~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:59:5: error: unknown type name ‘QOS_VALUE’
- 59 | QOS_VALUE qosValue;
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
- ....../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’?
- 305 | static BUFFER_HANDLE constructPublishReply(CONTROL_PACKET_TYPE type, uint8_t flags, uint16_t packetId)
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘sendComplete’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:211:45: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
- 211 | if (mqtt_client->packetState == DISCONNECT_TYPE)
- | ^~~~~~~~~~~~~~~
- ....../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
- [ 37%] Linking C static library libuhttp.a
- cd ....../azure-iot-sdk-c/build_22.04/deps/uhttp && /usr/bin/cmake -P CMakeFiles/uhttp.dir/cmake_clean_target.cmake
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘onOpenComplete’:
- ....../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’?
- 413 | mqtt_client->packetState = CONNECT_TYPE;
- | ^~~~~~~~~~~~
- | CONNECT_ACK
- ....../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’?
- 336 | static int constructFixedHeader(BUFFER_HANDLE ctrlPacket, CONTROL_PACKET_TYPE packetType, uint8_t flags)
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘completePacketData’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:590:35: error: comparison between pointer and integer [-Werror]
- 590 | if (codecData->packetComplete != NULL)
- | ^~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:592:9: error: called object is not a function or function pointer
- 592 | codecData->packetComplete(codecData->callContext, codecData->currPacket, codecData->headerFlags, codecData->headerData);
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:634:73: error: unknown type name ‘QOS_VALUE’
- 634 | static void SendMessageAck(MQTT_CLIENT* mqtt_client, uint16_t packetId, QOS_VALUE qosValue)
- | ^~~~~~~~~
- [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/connection.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:596:29: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 596 | codecData->currPacket = UNKNOWN_TYPE;
- | ^~~~~~~~~~~~
- cd ....../azure-iot-sdk-c/build_22.04/deps/uhttp && /usr/bin/cmake -E cmake_link_script CMakeFiles/uhttp.dir/link.txt --verbose=1
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘ProcessPublishMessage’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:5: error: unknown type name ‘QOS_VALUE’
- 688 | QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
- | ^~~~~~~~~
- [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/frame_codec.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘clear_codec_data’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:606:30: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 606 | codec_data->currPacket = UNKNOWN_TYPE;
- | ^~~~~~~~~~~~
- /usr/bin/ar qc libuhttp.a CMakeFiles/uhttp.dir/src/uhttp.c.o
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:41: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
- 688 | QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
- | ^~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:623:36: error: unknown type name ‘ON_PACKET_COMPLETE_CALLBACK’
- 623 | MQTTCODEC_HANDLE mqtt_codec_create(ON_PACKET_COMPLETE_CALLBACK packetComplete, void* callbackCtx)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:101: error: ‘DELIVER_AT_LEAST_ONCE’ undeclared (first use in this function)
- 688 | QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
- | ^~~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_connect’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:690:25: error: implicit declaration of function ‘constructFixedHeader’ [-Werror=implicit-function-declaration]
- 690 | if (constructFixedHeader(result, CONNECT_TYPE, 0) != 0)
- | ^~~~~~~~~~~~~~~~~~~~
- /usr/bin/ranlib libuhttp.a
- ....../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’?
- 690 | if (constructFixedHeader(result, CONNECT_TYPE, 0) != 0)
- | ^~~~~~~~~~~~
- | CONNECT_ACK
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_disconnect’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:737:31: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
- 737 | iterator[0] = DISCONNECT_TYPE;
- | ^~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:688:125: error: ‘DELIVER_EXACTLY_ONCE’ undeclared (first use in this function)
- 688 | QOS_VALUE qosValue = (flags == 0) ? DELIVER_AT_MOST_ONCE : (flags & QOS_LEAST_ONCE_FLAG_MASK) ? DELIVER_AT_LEAST_ONCE : DELIVER_EXACTLY_ONCE;
- | ^~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:745:34: error: unknown type name ‘QOS_VALUE’
- 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)
- | ^~~~~~~~~
- ....../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]
- 707 | isRetainMsg ? 1 : 0, MU_ENUM_TO_STRING_2(QOS_VALUE, qosValue), topicName);
- | ^~~~~~~~~~~~~~~~~~~
- | MU_ENUM_TO_STRING
- make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
- [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/header_detect_io.c.o
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishAck’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:866:28: error: implicit declaration of function ‘constructPublishReply’ [-Werror=implicit-function-declaration]
- 866 | BUFFER_HANDLE result = constructPublishReply(PUBACK_TYPE, 0, packetId);
- | ^~~~~~~~~~~~~~~~~~~~~
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:707:58: error: ‘QOS_VALUE’ undeclared (first use in this function)
- 707 | isRetainMsg ? 1 : 0, MU_ENUM_TO_STRING_2(QOS_VALUE, qosValue), topicName);
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:866:50: error: ‘PUBACK_TYPE’ undeclared (first use in this function)
- 866 | BUFFER_HANDLE result = constructPublishReply(PUBACK_TYPE, 0, packetId);
- | ^~~~~~~~~~~
- [ 38%] Built target uhttp
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishReceived’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:874:50: error: ‘PUBREC_TYPE’ undeclared (first use in this function)
- 874 | BUFFER_HANDLE result = constructPublishReply(PUBREC_TYPE, 0, packetId);
- | ^~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:731:45: error: implicit declaration of function ‘mqttmessage_create_in_place’ [-Werror=implicit-function-declaration]
- 731 | MQTT_MESSAGE_HANDLE msgHandle = mqttmessage_create_in_place(packetId, topicName, qosValue, iterator, numberOfBytesToBeRead);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ....../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]
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishRelease’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:882:50: error: ‘PUBREL_TYPE’ undeclared (first use in this function)
- 882 | BUFFER_HANDLE result = constructPublishReply(PUBREL_TYPE, 2, packetId);
- | ^~~~~~~~~~~
- [ 38%] Building C object uamqp/CMakeFiles/uamqp.dir/src/link.c.o
- 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
- [ 39%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message.c.o
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:756:21: error: implicit declaration of function ‘SendMessageAck’ [-Werror=implicit-function-declaration]
- 756 | SendMessageAck(mqtt_client, packetId, qosValue);
- | ^~~~~~~~~~~~~~
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_publishComplete’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:890:50: error: ‘PUBCOMP_TYPE’ undeclared (first use in this function)
- 890 | BUFFER_HANDLE result = constructPublishReply(PUBCOMP_TYPE, 0, packetId);
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_ping’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:917:31: error: ‘PINGREQ_TYPE’ undeclared (first use in this function)
- 917 | iterator[0] = PINGREQ_TYPE;
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
- ....../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’?
- 771 | static void recvCompleteCallback(void* context, CONTROL_PACKET_TYPE packet, int flags, BUFFER_HANDLE headerData)
- | ^~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_subscribe’:
- ....../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’?
- 966 | if (constructFixedHeader(result, SUBSCRIBE_TYPE, SUBSCRIBE_FIXED_HEADER_FLAG) != 0)
- | ^~~~~~~~~~~~~~
- | SUBSCRIBE_ACK
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_init’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1043:35: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 1043 | result->packetState = UNKNOWN_TYPE;
- | ^~~~~~~~~~~~
- make -f provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build.make provisioning_service_client/CMakeFiles/provisioning_service_client.dir/depend
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_unsubscribe’:
- ....../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’?
- 1030 | if (constructFixedHeader(result, UNSUBSCRIBE_TYPE, UNSUBSCRIBE_FIXED_HEADER_FLAG) != 0)
- | ^~~~~~~~~~~~~~~~
- | UNSUBSCRIBE_ACK
- make[2]: Entering directory '....../azure-iot-sdk-c/build_22.04'
- 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=
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1049:32: error: ‘DELIVER_AT_MOST_ONCE’ undeclared (first use in this function)
- 1049 | result->qosValue = DELIVER_AT_MOST_ONCE;
- | ^~~~~~~~~~~~~~~~~~~~
- ....../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]
- 1061 | result->codec_handle = mqtt_codec_create(recvCompleteCallback, result);
- | ^~~~~~~~~~~~~~~~~
- | mqtt_codec_reset
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c: In function ‘mqtt_codec_bytesReceived’:
- ....../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’?
- 1067 | codec_Data->currPacket = PACKET_TYPE_ERROR;
- | ^~~~~~~~~~~~~~~~~
- | PACKET_TYPE_BYTE
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1080:47: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 1080 | if (codec_Data->currPacket == UNKNOWN_TYPE)
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1061:58: error: ‘recvCompleteCallback’ undeclared (first use in this function)
- 1061 | result->codec_handle = mqtt_codec_create(recvCompleteCallback, result);
- | ^~~~~~~~~~~~~~~~~~~~
- [ 39%] Linking C static library libutpm.a
- make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
- cd ....../azure-iot-sdk-c/build_22.04/provisioning_client/deps/utpm && /usr/bin/cmake -P CMakeFiles/utpm.dir/cmake_clean_target.cmake
- make -f provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build.make provisioning_service_client/CMakeFiles/provisioning_service_client.dir/build
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_connect’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1103:36: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 1103 | mqtt_client->packetState = UNKNOWN_TYPE;
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_publish’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1144:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
- 1144 | const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
- | ^
- make[2]: Entering directory '....../azure-iot-sdk-c/build_22.04'
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1087:30: error: ‘PACKET_INVALID1_TYPE’ undeclared (first use in this function)
- 1087 | case PACKET_INVALID1_TYPE:
- | ^~~~~~~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1144:28: error: ‘payload’ undeclared (first use in this function)
- 1144 | const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
- | ^~~~~~~
- ....../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]
- 1144 | const APP_PAYLOAD* payload = mqttmessage_getApplicationMsg(msgHandle);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | mqttmessage_getIsDuplicateMsg
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1155:13: error: unknown type name ‘QOS_VALUE’
- 1155 | QOS_VALUE qos = mqttmessage_getQosType(msgHandle);
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1088:30: error: ‘PACKET_INVALID2_TYPE’ undeclared (first use in this function)
- 1088 | case PACKET_INVALID2_TYPE:
- | ^~~~~~~~~~~~~~~~~~~~
- [ 40%] Building C object provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_attestation_mechanism.c.o
- ....../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]
- 1160 | BUFFER_HANDLE publishPacket = mqtt_codec_publish(qos, isDuplicate, isRetained, packetId, topicName, payload->message, payload->length, trace_log);
- | ^~~~~~~~~~~~~~~~~~
- | mqtt_codec_publishAck
- 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
- /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
- ....../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’?
- 1093 | case CONNECT_TYPE:
- | ^~~~~~~~~~~~
- | CONNECT_ACK
- ....../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’?
- 1169 | mqtt_client->packetState = PUBLISH_TYPE;
- | ^~~~~~~~~~~~
- | PUBLISH_ACK
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1094:30: error: ‘CONNACK_TYPE’ undeclared (first use in this function)
- 1094 | case CONNACK_TYPE:
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_subscribe’:
- ....../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’?
- 1218 | mqtt_client->packetState = SUBSCRIBE_TYPE;
- | ^~~~~~~~~~~~~~
- | SUBSCRIBE_ACK
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1095:30: error: ‘PUBACK_TYPE’ undeclared (first use in this function)
- 1095 | case PUBACK_TYPE:
- | ^~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_unsubscribe’:
- ....../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’?
- 1266 | mqtt_client->packetState = UNSUBSCRIBE_TYPE;
- | ^~~~~~~~~~~~~~~~
- | UNSUBSCRIBE_ACK
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1096:30: error: ‘PUBREC_TYPE’ undeclared (first use in this function)
- 1096 | case PUBREC_TYPE:
- | ^~~~~~~~~~~
- [ 40%] Building C object provisioning_service_client/CMakeFiles/provisioning_service_client.dir/src/provisioning_sc_bulk_operation.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: At top level:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1291:85: error: unknown type name ‘QOS_VALUE’
- 1291 | int mqtt_client_send_message_response(MQTT_CLIENT_HANDLE handle, uint16_t packetId, QOS_VALUE qosValue)
- | ^~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1097:30: error: ‘PUBCOMP_TYPE’ undeclared (first use in this function)
- 1097 | case PUBCOMP_TYPE:
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1098:30: error: ‘SUBACK_TYPE’ undeclared (first use in this function)
- 1098 | case SUBACK_TYPE:
- | ^~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_disconnect’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1328:44: error: ‘PACKET_TYPE_ERROR’ undeclared (first use in this function)
- 1328 | mqtt_client->packetState = PACKET_TYPE_ERROR;
- | ^~~~~~~~~~~~~~~~~
- [ 40%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_receiver.c.o
- 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
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1099:30: error: ‘UNSUBACK_TYPE’ undeclared (first use in this function)
- 1099 | case UNSUBACK_TYPE:
- | ^~~~~~~~~~~~~
- /usr/bin/ranlib libutpm.a
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1336:44: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
- 1336 | mqtt_client->packetState = DISCONNECT_TYPE;
- | ^~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1100:30: error: ‘PINGREQ_TYPE’ undeclared (first use in this function)
- 1100 | case PINGREQ_TYPE:
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c: In function ‘mqtt_client_dowork’:
- ....../azure-iot-sdk-c/umqtt/src/mqtt_client.c:1411:52: error: ‘UNKNOWN_TYPE’ undeclared (first use in this function)
- 1411 | mqtt_client->packetState = UNKNOWN_TYPE;
- | ^~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1101:30: error: ‘PINGRESP_TYPE’ undeclared (first use in this function)
- 1101 | case PINGRESP_TYPE:
- | ^~~~~~~~~~~~~
- cc1: all warnings being treated as errors
- make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:79: umqtt/CMakeFiles/umqtt.dir/src/mqtt_client.c.o] Error 1
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1102:30: error: ‘DISCONNECT_TYPE’ undeclared (first use in this function)
- 1102 | case DISCONNECT_TYPE:
- | ^~~~~~~~~~~~~~~
- ....../azure-iot-sdk-c/umqtt/src/mqtt_codec.c:1110:30: error: ‘PUBREL_TYPE’ undeclared (first use in this function)
- 1110 | case PUBREL_TYPE:
- | ^~~~~~~~~~~
- [ 40%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_sender.c.o
- 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
- ....../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’?
- 1111 | case SUBSCRIBE_TYPE:
- | ^~~~~~~~~~~~~~
- | SUBSCRIBE_ACK
- make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
- ....../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’?
- 1112 | case UNSUBSCRIBE_TYPE:
- | ^~~~~~~~~~~~~~~~
- | UNSUBSCRIBE_ACK
- ....../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’?
- 1120 | case PUBLISH_TYPE:
- | ^~~~~~~~~~~~
- | PUBLISH_ACK
- [ 40%] Built target utpm
- ....../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’?
- 1121 | case CONTROL_PACKET_TYPE_INVALID:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- | CONTROL_PACKET_TYPE_VALUES
- cc1: all warnings being treated as errors
- make[2]: *** [umqtt/CMakeFiles/umqtt.dir/build.make:93: umqtt/CMakeFiles/umqtt.dir/src/mqtt_codec.c.o] Error 1
- make[2]: Leaving directory '....../azure-iot-sdk-c/build_22.04'
- make[1]: *** [CMakeFiles/Makefile2:2202: umqtt/CMakeFiles/umqtt.dir/all] Error 2
- make[1]: *** Waiting for unfinished jobs....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement