[ config.h : config.status ] ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands g++ -g -O -L/usr/lib64/mysql -lmysqlclient -I/usr/include/mysql -c -o moosql.o moosql.cc In file included from my-stdio.h:21:0, from structures.h:24, from numbers.h:19, from moosql.h:18, from moosql.cc:14: config.h:262:0: warning: "INT32_MAX" redefined # define INT32_MAX INT_MAX ^ In file included from /usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h:9:0, from structures.h:22, from numbers.h:19, from moosql.h:18, from moosql.cc:14: /usr/include/stdint.h:162:0: note: this is the location of the previous definition # define INT32_MAX (2147483647) ^ In file included from moosql.h:24:0, from moosql.cc:14: yajl_parse.h:98:29: error: ‘yajl_tok’ has not been declared yajl_tok tok); ^ In file included from moosql.cc:14:0: moosql.h:62:3: error: ‘mode_type’ does not name a type mode_type json_mode; ^ moosql.cc: In function ‘MYSQL_CONN* newSqlConn()’: moosql.cc:64:33: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null] wrapper->field_flags[i] = NULL; ^ moosql.cc: In function ‘int do_mysql_connect(MYSQL_CONN*, const char*, const char*, const char*, const char*, unsigned int, const char*, unsigned int, char*)’: moosql.cc:154:10: error: ‘MYSQL_CONN {aka struct MYSQL_CONN}’ has no member named ‘json_mode’ wrapper->json_mode = MODE_EMBEDDED_TYPES; ^ moosql.cc:154:22: error: ‘MODE_EMBEDDED_TYPES’ was not declared in this scope wrapper->json_mode = MODE_EMBEDDED_TYPES; ^ moosql.cc: In function ‘void produceRowValue(MYSQL_CONN*, char** const*, int, Var*)’: moosql.cc:255:73: error: ‘parse_float’ was not declared in this scope int ok = parse_float((const char*)row[i], valPtr->v.fnum); ^ moosql.cc:265:48: error: ‘parse_number’ was not declared in this scope int ok = parse_number(str, f, 0); ^ moosql.cc:285:38: error: aggregate ‘produceRowValue(MYSQL_CONN*, char** const*, int, Var*)::parse_context pctx’ has incomplete type and cannot be defined struct parse_context pctx; ^ moosql.cc:289:38: error: ‘MYSQL_CONN {aka struct MYSQL_CONN}’ has no member named ‘json_mode’ pctx.mode = wrapper->json_mode; ^ moosql.cc:290:36: error: ‘callbacks’ was not declared in this scope hand = yajl_alloc(&callbacks, &cfg, NULL, (void *) &pctx); ^ moosql.cc:307:49: error: ‘POP’ was not declared in this scope v = POP(pctx.top); ^ moosql.cc:312:45: error: ‘POP’ was not declared in this scope v = POP(pctx.top); ^ moosql.cc: In function ‘int compare_options(Var, Var, void*, int)’: moosql.cc:426:26: error: ‘MYSQL_CONN {aka struct MYSQL_CONN}’ has no member named ‘json_mode’ wrapper->json_mode = MODE_EMBEDDED_TYPES; ^ moosql.cc:426:38: error: ‘MODE_EMBEDDED_TYPES’ was not declared in this scope wrapper->json_mode = MODE_EMBEDDED_TYPES; ^ moosql.cc:428:26: error: ‘MYSQL_CONN {aka struct MYSQL_CONN}’ has no member named ‘json_mode’ wrapper->json_mode = MODE_COMMON_SUBSET; ^ moosql.cc:428:38: error: ‘MODE_COMMON_SUBSET’ was not declared in this scope wrapper->json_mode = MODE_COMMON_SUBSET; ^ moosql.cc: In function ‘Var current_mysql_vars(MYSQL_CONN*, int)’: moosql.cc:519:22: error: ‘MYSQL_CONN {aka struct MYSQL_CONN}’ has no member named ‘json_mode’ switch (wrapper->json_mode) { ^ moosql.cc:520:14: error: ‘MODE_EMBEDDED_TYPES’ was not declared in this scope case MODE_EMBEDDED_TYPES: ^ moosql.cc:523:14: error: ‘MODE_COMMON_SUBSET’ was not declared in this scope case MODE_COMMON_SUBSET: ^ Makefile:130: recipe for target 'moosql.o' failed make: *** [moosql.o] Error 1