- app@deb92:~/blade/switchblade$ make
- Scanning dependencies of target switchblade
- [ 50%] Building C object CMakeFiles/switchblade.dir/src/switchblade.c.o
- /home/app/blade/switchblade/src/switchblade.c: In function ‘onpushresponse’:
- /home/app/blade/switchblade/src/switchblade.c:35:2: error: unknown type name ‘cJSON’
- cJSON *args = cJSON_CreateArray();
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:35:2: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:35:16: warning: implicit declaration of function ‘cJSON_CreateArray’ [-Wimplicit-function-declaration]
- cJSON *args = cJSON_CreateArray();
- ^~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:35:16: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
- /home/app/blade/switchblade/src/switchblade.c:36:2: error: unknown type name ‘cJSON’
- cJSON *args0 = cJSON_CreateObject();
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:36:2: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:36:17: warning: implicit declaration of function ‘cJSON_CreateObject’ [-Wimplicit-function-declaration]
- cJSON *args0 = cJSON_CreateObject();
- ^~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:36:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
- /home/app/blade/switchblade/src/switchblade.c:41:2: warning: implicit declaration of function ‘cJSON_AddStringToObject’ [-Wimplicit-function-declaration]
- cJSON_AddStringToObject(args0, "virtual_id", "12345");
- ^~~~~~~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:42:2: warning: implicit declaration of function ‘cJSON_AddTrueToObject’ [-Wimplicit-function-declaration]
- cJSON_AddTrueToObject(args0, "register_identity");
- ^~~~~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:44:2: warning: implicit declaration of function ‘cJSON_AddItemToArray’ [-Wimplicit-function-declaration]
- cJSON_AddItemToArray(args, args0);
- ^~~~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:46:35: warning: passing argument 3 of ‘ks_faktory_push’ from incompatible pointer type [-Wincompatible-pointer-types]
- ks_faktory_push(faktory, "test", args, NULL, 5, NULL, NULL, onpushresponse, NULL);
- ^~~~
- In file included from /usr/include/libks/ks.h:95:0,
- from /usr/include/libblade/blade.h:41,
- from /home/app/blade/switchblade/src/switchblade.c:1:
- /usr/include/libks/ks_faktory.h:57:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
- 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);
- ^~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:47:2: warning: implicit declaration of function ‘cJSON_Delete’ [-Wimplicit-function-declaration]
- cJSON_Delete(args);
- ^~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c: In function ‘onproducerstate’:
- /home/app/blade/switchblade/src/switchblade.c:55:3: error: unknown type name ‘cJSON’
- cJSON *args = cJSON_CreateArray();
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:55:3: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:55:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
- cJSON *args = cJSON_CreateArray();
- ^~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:56:3: error: unknown type name ‘cJSON’
- cJSON *args0 = cJSON_CreateObject();
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:56:3: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:56:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
- cJSON *args0 = cJSON_CreateObject();
- ^~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:62:36: warning: passing argument 3 of ‘ks_faktory_push’ from incompatible pointer type [-Wincompatible-pointer-types]
- ks_faktory_push(faktory, "test", args, NULL, 0, NULL, NULL, onpushresponse, NULL);
- ^~~~
- In file included from /usr/include/libks/ks.h:95:0,
- from /usr/include/libblade/blade.h:41,
- from /home/app/blade/switchblade/src/switchblade.c:1:
- /usr/include/libks/ks_faktory.h:57:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
- 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);
- ^~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c: In function ‘main’:
- /home/app/blade/switchblade/src/switchblade.c:174:2: error: too many arguments to function ‘blade_shutdown’
- blade_shutdown(KS_TRUE);
- ^~~~~~~~~~~~~~
- In file included from /home/app/blade/switchblade/src/switchblade.c:1:0:
- /usr/include/libblade/blade.h:86:25: note: declared here
- BD_DECLARE(ks_status_t) blade_shutdown(void);
- ^~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c: In function ‘command_list’:
- /home/app/blade/switchblade/src/switchblade.c:264:2: error: unknown type name ‘cJSON’
- cJSON *sessions = NULL;
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:264:2: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:269:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
- sessions = blade_sessionmgr_sessions_pack(blade_handle_sessionmgr_get(bh));
- ^
- /home/app/blade/switchblade/src/switchblade.c:270:2: warning: implicit declaration of function ‘JSON_PRINT’ [-Wimplicit-function-declaration]
- JSON_PRINT("Sessions", sessions);
- ^~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c: In function ‘rest_service_test’:
- /home/app/blade/switchblade/src/switchblade.c:279:2: error: unknown type name ‘cJSON’
- cJSON *json = NULL;
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:279:2: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:280:2: error: unknown type name ‘cJSON’
- cJSON *json_captures = NULL;
- ^~~~~
- /home/app/blade/switchblade/src/switchblade.c:280:2: note: use ‘struct’ keyword to refer to the type
- /home/app/blade/switchblade/src/switchblade.c:286:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
- json = cJSON_CreateObject();
- ^
- /home/app/blade/switchblade/src/switchblade.c:288:2: warning: implicit declaration of function ‘cJSON_AddItemToObject’ [-Wimplicit-function-declaration]
- cJSON_AddItemToObject(json, "captures", (json_captures = cJSON_CreateArray()));
- ^~~~~~~~~~~~~~~~~~~~~
- /home/app/blade/switchblade/src/switchblade.c:288:57: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
- cJSON_AddItemToObject(json, "captures", (json_captures = cJSON_CreateArray()));
- ^
- /home/app/blade/switchblade/src/switchblade.c:289:72: warning: implicit declaration of function ‘cJSON_CreateString’ [-Wimplicit-function-declaration]
- for (int i = 0; captures[i]; ++i) cJSON_AddItemToArray(json_captures, cJSON_CreateString(captures[i]));
- ^~~~~~~~~~~~~~~~~~
- /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]
- blade_webresponse_content_json_append(response, json);
- ^~~~
- In file included from /usr/include/libblade/blade.h:55:0,
- from /home/app/blade/switchblade/src/switchblade.c:1:
- /usr/include/libblade/blade_web.h:62:25: note: expected ‘ks_json_t * {aka struct cJSON *}’ but argument is of type ‘int *’
- BD_DECLARE(ks_status_t) blade_webresponse_content_json_append(blade_webresponse_t *bwres, ks_json_t *json);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CMakeFiles/switchblade.dir/build.make:62: recipe for target 'CMakeFiles/switchblade.dir/src/switchblade.c.o' failed
- make[2]: *** [CMakeFiles/switchblade.dir/src/switchblade.c.o] Error 1
- CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/switchblade.dir/all' failed
- make[1]: *** [CMakeFiles/switchblade.dir/all] Error 2
- Makefile:83: recipe for target 'all' failed
- make: *** [all] Error 2