[ https://issues.apache.org/jira/browse/MYNEWT-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sheela updated MYNEWT-648: -------------------------- Fix Version/s: v1_1_0_rel > "newt test net/oic" fails when compiling with clang > --------------------------------------------------- > > Key: MYNEWT-648 > URL: https://issues.apache.org/jira/browse/MYNEWT-648 > Project: Mynewt > Issue Type: Bug > Security Level: Public(Viewable by anyone) > Reporter: Aditi Hilbert > Fix For: v1_1_0_rel > > > $ newt test net/oic > Testing package net/oic/test > Compiling encoding/cborattr/src/cborattr.c > Compiling encoding/tinycbor/src/cborerrorstrings.c > <snip> > Compiling net/oic/src/api/oc_server_api.c > In file included from net/oic/src/api/oc_buffer.c:23: > In file included from net/oic/src/messaging/coap/engine.h:38: > In file included from net/oic/src/messaging/coap/observe.h:45: > net/oic/include/oic/oc_ri.h:126:3: error: redefinition of typedef > 'oc_resource_t' is a C11 feature [-Werror,-Wtypedef-redefinition] > } oc_resource_t; > ^ > net/oic/include/oic/oc_ri.h:98:28: note: previous definition is here > typedef struct oc_resource oc_resource_t; > ^ > net/oic/include/oic/oc_ri.h:152:28: error: redefinition of typedef > 'coap_packet_t' is a C11 feature [-Werror,-Wtypedef-redefinition] > typedef struct coap_packet coap_packet_t; > ^ > net/oic/src/messaging/coap/coap.h:227:3: note: previous definition is here > } coap_packet_t; > ^ > In file included from net/oic/src/api/oc_buffer.c:23: > In file included from net/oic/src/messaging/coap/engine.h:39: > In file included from net/oic/src/messaging/coap/separate.h:46: > net/oic/src/messaging/coap/oc_coap.h:30:3: error: redefinition of typedef > 'oc_separate_response_t' is a C11 feature [-Werror,-Wtypedef-redefinition] > } oc_separate_response_t; > ^ > net/oic/include/oic/oc_ri.h:64:37: note: previous definition is here > typedef struct oc_separate_response oc_separate_response_t; > ^ > In file included from net/oic/src/api/oc_buffer.c:23: > In file included from net/oic/src/messaging/coap/engine.h:39: > In file included from net/oic/src/messaging/coap/separate.h:46: > net/oic/src/messaging/coap/oc_coap.h:37:3: error: redefinition of typedef > 'oc_response_buffer_t' is a C11 feature [-Werror,-Wtypedef-redefinition] > } oc_response_buffer_t; > ^ > net/oic/include/oic/oc_ri.h:66:35: note: previous definition is here > typedef struct oc_response_buffer oc_response_buffer_t; > ^ > In file included from net/oic/src/api/oc_buffer.c:23: > In file included from net/oic/src/messaging/coap/engine.h:39: > net/oic/src/messaging/coap/separate.h:67:28: error: redefinition of typedef > 'coap_packet_t' is a C11 feature [-Werror,-Wtypedef-redefinition] > typedef struct coap_packet coap_packet_t; > ^ > net/oic/include/oic/oc_ri.h:152:28: note: previous definition is here > typedef struct coap_packet coap_packet_t; > ^ > 5 errors generated. > Error: Test failure(s): > Passed tests: [] > Failed tests: [net/oic/test] -- This message was sent by Atlassian JIRA (v6.3.15#6346)