From Sweltering Duck, 5 Years ago, written in Plain Text.
- view diff
Embed
  1. app@deb92:~/blade/switchblade$ make
  2. Scanning dependencies of target switchblade
  3. [ 50%] Building C object CMakeFiles/switchblade.dir/src/switchblade.c.o
  4. /home/app/blade/switchblade/src/switchblade.c: In function ‘onpushresponse’:
  5. /home/app/blade/switchblade/src/switchblade.c:35:2: error: unknown type name ‘cJSON’
  6.   cJSON *args = cJSON_CreateArray();
  7.   ^~~~~
  8. /home/app/blade/switchblade/src/switchblade.c:35:2: note: use ‘struct’ keyword to refer to the type
  9. /home/app/blade/switchblade/src/switchblade.c:35:16: warning: implicit declaration of function ‘cJSON_CreateArray’ [-Wimplicit-function-declaration]
  10.   cJSON *args = cJSON_CreateArray();
  11.                 ^~~~~~~~~~~~~~~~~
  12. /home/app/blade/switchblade/src/switchblade.c:35:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  13. /home/app/blade/switchblade/src/switchblade.c:36:2: error: unknown type name ‘cJSON’
  14.   cJSON *args0 = cJSON_CreateObject();
  15.   ^~~~~
  16. /home/app/blade/switchblade/src/switchblade.c:36:2: note: use ‘struct’ keyword to refer to the type
  17. /home/app/blade/switchblade/src/switchblade.c:36:17: warning: implicit declaration of function ‘cJSON_CreateObject’ [-Wimplicit-function-declaration]
  18.   cJSON *args0 = cJSON_CreateObject();
  19.                  ^~~~~~~~~~~~~~~~~~
  20. /home/app/blade/switchblade/src/switchblade.c:36:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  21. /home/app/blade/switchblade/src/switchblade.c:41:2: warning: implicit declaration of function ‘cJSON_AddStringToObject’ [-Wimplicit-function-declaration]
  22.   cJSON_AddStringToObject(args0, "virtual_id", "12345");
  23.   ^~~~~~~~~~~~~~~~~~~~~~~
  24. /home/app/blade/switchblade/src/switchblade.c:42:2: warning: implicit declaration of function ‘cJSON_AddTrueToObject’ [-Wimplicit-function-declaration]
  25.   cJSON_AddTrueToObject(args0, "register_identity");
  26.   ^~~~~~~~~~~~~~~~~~~~~
  27. /home/app/blade/switchblade/src/switchblade.c:44:2: warning: implicit declaration of function ‘cJSON_AddItemToArray’ [-Wimplicit-function-declaration]
  28.   cJSON_AddItemToArray(args, args0);
  29.   ^~~~~~~~~~~~~~~~~~~~
  30. /home/app/blade/switchblade/src/switchblade.c:46:35: warning: passing argument 3 of ‘ks_faktory_push’ from incompatible pointer type [-Wincompatible-pointer-types]
  31.   ks_faktory_push(faktory, "test", args, NULL, 5, NULL, NULL, onpushresponse, NULL);
  32.                                    ^~~~
  33. In file included from /usr/include/libks/ks.h:95:0,
  34.                  from /usr/include/libblade/blade.h:41,
  35.                  from /home/app/blade/switchblade/src/switchblade.c:1:
  36. /usr/include/libks/ks_faktory.h:57:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
  37.  KS_DECLARE(ks_status_t) ks_faktory_push(ks_faktory_t *faktory, const char *jobtype, ks_json_t *args, const char *queue, int priority, ks_json_t *custom, const char **jidP, ks_faktory_command_callback_t callback, void *data);
  38.                          ^~~~~~~~~~~~~~~
  39. /home/app/blade/switchblade/src/switchblade.c:47:2: warning: implicit declaration of function ‘cJSON_Delete’ [-Wimplicit-function-declaration]
  40.   cJSON_Delete(args);
  41.   ^~~~~~~~~~~~
  42. /home/app/blade/switchblade/src/switchblade.c: In function ‘onproducerstate’:
  43. /home/app/blade/switchblade/src/switchblade.c:55:3: error: unknown type name ‘cJSON’
  44.    cJSON *args = cJSON_CreateArray();
  45.    ^~~~~
  46. /home/app/blade/switchblade/src/switchblade.c:55:3: note: use ‘struct’ keyword to refer to the type
  47. /home/app/blade/switchblade/src/switchblade.c:55:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  48.    cJSON *args = cJSON_CreateArray();
  49.                  ^~~~~~~~~~~~~~~~~
  50. /home/app/blade/switchblade/src/switchblade.c:56:3: error: unknown type name ‘cJSON’
  51.    cJSON *args0 = cJSON_CreateObject();
  52.    ^~~~~
  53. /home/app/blade/switchblade/src/switchblade.c:56:3: note: use ‘struct’ keyword to refer to the type
  54. /home/app/blade/switchblade/src/switchblade.c:56:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  55.    cJSON *args0 = cJSON_CreateObject();
  56.                   ^~~~~~~~~~~~~~~~~~
  57. /home/app/blade/switchblade/src/switchblade.c:62:36: warning: passing argument 3 of ‘ks_faktory_push’ from incompatible pointer type [-Wincompatible-pointer-types]
  58.    ks_faktory_push(faktory, "test", args, NULL, 0, NULL, NULL, onpushresponse, NULL);
  59.                                     ^~~~
  60. In file included from /usr/include/libks/ks.h:95:0,
  61.                  from /usr/include/libblade/blade.h:41,
  62.                  from /home/app/blade/switchblade/src/switchblade.c:1:
  63. /usr/include/libks/ks_faktory.h:57:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
  64.  KS_DECLARE(ks_status_t) ks_faktory_push(ks_faktory_t *faktory, const char *jobtype, ks_json_t *args, const char *queue, int priority, ks_json_t *custom, const char **jidP, ks_faktory_command_callback_t callback, void *data);
  65.                          ^~~~~~~~~~~~~~~
  66. /home/app/blade/switchblade/src/switchblade.c: In function ‘main’:
  67. /home/app/blade/switchblade/src/switchblade.c:174:2: error: too many arguments to function ‘blade_shutdown’
  68.   blade_shutdown(KS_TRUE);
  69.   ^~~~~~~~~~~~~~
  70. In file included from /home/app/blade/switchblade/src/switchblade.c:1:0:
  71. /usr/include/libblade/blade.h:86:25: note: declared here
  72.  BD_DECLARE(ks_status_t) blade_shutdown(void);
  73.                          ^~~~~~~~~~~~~~
  74. /home/app/blade/switchblade/src/switchblade.c: In function ‘command_list’:
  75. /home/app/blade/switchblade/src/switchblade.c:264:2: error: unknown type name ‘cJSON’
  76.   cJSON *sessions = NULL;
  77.   ^~~~~
  78. /home/app/blade/switchblade/src/switchblade.c:264:2: note: use ‘struct’ keyword to refer to the type
  79. /home/app/blade/switchblade/src/switchblade.c:269:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  80.   sessions = blade_sessionmgr_sessions_pack(blade_handle_sessionmgr_get(bh));
  81.            ^
  82. /home/app/blade/switchblade/src/switchblade.c:270:2: warning: implicit declaration of function ‘JSON_PRINT’ [-Wimplicit-function-declaration]
  83.   JSON_PRINT("Sessions", sessions);
  84.   ^~~~~~~~~~
  85. /home/app/blade/switchblade/src/switchblade.c: In function ‘rest_service_test’:
  86. /home/app/blade/switchblade/src/switchblade.c:279:2: error: unknown type name ‘cJSON’
  87.   cJSON *json = NULL;
  88.   ^~~~~
  89. /home/app/blade/switchblade/src/switchblade.c:279:2: note: use ‘struct’ keyword to refer to the type
  90. /home/app/blade/switchblade/src/switchblade.c:280:2: error: unknown type name ‘cJSON’
  91.   cJSON *json_captures = NULL;
  92.   ^~~~~
  93. /home/app/blade/switchblade/src/switchblade.c:280:2: note: use ‘struct’ keyword to refer to the type
  94. /home/app/blade/switchblade/src/switchblade.c:286:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  95.   json = cJSON_CreateObject();
  96.        ^
  97. /home/app/blade/switchblade/src/switchblade.c:288:2: warning: implicit declaration of function ‘cJSON_AddItemToObject’ [-Wimplicit-function-declaration]
  98.   cJSON_AddItemToObject(json, "captures", (json_captures = cJSON_CreateArray()));
  99.   ^~~~~~~~~~~~~~~~~~~~~
  100. /home/app/blade/switchblade/src/switchblade.c:288:57: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  101.   cJSON_AddItemToObject(json, "captures", (json_captures = cJSON_CreateArray()));
  102.                                                          ^
  103. /home/app/blade/switchblade/src/switchblade.c:289:72: warning: implicit declaration of function ‘cJSON_CreateString’ [-Wimplicit-function-declaration]
  104.   for (int i = 0; captures[i]; ++i) cJSON_AddItemToArray(json_captures, cJSON_CreateString(captures[i]));
  105.                                                                         ^~~~~~~~~~~~~~~~~~
  106. /home/app/blade/switchblade/src/switchblade.c:292:50: warning: passing argument 2 of ‘blade_webresponse_content_json_append’ from incompatible pointer type [-Wincompatible-pointer-types]
  107.   blade_webresponse_content_json_append(response, json);
  108.                                                   ^~~~
  109. In file included from /usr/include/libblade/blade.h:55:0,
  110.                  from /home/app/blade/switchblade/src/switchblade.c:1:
  111. /usr/include/libblade/blade_web.h:62:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
  112.  BD_DECLARE(ks_status_t) blade_webresponse_content_json_append(blade_webresponse_t *bwres, ks_json_t *json);
  113.                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. CMakeFiles/switchblade.dir/build.make:62: recipe for target 'CMakeFiles/switchblade.dir/src/switchblade.c.o' failed
  115. make[2]: *** [CMakeFiles/switchblade.dir/src/switchblade.c.o] Error 1
  116. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/switchblade.dir/all' failed
  117. make[1]: *** [CMakeFiles/switchblade.dir/all] Error 2
  118. Makefile:83: recipe for target 'all' failed
  119. make: *** [all] Error 2