Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make failure with errors #1

Closed
DianaZhao opened this issue Nov 23, 2022 · 2 comments
Closed

make failure with errors #1

DianaZhao opened this issue Nov 23, 2022 · 2 comments

Comments

@DianaZhao
Copy link

diana@LAPTOP-93BOJ22L:~/workspaces/taos_odbc$ cmake --build debug
[ 2%] Performing update step for 'ex_cjson'
[ 5%] Performing configure step for 'ex_cjson'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/diana/.taos_odbc/cjson/src/ex_cjson-build
[ 8%] Performing build step for 'ex_cjson'
[ 4%] Built target cjson
[ 8%] Built target cJSON_test
[ 13%] Built target unity
[ 17%] Built target readme_examples
[ 22%] Built target cjson_add
[ 26%] Built target parse_array
[ 31%] Built target parse_string
[ 35%] Built target parse_hex4
[ 40%] Built target parse_examples
[ 44%] Built target print_array
[ 48%] Built target minify_tests
[ 53%] Built target misc_tests
[ 57%] Built target parse_value
[ 62%] Built target parse_object
[ 66%] Built target print_string
[ 71%] Built target print_number
[ 75%] Built target parse_number
[ 80%] Built target print_value
[ 84%] Built target print_object
[ 88%] Built target parse_with_opts
[ 93%] Built target compare_tests
[100%] Built target fuzz_main
[ 11%] Performing install step for 'ex_cjson'
[ 4%] Built target cjson
[ 8%] Built target cJSON_test
[ 13%] Built target unity
[ 17%] Built target readme_examples
[ 22%] Built target cjson_add
[ 26%] Built target parse_array
[ 31%] Built target parse_string
[ 35%] Built target parse_hex4
[ 40%] Built target parse_examples
[ 44%] Built target print_array
[ 48%] Built target minify_tests
[ 53%] Built target misc_tests
[ 57%] Built target parse_value
[ 62%] Built target parse_object
[ 66%] Built target print_string
[ 71%] Built target print_number
[ 75%] Built target parse_number
[ 80%] Built target print_value
[ 84%] Built target print_object
[ 88%] Built target parse_with_opts
[ 93%] Built target compare_tests
[100%] Built target fuzz_main
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/diana/.taos_odbc/.install/include/cjson/cJSON.h
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/pkgconfig/libcjson.pc
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/libcjson.so.1.7.15
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/libcjson.so.1
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/libcjson.so
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/cmake/cJSON/cjson.cmake
-- Installing: /home/diana/.taos_odbc/.install/lib/cmake/cJSON/cjson-noconfig.cmake
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/cmake/cJSON/cJSONConfig.cmake
-- Up-to-date: /home/diana/.taos_odbc/.install/lib/cmake/cJSON/cJSONConfigVersion.cmake
[ 13%] Completed 'ex_cjson'
[ 22%] Built target ex_cjson
[ 27%] Built target common_obj
[ 30%] Built target odbc_obj
[ 33%] Built target utils_obj
[ 36%] Building C object src/core/CMakeFiles/core_obj.dir/desc.c.o
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:58:15: error: unknown type name 'setConfRet'
static inline setConfRet call_taos_set_config(const char *file, int line, const char *func, const char *config)
^~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_set_config':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:61:3: error: unknown type name 'setConfRet'
setConfRet r = taos_set_config(config);
^~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:61:18: error: implicit declaration of function 'taos_set_config'; did you mean 'call_taos_set_config'? [-Werror=implicit-function-declaration]
setConfRet r = taos_set_config(config);
^~~~~~~~~~~~~~~
call_taos_set_config
In file included from /home/diana/workspaces/taos_odbc/src/inc/env.h:28,
from /home/diana/workspaces/taos_odbc/src/inc/conn.h:28,
from /home/diana/workspaces/taos_odbc/src/core/internal.h:30,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:78: error: request for member 'retCode' in something not a structure or union
LOGD(file, line, func, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^
/home/diana/workspaces/taos_odbc/src/inc/log.h:32:26: note: in definition of macro 'LOG_IMPL'
fprintf(stderr, fmt, ##VA_ARGS);
^~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:3: note: in expansion of macro 'LOGD'
LOGD(file, line, func, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:101: error: request for member 'retMsg' in something not a structure or union
, line, func, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^

/home/diana/workspaces/taos_odbc/src/inc/log.h:32:26: note: in definition of macro 'LOG_IMPL'
fprintf(stderr, fmt, ##VA_ARGS);
^~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:3: note: in expansion of macro 'LOGD'
LOGD(file, line, func, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:112: error: request for member 'retMsg' in something not a structure or union
unc, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^

/home/diana/workspaces/taos_odbc/src/inc/log.h:32:26: note: in definition of macro 'LOG_IMPL'
fprintf(stderr, fmt, ##VA_ARGS);
^~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:63:3: note: in expansion of macro 'LOGD'
LOGD(file, line, func, "taos_set_config(config:%s) => (%d,%.*s)", config, r.retCode, (int)sizeof(r.retMsg), r.retMsg);
^~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_init':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:70:11: error: void value not ignored as it ought to be
int r = taos_init();
^~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_connect_auth':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:87:16: error: implicit declaration of function 'taos_connect_auth'; did you mean 'call_taos_connect_auth'? [-Werror=implicit-function-declaration]
TAOS *taos = taos_connect_auth(ip, user, auth, db, port);
^~~~~~~~~~~~~~~~~
call_taos_connect_auth
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:87:16: error: initialization of 'TAOS *' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_data_type':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:105:10: error: implicit declaration of function 'taos_data_type'; did you mean 'sql_data_type'? [-Werror=implicit-function-declaration]
return taos_data_type(type);
^~~~~~~~~~~~~~
sql_data_type
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:105:10: error: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Werror=int-conversion]
return taos_data_type(type);
^~~~~~~~~~~~~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_init':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: implicit declaration of function 'taos_stmt_errstr'; did you mean 'taos_errstr'? [-Werror=implicit-function-declaration]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:112:14: note: in expansion of macro 'diag_stmt'
if (!stmt) diag_stmt(stmt);
^~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:112:14: note: in expansion of macro 'diag_stmt'
if (!stmt) diag_stmt(stmt);
^~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_prepare':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:122:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:127:131: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
me_tags(const char *file, int line, const char *func, TAOS_STMT *stmt, const char *name, TAOS_MULTI_BIND *tags)
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_set_tbname':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:139:11: error: implicit declaration of function 'taos_stmt_set_tbname'; did you mean 'call_taos_stmt_set_tbname'? [-Werror=implicit-function-declaration]
int r = taos_stmt_set_tbname(stmt, name);
^~~~~~~~~~~~~~~~~~~~
call_taos_stmt_set_tbname
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:140:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:145:106: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
t call_taos_stmt_set_tags(const char *file, int line, const char *func, TAOS_STMT *stmt, TAOS_MULTI_BIND *tags)
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_set_sub_tbname':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:157:11: error: implicit declaration of function 'taos_stmt_set_sub_tbname'; did you mean 'call_taos_stmt_set_sub_tbname'? [-Werror=implicit-function-declaration]
int r = taos_stmt_set_sub_tbname(stmt, name);
^~~~~~~~~~~~~~~~~~~~~~~~
call_taos_stmt_set_sub_tbname
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:158:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:163:127: error: unknown type name 'TAOS_FIELD_E'; did you mean 'TAOS_FIELD'?
tag_fields(const char *file, int line, const char *func, TAOS_STMT *stmt, int *fieldNum, TAOS_FIELD_E **fields)
^~~~~~~~~~~~
TAOS_FIELD
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:174:127: error: unknown type name 'TAOS_FIELD_E'; did you mean 'TAOS_FIELD'?
col_fields(const char *file, int line, const char *func, TAOS_STMT *stmt, int *fieldNum, TAOS_FIELD_E **fields)
^~~~~~~~~~~~
TAOS_FIELD
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_is_insert':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:188:11: error: implicit declaration of function 'taos_stmt_is_insert'; did you mean 'call_taos_stmt_is_insert'? [-Werror=implicit-function-declaration]
int r = taos_stmt_is_insert(stmt, insert);
^~~~~~~~~~~~~~~~~~~
call_taos_stmt_is_insert
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:189:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_num_params':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:198:11: error: implicit declaration of function 'taos_stmt_num_params'; did you mean 'call_taos_stmt_num_params'? [-Werror=implicit-function-declaration]
int r = taos_stmt_num_params(stmt, nums);
^~~~~~~~~~~~~~~~~~~~
call_taos_stmt_num_params
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:199:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_get_param':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:210:11: error: implicit declaration of function 'taos_stmt_get_param'; did you mean 'taos_stmt_bind_param'? [-Werror=implicit-function-declaration]
int r = taos_stmt_get_param(stmt, idx, type, bytes);
^~~~~~~~~~~~~~~~~~~
taos_stmt_bind_param
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:211:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:218:108: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
call_taos_stmt_bind_param(const char *file, int line, const char *func, TAOS_STMT *stmt, TAOS_MULTI_BIND *bind)
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:227:114: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
aos_stmt_bind_param_batch(const char *file, int line, const char *func, TAOS_STMT *stmt, TAOS_MULTI_BIND *bind)
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:236:121: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
t_bind_single_param_batch(const char *file, int line, const char *func, TAOS_STMT *stmt, TAOS_MULTI_BIND *bind, int colIdx)
^~~~~~~~~~~~~~~
TAOS_BIND
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_add_batch':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:249:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_execute':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:258:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_use_result':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:267:3: note: in expansion of macro 'diag_stmt'
diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_errstr':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:286:10: error: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Werror=int-conversion]
return taos_stmt_errstr(stmt);
^~~~~~~~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_affected_rows':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:292:11: error: implicit declaration of function 'taos_stmt_affected_rows'; did you mean 'call_taos_stmt_affected_rows'? [-Werror=implicit-function-declaration]
int r = taos_stmt_affected_rows(stmt);
^~~~~~~~~~~~~~~~~~~~~~~
call_taos_stmt_affected_rows
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:293:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_stmt_affected_rows_once':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:301:11: error: implicit declaration of function 'taos_stmt_affected_rows_once'; did you mean 'call_taos_stmt_affected_rows_once'? [-Werror=implicit-function-declaration]
int r = taos_stmt_affected_rows_once(stmt);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
call_taos_stmt_affected_rows_once
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:47:21: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
const char *_s2 = taos_stmt_errstr(__stmt);
^~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:302:10: note: in expansion of macro 'diag_stmt'
if (r) diag_stmt(stmt);
^~~~~~~~~
In file included from /home/diana/workspaces/taos_odbc/src/core/internal.h:39,
from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_kill_query':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:345:3: error: implicit declaration of function 'taos_kill_query'; did you mean 'taos_stop_query'? [-Werror=implicit-function-declaration]
taos_kill_query(taos);
^~~~~~~~~~~~~~~
taos_stop_query
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_is_null':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:414:12: error: implicit declaration of function 'taos_is_null'; did you mean 'call_taos_is_null'? [-Werror=implicit-function-declaration]
bool b = taos_is_null(res, row, col);
^~~~~~~~~~~~
call_taos_is_null
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_is_update_query':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:423:12: error: implicit declaration of function 'taos_is_update_query'; did you mean 'call_taos_is_update_query'? [-Werror=implicit-function-declaration]
bool b = taos_is_update_query(res);
^~~~~~~~~~~~~~~~~~~~
call_taos_is_update_query
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_fetch_block_s':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:442:11: error: implicit declaration of function 'taos_fetch_block_s'; did you mean 'taos_fetch_block'? [-Werror=implicit-function-declaration]
int r = taos_fetch_block_s(res, numOfRows, rows);
^~~~~~~~~~~~~~~~~~
taos_fetch_block
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_fetch_raw_block':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:453:11: error: implicit declaration of function 'taos_fetch_raw_block'; did you mean 'taos_fetch_block'? [-Werror=implicit-function-declaration]
int r = taos_fetch_raw_block(res, numOfRows, pData);
^~~~~~~~~~~~~~~~~~~~
taos_fetch_block
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_get_column_data_offset':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:464:12: error: implicit declaration of function 'taos_get_column_data_offset'; did you mean 'call_taos_get_column_data_offset'? [-Werror=implicit-function-declaration]
int *p = taos_get_column_data_offset(res, columnIndex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
call_taos_get_column_data_offset
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:464:12: error: initialization of 'int *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_reset_current_db':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:482:3: error: implicit declaration of function 'taos_reset_current_db'; did you mean 'call_taos_reset_current_db'? [-Werror=implicit-function-declaration]
taos_reset_current_db(taos);
^~~~~~~~~~~~~~~~~~~~~
call_taos_reset_current_db
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_result_block':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:499:17: error: implicit declaration of function 'taos_result_block'; did you mean 'call_taos_result_block'? [-Werror=implicit-function-declaration]
TAOS_ROW *p = taos_result_block(res);
^~~~~~~~~~~~~~~~~
call_taos_result_block
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:499:17: error: initialization of 'void ***' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:539:113: error: unknown type name '__taos_async_fn_t'; did you mean '__compar_fn_t'?
_taos_query_a(const char *file, int line, const char *func, TAOS *taos, const char *sql, __taos_async_fn_t fp, void *param)
^~~~~~~~~~~~~~~~~
__compar_fn_t
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:547:104: error: unknown type name '__taos_async_fn_t'; did you mean '__compar_fn_t'?
void call_taos_fetch_rows_a(const char *file, int line, const char *func, TAOS_RES *res, __taos_async_fn_t fp, void *param)
^~~~~~~~~~~~~~~~~
__compar_fn_t
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:555:109: error: unknown type name '__taos_async_fn_t'; did you mean '__compar_fn_t'?
call_taos_fetch_raw_block_a(const char *file, int line, const char *func, TAOS_RES *res, __taos_async_fn_t fp, void *param)
^~~~~~~~~~~~~~~~~
__compar_fn_t
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_get_raw_block':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:566:19: error: implicit declaration of function 'taos_get_raw_block'; did you mean 'call_taos_get_raw_block'? [-Werror=implicit-function-declaration]
const void *p = taos_get_raw_block(res);
^~~~~~~~~~~~~~~~~~
call_taos_get_raw_block
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:566:19: error: initialization of 'const void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_schemaless_insert':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:584:19: error: implicit declaration of function 'taos_schemaless_insert'; did you mean 'call_taos_schemaless_insert'? [-Werror=implicit-function-declaration]
TAOS_RES *res = taos_schemaless_insert(taos, lines, numLines, protocol, precision);
^~~~~~~~~~~~~~~~~~~~~~
call_taos_schemaless_insert
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:584:19: error: initialization of 'TAOS_RES *' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: At top level:
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:629:15: error: unknown type name 'TSDB_SERVER_STATUS'
static inline TSDB_SERVER_STATUS call_taos_check_server_status(const char *file, int line, const char *func, const char *fqdn, int port, char *details, int maxlen)
^~~~~~~~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h: In function 'call_taos_check_server_status':
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:632:3: error: unknown type name 'TSDB_SERVER_STATUS'; did you mean 'SQL_SERVER_NAME'?
TSDB_SERVER_STATUS r = taos_check_server_status(fqdn, port, details, maxlen);
^~~~~~~~~~~~~~~~~~
SQL_SERVER_NAME
/home/diana/workspaces/taos_odbc/inc/taos_helpers.h:632:26: error: implicit declaration of function 'taos_check_server_status'; did you mean 'call_taos_check_server_status'? [-Werror=implicit-function-declaration]
TSDB_SERVER_STATUS r = taos_check_server_status(fqdn, port, details, maxlen);
^~~~~~~~~~~~~~~~~~~~~~~~
call_taos_check_server_status
In file included from /home/diana/workspaces/taos_odbc/src/core/desc.c:25:
/home/diana/workspaces/taos_odbc/src/core/internal.h: At top level:
/home/diana/workspaces/taos_odbc/src/core/internal.h:210:3: error: unknown type name 'TAOS_FIELD_E'
TAOS_FIELD_E *field;
^~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/src/core/internal.h:233:83: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
SQLRETURN (*create_buffer_array)(stmt_t *stmt, desc_record_t *record, int rows, TAOS_MULTI_BIND *mb);
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/src/core/internal.h:234:83: error: unknown type name 'TAOS_MULTI_BIND'; did you mean 'TAOS_BIND'?
SQLRETURN (*create_length_array)(stmt_t *stmt, desc_record_t *record, int rows, TAOS_MULTI_BIND *mb);
^~~~~~~~~~~~~~~
TAOS_BIND
/home/diana/workspaces/taos_odbc/src/core/internal.h:324:3: error: unknown type name 'TAOS_FIELD_E'
TAOS_FIELD_E *tag_fields;
^~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/src/core/internal.h:326:3: error: unknown type name 'TAOS_FIELD_E'
TAOS_FIELD_E *col_fields;
^~~~~~~~~~~~
/home/diana/workspaces/taos_odbc/src/core/internal.h:329:3: error: unknown type name 'TAOS_MULTI_BIND'
TAOS_MULTI_BIND *mbs;
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/core/CMakeFiles/core_obj.dir/build.make:63: src/core/CMakeFiles/core_obj.dir/desc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1231: src/core/CMakeFiles/core_obj.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

@DianaZhao
Copy link
Author

I know what cause that failure. I had built TDengine main branch at that machine, the main branch version is 2.0. Today I checked out 3.0 branch and built and install it, then rebuild taos_odbc, the errors gone.

@freemine
Copy link
Collaborator

you can now try windows-port of taos-odbc driver.
btw, better use TDengine-git-commit "ea249127afb42ac3a31d8d9f63243c3d1b950b5d" or above,
otherwise, you might come across memory leakage introduced by taos_stmt_get_tag_fields/taos_stmt_get_col_fields
for more information, please check:
taosdata/TDengine#18804
taosdata/TDengine#19245

wish you have fun and any comments are welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants