Uploaded image for project: 'IoTivity-Lite'
  1. IoTivity-Lite
  2. LITE-56

CertificationApp have errors on build related to cloud

    Details

    • Type: Bug
    • Status: Done
    • Priority: P1
    • Resolution: Done
    • Component/s: application layer
    • Labels:
      None
    • Found in Version/s:
      master + CertificationApp patch 27
    • Operating System:
      Ubuntu
    • Issue Severity:
      Normal
    • Reproducibility:
      Always (100%)
    • Bugzilla ID:
      None

      Description

      When I try to build IoTivityLite master + https://gerrit.iotivity.org/gerrit/c/iotivity-lite/+/29300 in dir port/linux, I receive errors:

      ../../apps/CertificationApp.c: In function ‘cloud_refresh_token’:
      ../../apps/CertificationApp.c:217:41: error: passing argument 2 of ‘oc_cloud_refresh_token’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         int ret = oc_cloud_refresh_token(ctx, cloud_refresh_token_cb, ctx);
                                               ^
      In file included from ../../include/oc_api.h:34:0,
                       from ../../apps/CertificationApp.c:28:
      ../../include/oc_cloud.h:111:5: note: expected ‘oc_cloud_cb_t {aka void (*)(struct oc_cloud_context_t *, enum <anonymous>,  void *)}’ but argument is of type ‘void (*)(oc_cloud_status_t,  void *) {aka void (*)(enum <anonymous>,  void *)}’
       int oc_cloud_refresh_token(oc_cloud_context_t *ctx, oc_cloud_cb_t cb,
           ^
      ../../apps/CertificationApp.c: In function ‘cloud_deregister’:
      ../../apps/CertificationApp.c:264:38: error: passing argument 2 of ‘oc_cloud_deregister’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         int ret = oc_cloud_deregister(ctx, cloud_deregister_cb, ctx);
                                            ^
      In file included from ../../include/oc_api.h:34:0,
                       from ../../apps/CertificationApp.c:28:
      ../../include/oc_cloud.h:110:5: note: expected ‘oc_cloud_cb_t {aka void (*)(struct oc_cloud_context_t *, enum <anonymous>,  void *)}’ but argument is of type ‘void (*)(oc_cloud_status_t,  void *) {aka void (*)(enum <anonymous>,  void *)}’
       int oc_cloud_deregister(oc_cloud_context_t *ctx, oc_cloud_cb_t cb, void *data);
           ^
      ../../apps/CertificationApp.c: In function ‘cloud_logout’:
      ../../apps/CertificationApp.c:308:34: error: passing argument 2 of ‘oc_cloud_logout’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         int ret = oc_cloud_logout(ctx, cloud_logout_cb, ctx);
                                        ^
      In file included from ../../include/oc_api.h:34:0,
                       from ../../apps/CertificationApp.c:28:
      ../../include/oc_cloud.h:109:5: note: expected ‘oc_cloud_cb_t {aka void (*)(struct oc_cloud_context_t *, enum <anonymous>,  void *)}’ but argument is of type ‘void (*)(oc_cloud_status_t,  void *) {aka void (*)(enum <anonymous>,  void *)}’
       int oc_cloud_logout(oc_cloud_context_t *ctx, oc_cloud_cb_t cb, void *data);
           ^
      ../../apps/CertificationApp.c: In function ‘cloud_login’:
      ../../apps/CertificationApp.c:349:33: error: passing argument 2 of ‘oc_cloud_login’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         int ret = oc_cloud_login(ctx, cloud_login_cb, ctx);
                                       ^
      In file included from ../../include/oc_api.h:34:0,
                       from ../../apps/CertificationApp.c:28:
      ../../include/oc_cloud.h:108:5: note: expected ‘oc_cloud_cb_t {aka void (*)(struct oc_cloud_context_t *, enum <anonymous>,  void *)}’ but argument is of type ‘void (*)(oc_cloud_status_t,  void *) {aka void (*)(enum <anonymous>,  void *)}’
       int oc_cloud_login(oc_cloud_context_t *ctx, oc_cloud_cb_t cb, void *data);
           ^
      ../../apps/CertificationApp.c: In function ‘cloud_register’:
      ../../apps/CertificationApp.c:387:36: error: passing argument 2 of ‘oc_cloud_register’ from incompatible pointer type [-Werror=incompatible-pointer-types]
         int ret = oc_cloud_register(ctx, cloud_register_cb, ctx);
                                          ^
      In file included from ../../include/oc_api.h:34:0,
                       from ../../apps/CertificationApp.c:28:
      ../../include/oc_cloud.h:107:5: note: expected ‘oc_cloud_cb_t {aka void (*)(struct oc_cloud_context_t *, enum <anonymous>,  void *)}’ but argument is of type ‘void (*)(oc_cloud_status_t,  void *) {aka void (*)(enum <anonymous>,  void *)}’
       int oc_cloud_register(oc_cloud_context_t *ctx, oc_cloud_cb_t cb, void *data);
           ^
      cc1: all warnings being treated as errors
      Makefile:346: recipe for target 'CertificationApp' failed
      make: *** [CertificationApp] Error 1
      

      Build command: make -f Makefile TCP=1

        Attachments

          Activity

            People

            • Assignee:
              sankarselvam Sankar Selvam
              Reporter:
              michal.wieckowski Michal Wieckowski
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: