MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: Building ODBC driver from Source code for AIX platform
Posted by: John Smith
Date: September 18, 2017 01:17PM

Hi Bjorn,

I have managed to run 'cmake -G "Unix Makefiles"' command successfully. Now I am trying to build the driver libraries using "make" and it is failing with below error. Any idea on below?

#################
> make
Scanning dependencies of target myodbc-util
[ 0%] Building C object util/CMakeFiles/myodbc-util.dir/stringutil.c.o
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/stringutil.c: In function 'copy_and_convert':
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/stringutil.c:526:32: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
const uchar *)= from_cs->cset->mb_wc;
^~~~~~~
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/stringutil.c:528:5: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
to_cs->cset->wc_mb;
^~~~~
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/stringutil.c: In function 'myodbc_strlwr':
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/stringutil.c:753:11: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
*c++= tolower(*c);
^~~~~~~
[ 1%] Building C object util/CMakeFiles/myodbc-util.dir/unicode_transcode.c.o
[ 2%] Building C object util/CMakeFiles/myodbc-util.dir/installer.c.o
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/installer.c: In function 'driver_lookup_name':
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/installer.c:46:38: warning: implicit declaration of function 'MySQLGetPrivateProfileStringW' [-Wimplicit-function-declaration]
# define SQLGetPrivateProfileStringW MySQLGetPrivateProfileStringW
^
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/util/installer.c:433:15: note: in expansion of macro 'SQLGetPrivateProfileStringW'
if (!(len = SQLGetPrivateProfileStringW(NULL, NULL, W_EMPTY, pdrv, 16383,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 3%] Building C object util/CMakeFiles/myodbc-util.dir/odbcinstw.c.o
[ 3%] Linking C static library ../lib/libmyodbc-util.a
Target "util/CMakeFiles/myodbc-util.dir/build" is up to date.
[ 3%] Built target myodbc-util
Scanning dependencies of target myodbc5a
[ 4%] Building C object driver/CMakeFiles/myodbc5a.dir/catalog.c.o
In file included from /usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/driver/../MYODBC_MYSQL.h:31:0,
from /usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/driver/driver.h:33,
from /usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/driver/catalog.c:30:
/usr/emms_inbound/my-sql/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64/include/mysql.h:349:51: error: expected ')' before '->' token
#define net_buffer_length (*mysql_get_parameters()->p_net_buffer_length)
^
/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/driver/driver.h:381:17: note: in expansion of macro 'net_buffer_length'
ulong net_buffer_length;
^~~~~~~~~~~~~~~~~
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 2.


Stop.
############

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Building ODBC driver from Source code for AIX platform
79
September 18, 2017 01:17PM


Sorry, only registered users may post in this forum.

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.