MySQL Forums
Forum List  »  Source, Builds, Binaries

connector ODBC compile
Posted by: zte zte
Date: December 05, 2016 07:35PM

1、Linux os
mysql57@Suselinux12:~/ConnectorODBCnew/src/BUILD> uname -a
Linux Suselinux12 3.12.49-11-default #1 SMP Wed Nov 11 20:52:43 UTC 2015 (8d714a0) x86_64 x86_64 x86_64 GNU/Linux
mysql57@Suselinux12:~/ConnectorODBCnew/src/BUILD> lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 12 SP1
Release: 12.1
Codename: n/a

2、complie mysql-connector-odbc-5.3.6-src with mysql 5.7.16
1) cmake .. -G "Unix Makefiles" -DODBC_INCLUDES=/home/mysql57/ConnectorODBCnew/unixODBC2.2.11_lib/include -DODBC_LIB_DIR=/home/mysql57/ConnectorODBCnew/unixODBC2.2.11_lib/lib64 -DWITH_UNIXODBC=1 -DMYSQLCLIENT_LIB_NAME=mysqlclient -DMYSQL_CONFIG_EXECUTABLE=/home/mysql57/bin/mysql_config -DMYSQL_CXX_LINKAGE=1
2) make
3) then report failures:
mysql57@Suselinux12:~/ConnectorODBCnew/src/BUILD> cmake .. -G "Unix Makefiles" -DODBC_INCLUDES=/home/mysql57/ConnectorODBCnew/unixODBC2.2.11_lib/include -DODBC_LIB_DIR=/home/mysql57/ConnectorODBCnew/unixODBC2.2.11_lib/lib64 -DWITH_UNIXODBC=1 -DMYSQLCLIENT_LIB_NAME=mysqlclient -DMYSQL_CONFIG_EXECUTABLE=/home/mysql57/bin/mysql_config -DMYSQL_CXX_LINKAGE=1
-- Configuring to build Unicode driver
-- Configuring to build ANSI driver
-- mysql_config was found /home/mysql57/bin/mysql_config
-- ENV{MYSQL_DIR} = /home/mysql57
-- MySQL Include dir: /home/mysql57/ConnectorODBCnew/include
-- MySQL Library : /home/mysql57/ConnectorODBCnew/mysql_lib/libmysqlclient.so;rt
-- MySQL Library dir: /home/mysql57/ConnectorODBCnew/mysql_lib
-- MySQL CXXFLAGS: -I/home/mysql57/include -fabi-version=2 -fno-omit-frame-pointer
-- MySQL Link flags:
-- MySQL Version: 5.7.16
-- MySQL Include dir: /home/mysql57/ConnectorODBCnew/include
-- MySQL Library dir: /home/mysql57/ConnectorODBCnew/mysql_lib
-- MySQL CXXFLAGS: -I/home/mysql57/include -fabi-version=2 -fno-omit-frame-pointer
-- MySQL Link flags:
-- Checking if LPCWSTR type is present - FALSE
-- Checking if SQLColAttribute last arg is compatible with SQLLEN* - FALSE
-- Checking if SQLColAttribute last arg is compatible with SQLPOINTER - TRUE
-- Checking if SQLParamOptions() 2nd and 3rd arg is compatible with SQLULEN - TRUE
-- Enabling threads support
-- Installation library subdir: lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mysql57/ConnectorODBCnew/src/BUILD
mysql57@Suselinux12:~/ConnectorODBCnew/src/BUILD> make
[ 1%] Building C object util/CMakeFiles/myodbc-util.dir/stringutil.c.o
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘sqlchar_as_sqlwchar’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:72:5: error: too few arguments to function ‘my_malloc’
SQLCHAR *u8= (SQLCHAR *)my_malloc(u8_max, MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:91:3: error: too few arguments to function ‘my_malloc’
out= (SQLWCHAR *)my_malloc(out_bytes, MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘sqlwchar_as_sqlchar’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:170:3: error: too few arguments to function ‘my_malloc’
out= (SQLCHAR *)my_malloc(out_bytes, MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘sqlwchar_as_utf8_ext’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:244:25: error: too few arguments to function ‘my_malloc’
MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘sqlchar_as_sqlchar’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:408:3: error: too few arguments to function ‘my_malloc’
conv= (SQLCHAR *)my_malloc(bytes + 1, MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘copy_and_convert’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:519:32: warning: initialization from incompatible pointer type [enabled by default]
const uchar *)= from_cs->cset->mb_wc;
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:521:5: warning: initialization from incompatible pointer type [enabled by default]
to_cs->cset->wc_mb;
^
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c: In function ‘sqlwchardup’:
/home/mysql57/ConnectorODBCnew/src/util/stringutil.c:646:3: error: too few arguments to function ‘my_malloc’
SQLWCHAR *res= (SQLWCHAR *)my_malloc((chars + 1) * sizeof(SQLWCHAR), MYF(0));
^
In file included from /home/mysql57/ConnectorODBCnew/include/my_sys.h:24:0,
from /home/mysql57/ConnectorODBCnew/src/util/../MYODBC_MYSQL.h:30,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.h:37,
from /home/mysql57/ConnectorODBCnew/src/util/stringutil.c:32:
/home/mysql57/ConnectorODBCnew/include/mysql/service_mysql_alloc.h:66:15: note: declared here
extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
^
util/CMakeFiles/myodbc-util.dir/build.make:51: recipe for target 'util/CMakeFiles/myodbc-util.dir/stringutil.c.o' failed
make[2]: *** [util/CMakeFiles/myodbc-util.dir/stringutil.c.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'util/CMakeFiles/myodbc-util.dir/all' failed
make[1]: *** [util/CMakeFiles/myodbc-util.dir/all] Error 2
Makefile:130: recipe for target 'all' failed
make: *** [all] Error 2

questions:
mysql-connector-odbc-5.3.6-src cannot support mysql 5.7.16 ?

Options: ReplyQuote


Subject
Views
Written By
Posted
connector ODBC compile
604
December 05, 2016 07:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.