ARMmbed / mbed-client-linux-example

DEPRECATED: mbed Client example program for Linux platform
https://cloud.mbed.com/docs/current
Other
2 stars 0 forks source link

mbed linux example build fails #39

Closed rajbatra closed 8 years ago

rajbatra commented 8 years ago

-- Configuring done -- Generating done -- Build files have been written to: /home/pradeep/mbed-client-linux-example/build/x86-linux-native [1/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c.o [2/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c.o [3/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c.o [4/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c.o [5/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c.o [6/108] Building C object ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c.o FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_parser.c:30: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c In file included from /usr/include/features.h:367:0, from /usr/include/string.h:25, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_builder.c:30: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:31: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ In file included from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:27:0, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:42: /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_protocol_clear_retransmission_buffer’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:501:20: note: in expansion of macro ‘ns_list_get_first’ for (type e = ns_list_get_first(list), _next##e; \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:300:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, tmp, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:300:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, tmp, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:300:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, tmp, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:300:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, tmp, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:37: note: in expansion of macro ‘NS_LISTOFFSET’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:321:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->linked_list_resent_msgs, tmp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:60: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:321:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->linked_list_resent_msgs, tmp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_protocol_exec’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:501:20: note: in expansion of macro ‘ns_list_get_first’ for (type e = ns_list_get_first(list), _next##e; \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:728:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:728:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:728:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:728:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_protocol_linked_list_send_msg_store’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:334:41: note: in expansion of macro ‘NS_LISTOFFSET’ ns_list_add_toend(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:855:5: note: in expansion of macro ‘ns_list_add_to_end’ ns_list_add_to_end(&handle->linked_list_resent_msgs, stored_msg_ptr); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:334:64: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_list_add_toend(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:855:5: note: in expansion of macro ‘ns_list_add_to_end’ ns_list_add_to_end(&handle->linked_list_resent_msgs, stored_msg_ptr); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_protocol_linked_list_send_msg_search’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:876:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:876:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:876:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:876:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_protocol_linked_list_send_msg_remove’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:909:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:909:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:909:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:909:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, &handle->linked_list_resent_msgs) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:37: note: in expansion of macro ‘NS_LISTOFFSET’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:923:21: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->linked_list_resent_msgs, stored_msg_ptr); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:60: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:923:21: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->linked_list_resent_msgs, stored_msg_ptr); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c: In function ‘sn_coap_count_linked_list_size’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka const union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:1455:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, linked_list_ptr) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘coap_send_msg_list_t {aka const union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:1455:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, linked_list_ptr) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘coap_send_msg_list_t {aka const union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:1455:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, linked_list_ptr) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘coap_send_msg_list_t {aka const union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_protocol.c:1455:5: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(coap_send_msg_s, stored_msg_ptr, linked_list_ptr) { ^ FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c In file included from /usr/include/features.h:367:0, from /usr/include/inttypes.h:25, from /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:57, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/sn_coap_header_check.c:27: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c In file included from /usr/include/features.h:367:0, from /usr/include/string.h:25, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:24: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include/sn_grs.h:49:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(sn_nsdl_resource_info_s, link) resource_list_t; ^ In file included from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:27:0: /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_destroy’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:501:20: note: in expansion of macro ‘ns_list_get_first’ for (type e = ns_list_get_first(list), _next##e; \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:62:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(sn_nsdl_resource_info_s, tmp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:62:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(sn_nsdl_resource_info_s, tmp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:62:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(sn_nsdl_resource_info_s, tmp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:502:26: note: in expansion of macro ‘ns_list_get_next’ e && (_next##e = ns_list_get_next(list, e), true); e = _next##e) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:62:5: note: in expansion of macro ‘ns_list_foreach_safe’ ns_list_foreach_safe(sn_nsdl_resource_info_s, tmp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:37: note: in expansion of macro ‘NS_LISTOFFSET’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:63:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->resource_root_list, tmp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:60: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:63:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->resource_root_list, tmp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_list_resource’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:186:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, grs_resource_ptr, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:186:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, grs_resource_ptr, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:186:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, grs_resource_ptr, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:186:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, grs_resource_ptr, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_get_first_resource’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:234:12: note: in expansion of macro ‘ns_list_get_first’ return ns_list_get_first(&handle->resource_root_list); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_get_next_resource’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:242:12: note: in expansion of macro ‘ns_list_get_next’ return ns_list_get_next(&handle->resource_root_list, sn_grs_current_resource); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:242:12: note: in expansion of macro ‘ns_list_get_next’ return ns_list_get_next(&handle->resource_root_list, sn_grs_current_resource); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:242:12: note: in expansion of macro ‘ns_list_get_next’ return ns_list_get_next(&handle->resource_root_list, sn_grs_current_resource); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_delete_resource’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:37: note: in expansion of macro ‘NS_LISTOFFSET’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:261:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->resource_root_list, resource_temp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:411:60: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_listremove(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:261:9: note: in expansion of macro ‘ns_list_remove’ ns_list_remove(&handle->resource_root_list, resource_temp); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_search_resource’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:753:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:753:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:753:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:753:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:371:33: note: in expansion of macro ‘NS_LISTTYPECAST

define ns_list_get_first(list) NS_LISTTYPECAST(list, (list)->slist.first_entry)

                             ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:20: note: in expansion of macro ‘ns_list_get_first’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:766:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:167:50: error: ‘resource_list_t {aka union }’ has no member named ‘type’

define NS_LIST_PTRTYPE(list) typeof((list)->type)

                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:40: note: in expansion of macro ‘NS_LIST_PTRTYPE

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                    ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:5: note: in expansion of macro ‘NS_LISTTYPECAST’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:766:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:47: note: in expansion of macro ‘NS_LISTOFFSET’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:766:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:195:66: note: in definition of macro ‘NS_LISTTYPECAST

define NS_LISTTYPECAST(list, val) ((NS_LIST_PTRTYPE(list)) (val))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:6: note: in expansion of macro ‘NS_PTRMATCH’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:393:70: note: in expansion of macro ‘NS_LISTTYPECHECK’ NS_LISTTYPECAST(list, ns_list_getnext(NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, current))) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:481:52: note: in expansion of macro ‘ns_list_get_next’ for (type *e = ns_list_get_first(list); e; e = ns_list_get_next(list, e)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:766:9: note: in expansion of macro ‘ns_list_foreach’ ns_list_foreach(sn_nsdl_resource_info_s, resource_search_temp, &handle->resource_root_list) { ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c: In function ‘sn_grs_add_resource_to_list’: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:155:66: error: ‘resource_list_t {aka union }’ has no member named ‘offset’

define NS_LISTOFFSET(list) ((ns_list_offset_t) (sizeof *(list)->offset - 1))

                                                              ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:326:43: note: in expansion of macro ‘NS_LISTOFFSET’ ns_list_add_tostart(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:903:5: note: in expansion of macro ‘ns_list_add_to_start’ ns_list_add_to_start(&handle->resource_root_list, resource_copy_ptr); ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:202:26: error: ‘resource_list_t {aka union }’ has no member named ‘type’ (NS_PTRMATCH((list)->type, (entry), "incorrect entry type for list"), (entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:180:51: note: in definition of macro ‘NS_PTRMATCH

define NS_PTRMATCH(a, b, str) ((void) sizeof ((a) == (b)))

                                               ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:326:66: note: in expansion of macro ‘NS_LISTTYPECHECK’ ns_list_add_tostart(&(list)->slist, NS_LISTOFFSET(list), NS_LISTTYPECHECK(list, entry)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_grs.c:903:5: note: in expansion of macro ‘ns_list_add_to_start’ ns_list_add_to_start(&handle->resource_root_list, resource_copy_ptr); ^ FAILED: /usr/bin/cc -DYOTTA_MODULE_NAME=mbed-client-c -I/home/pradeep/mbed-client-linux-example -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-trace -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-linux -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbedtls -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/nsdl-c -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include -I/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice -I/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source -std=c99 -O2 -g -DNDEBUG -include "/home/pradeep/mbed-client-linux-example/build/x86-linux-native/yotta_config.h" -MMD -MT ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c.o -MF ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c.o.d -o ym/mbed-client-c/source/CMakeFiles/mbed-client-c.dir/home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c.o -c /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c In file included from /usr/include/features.h:367:0, from /usr/include/string.h:25, from /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/sn_nsdl.c:23: /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:119:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:136:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_duplication_info_s, link) coap_duplication_info_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:148:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_msg_s, link) coap_blockwise_msg_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libCoap/src/include/sn_coap_protocol_internal.h:165:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(coap_blockwise_payload_s, link) coap_blockwise_payload_list_t; ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_types.h:215:52: error: expected specifier-qualifier-list before ‘extern’

define NS_STATIC_ASSERT(test, str) extension _Static_assert(test, str);

                                                ^

/home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:147:5: note: in expansion of macro ‘NS_STATIC_ASSERT’ NS_STATIC_ASSERT(link_offset <= UINT_FAST8_MAX, "link offset too large") \ ^ /home/pradeep/mbed-client-linux-example/yotta_modules/nanostack-libservice/mbed-client-libservice/ns_list.h:120:5: note: in expansion of macro ‘NS_LIST_HEAD_BYOFFSET’ NS_LIST_HEAD_BYOFFSET(entry_type, offsetof(entry_type, field)) ^ /home/pradeep/mbed-client-linux-example/yotta_modules/mbed-client-c/source/libNsdl/src/include/sn_grs.h:49:9: note: in expansion of macro ‘NS_LIST_HEAD’ typedef NS_LIST_HEAD(sn_nsdl_resource_info_s, link) resource_list_t; ^ ninja: build stopped: subcommand failed.

ciarmcom commented 8 years ago

ARM Internal Ref: IOTCLT-676

teetak01 commented 8 years ago

Hi @rajbatra . Can you give some information about your build environment. Do you have the newest version of mbed-client-linux-example and newest yotta-modules?

Could you try these to check if everything is up to date?

rm -rf yotta_modules yt clean git pull yt build

rajbatra commented 8 years ago

Hi

I did the same as suggested but still no changes it remains the same. Also sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa sudo apt-get update

install:

sudo apt-get install gcc-arm-embed the following doesnot work ubuntu throws the error unable to locate package have to install gcc-arm-none-eabi

Thanks

rajbatra commented 8 years ago

Hi @ciarmcom What does ARM Internal Ref: IOTCLT-676 mean ?? Regards

rajbatra commented 8 years ago

Hi @teetak01 Can you give me a hint what might be the error after looking at the logs as per my understanding from the logs i suspect some dependent header files missing from the modules.

Regards

teetak01 commented 8 years ago

@rajbatra that is notification from our automated system. It creates an internal ticket.

You do not need cross-compilers for the linux-example, only if you would try to build our mbed-client-quickstart example.

You installed all this components? http://yottadocs.mbed.com/#installing-on-linux

What does it print for you in start of the compilation? I get clean build and these are detected:

info: generate for target: x86-linux-native 1.0.0 at /home/teetak01/dev/mbed-client-linux-example/yotta_targets/x86-linux-native -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/teetak01/dev/mbed-client-linux-example/build/x86-linux-native [126/126] Linking CXX executable source/mbed-client-linux-example

rajbatra commented 8 years ago

Hi

I get the following logs after doing a clean rebuild -- The C compiler identification is GNU 5.3.1 -- The CXX compiler identification is GNU 5.3.1 -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/pradeep/mbed-client-linux-example/build/x86-linux-native Regards

teetak01 commented 8 years ago

Hmm, tricky. Maybe you could try cloning a new repo and build that in case there is something badly broken.

git clone git@github.com:ARMmbed/mbed-client-linux-example.git yt target x86-linux-native (the security.h does not affect the build-process) yt build

Also check that yotta is up to date (should be 0.16.2. or newer), ninja´should be 1.3.4. I am presuming that you are using Ubuntu 14.04.

Gcc version should not affect, it build fine for me also with GNU 5.3.0

rajbatra commented 8 years ago

Hi

Also if it is any relevant my kernel version is 4.4.0-15-generic and i am using ubuntu 16.04 Regards

teetak01 commented 8 years ago

Hmm, I might have to install Ubuntu 16.04 for comparison and see if there is some major difference in build tools.

rajbatra commented 8 years ago

Hi my ninja is at version 1.5.1 and yotta at 0.16.2 i tried cloning the repository again but still the same build errors i will try installing ubuntu 14.04 at my end and test can you please give the compiled binary so that we can at least see how the demo works at our end

Regards

rajbatra commented 8 years ago

Hi

The compilation got successful over ubuntu 14.04.This seems to be a issue over Ubuntu 16.04

Regards

teetak01 commented 8 years ago

Hi @rajbatra , I also noticed possible compiler-version related problem in our code. I will be investigation and fix that ASAP. Good to know that it works for 14.04 for you.

teetak01 commented 8 years ago

We are officially supporting only GCC < 4.9, so you have found some issue which arises from differences in the newest compilers, but I will still see if it could be easily resolved as I am quite sure others are going to try to build the example application on the newer Ubuntu-systems.

rajbatra commented 8 years ago

hi

Can you please tell me how to open a UDP port. Do i need to do it manually or its taken care in example. because i am continously getting Error occured : M2MInterface::NetworkError even though i have edited the security.h properly. also i found a work around in one of issues registered of changing coap://api.connector.mbed.com:5684 to hard coded IP but unfortunately that also doesnot work for me.

Regards

teetak01 commented 8 years ago

NetworkError usually arises from failed security handshake, either security credentials are missing or you do not get response from the Connector.

Should be no need to change the coap address or anything if your linux-machine can ping api.connector.mbed.com. If you are using virtual-machine, switch to Bridged-mode for the networking.

Only two things you really should need to do is:

Add the security.h file to under /source/ check that you have access to PORT 5684 (company firewall may block that, for ex.)

You can also switch to TCP by this change: M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP; => M2MInterface::BindingMode SOCKET_MODE = M2MInterface::TCP;

rajbatra commented 8 years ago

Hi

The issue was our coorperate firewall. Its working fine now Thanks for the help Regards

teetak01 commented 8 years ago

Hi @rajbatra this issue is now fix also with newer build environments. I'll close this ticket, but feel free to open a new one if you detect any issues.