-
Notifications
You must be signed in to change notification settings - Fork 154
Description
Tried on my Raspberry Pi (32Bit) running Raspbian stretch and a Laptop (64Bit) running Ubuntu 16.04, I haven't changed any source files and on both devices make server terminates with these errors,
************ LINUX VERSION ************
g++ -c -std=c++11 -Wall -funsigned-char -Wno-write-strings -Wno-char-subscripts -Wno-strict-aliasing -DLOCKUSERFILE=1 -DEVSERVER=1 -DEVSERVER_FORK=1 -DDISCARDPOSTGRES=1 -DDISCARDMONGO=1 -DDISCARDMYSQL=1 -Ievserver json.cpp -o json.o
json.cpp: In function ‘bool ConvertUnicode(char*)’:
json.cpp:189:7: warning: unused variable ‘len’ [-Wunused-variable]
int len = 0;
^
json.cpp: At global scope:
json.cpp:476:21: error: ‘CURL’ was not declared in this scope
static int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp)
^
json.cpp:476:27: error: ‘handle’ was not declared in this scope
static int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp)
^
json.cpp:476:35: error: ‘curl_infotype’ was not declared in this scope
static int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp)
^
json.cpp:476:55: error: expected primary-expression before ‘char’
static int my_trace(CURL *handle, curl_infotype type, char data, size_t size, void userp)
^
json.cpp:476:74: error: expected primary-expression before ‘size’
static int my_trace(CURL handle, curl_infotype type, char data, size_t size, void userp)
^
json.cpp:476:80: error: expected primary-expression before ‘void’
static int my_trace(CURL handle, curl_infotype type, char data, size_t size, void userp)
^
json.cpp:476:91: error: expression list treated as compound expression in initializer [-fpermissive]
static int my_trace(CURL handle, curl_infotype type, char data, size_t size, void userp)
^
json.cpp:477:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
json.cpp:23:13: warning: ‘curl_done_init’ defined but not used [-Wunused-variable]
static bool curl_done_init = false;
^
json.cpp:37:14: warning: ‘curlBufferBase’ defined but not used [-Wunused-variable]
static char curlBufferBase = NULL;
^
json.cpp:39:23: warning: ‘FunctionResult JSONpath(char, char, char, bool, bool)’ declared ‘static’ but never defined [-Wunused-function]
static FunctionResult JSONpath(char buffer, char path, char jsonstructure,bool raw,bool nofail);
^
json.cpp:40:16: warning: ‘MEANING jcopy(WORDP)’ declared ‘static’ but never defined [-Wunused-function]
static MEANING jcopy(WORDP D);
^
json.cpp:50:12: warning: ‘int JSONArgs()’ defined but not used [-Wunused-function]
static int JSONArgs()
^
json.cpp:371:13: warning: ‘void dump(const char, FILE, unsigned char, size_t)’ defined but not used [-Wunused-function]
static void dump(const char text, FILE stream, unsigned char ptr, size_t size) // libcurl callback when verbose is on
^
json.cpp:452:12: warning: ‘int EncodingValue(char, char, int)’ defined but not used [-Wunused-function]
static int EncodingValue(char name, char field, int value)
^
json.cpp:476:12: warning: ‘my_trace’ defined but not used [-Wunused-variable]
static int my_trace(CURL *handle, curl_infotype type, char *data, size_t size, void *userp)
^
Makefile:166: recipe for target 'json.o' failed
make: *** [json.o] Error 1