# make [ 0%] Building CXX object util/CMakeFiles/myodbc-util.dir/stringutil.cc.o In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:83:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /root/mysql-connector-odbc-8.0.12-src/util/../include/sys_main.h:111:3: error: conflicting declaration ‘typedef struct st_mem_root MEM_ROOT’ } MEM_ROOT; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:161:8: error: ‘struct MEM_ROOT’ has a previous declaration as ‘struct MEM_ROOT’ struct MEM_ROOT; ^ In file included from /usr/local/mysql/include/mysql.h:80:0, from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/my_list.h:53:14: error: previous declaration of ‘LIST* list_add(LIST*, LIST*)’ with ‘C++’ linkage extern LIST *list_add(LIST *root, LIST *element); ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:83:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /root/mysql-connector-odbc-8.0.12-src/util/../include/sys_main.h:171:48: error: conflicts with new declaration with ‘C’ linkage extern LIST *list_add(LIST *root, LIST *element); ^ In file included from /usr/local/mysql/include/mysql.h:80:0, from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/my_list.h:54:14: error: previous declaration of ‘LIST* list_delete(LIST*, LIST*)’ with ‘C++’ linkage extern LIST *list_delete(LIST *root, LIST *element); ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:83:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /root/mysql-connector-odbc-8.0.12-src/util/../include/sys_main.h:172:51: error: conflicts with new declaration with ‘C’ linkage extern LIST *list_delete(LIST *root, LIST *element); ^ /root/mysql-connector-odbc-8.0.12-src/util/../include/sys_main.h:480:3: error: conflicting declaration ‘typedef struct charset_info_st CHARSET_INFO’ } CHARSET_INFO; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: ‘struct CHARSET_INFO’ has a previous declaration as ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc: In function ‘SQLWCHAR* sqlchar_as_sqlwchar(CHARSET_INFO*, SQLCHAR*, SQLINTEGER*, uint*)’: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:67:4: note: in definition of macro ‘is_utf8_charset’ (number == 33 || number == 83 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:67:20: note: in definition of macro ‘is_utf8_charset’ (number == 33 || number == 83 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:5: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:22: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:40: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:69:4: note: in definition of macro ‘is_utf8_charset’ number == 45 || number == 46 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:69:20: note: in definition of macro ‘is_utf8_charset’ number == 45 || number == 46 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:70:5: note: in definition of macro ‘is_utf8_charset’ (number >= 224 && number <= 243)) ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:71:36: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (!is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:70:22: note: in definition of macro ‘is_utf8_charset’ (number >= 224 && number <= 243)) ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:74:40: error: invalid use of incomplete type ‘struct CHARSET_INFO’ size_t u8_max= (*len / charset_info->mbminlen * ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:75:38: error: invalid use of incomplete type ‘struct CHARSET_INFO’ utf8_charset_info->mbmaxlen + 1); ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc: In function ‘SQLCHAR* sqlwchar_as_sqlchar(CHARSET_INFO*, SQLWCHAR*, SQLINTEGER*, uint*)’: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:67:4: note: in definition of macro ‘is_utf8_charset’ (number == 33 || number == 83 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:67:20: note: in definition of macro ‘is_utf8_charset’ (number == 33 || number == 83 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:5: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:22: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:68:40: note: in definition of macro ‘is_utf8_charset’ (number >= 192 && number <= 211) || number == 253 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:69:4: note: in definition of macro ‘is_utf8_charset’ number == 45 || number == 46 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:69:20: note: in definition of macro ‘is_utf8_charset’ number == 45 || number == 46 || \ ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:70:5: note: in definition of macro ‘is_utf8_charset’ (number >= 224 && number <= 243)) ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36:0: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:162:35: error: invalid use of incomplete type ‘struct CHARSET_INFO’ if (is_utf8_charset(charset_info->number)) ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:70:22: note: in definition of macro ‘is_utf8_charset’ (number >= 224 && number <= 243)) ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:173:33: error: invalid use of incomplete type ‘struct CHARSET_INFO’ out_bytes= *len * charset_info->mbmaxlen * sizeof(SQLCHAR) + 1; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc: In function ‘SQLCHAR* sqlchar_as_sqlchar(CHARSET_INFO*, CHARSET_INFO*, SQLCHAR*, SQLINTEGER*, uint*)’: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:418:30: error: invalid use of incomplete type ‘struct CHARSET_INFO’ bytes= (*len / from_charset->mbminlen * to_charset->mbmaxlen); ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:418:53: error: invalid use of incomplete type ‘struct CHARSET_INFO’ bytes= (*len / from_charset->mbminlen * to_charset->mbmaxlen); ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc: In function ‘uint32 copy_and_convert(char*, uint32, CHARSET_INFO*, const char*, uint32, CHARSET_INFO*, uint32*, uint32*, uint*)’: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:529:22: error: invalid use of incomplete type ‘struct CHARSET_INFO’ auto mb_wc= from_cs->cset->mb_wc; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:530:20: error: invalid use of incomplete type ‘struct CHARSET_INFO’ auto wc_mb= to_cs->cset->wc_mb; ^ In file included from /root/mysql-connector-odbc-8.0.12-src/util/../MYODBC_MYSQL.h:82:0, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.h:37, from /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:36: /usr/local/mysql/include/mysql.h:298:10: error: forward declaration of ‘struct CHARSET_INFO’ struct CHARSET_INFO *charset; ^ /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc: In function ‘char* myodbc_strlwr(char*, size_t)’: /root/mysql-connector-odbc-8.0.12-src/util/stringutil.cc:755:21: error: ‘tolower’ was not declared in this scope *c++= tolower(*c); ^ make[2]: *** [util/CMakeFiles/myodbc-util.dir/stringutil.cc.o] Error 1 make[1]: *** [util/CMakeFiles/myodbc-util.dir/all] Error 2 make: *** [all] Error 2