Bug #87415 Trying to build MySQL-connector in AIX 7.1
Submitted: 14 Aug 2017 20:30 Modified: 16 Sep 2017 13:09
Reporter: Bruno Domenici Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / ODBC Severity:S3 (Non-critical)
Version:mysql-connector-odbc-5.3.9 OS:Other
Assigned to: Assigned Account CPU Architecture:Any
Tags: mysql-connector

[14 Aug 2017 20:30] Bruno Domenici
Description:
Hi,

I'm trying to build mysql-connector-odbc-5.3.9 on AIX 7.1 and I'm receiving the error on make:

make
Target "util/CMakeFiles/myodbc-util.dir/build" is up to date.
[  5%] Built target myodbc-util
Scanning dependencies of target myodbc5a
[  6%] Building C object driver/CMakeFiles/myodbc5a.dir/catalog.c.o
In file included from /install/mysql-connector-odbc-5.3.9-src/driver/../MYODBC_MYSQL.h:31:0,
                 from /install/mysql-connector-odbc-5.3.9-src/driver/driver.h:33,
                 from /install/mysql-connector-odbc-5.3.9-src/driver/catalog.c:30:
/usr/include/mysql/mysql.h:319:51: error: expected ')' before '->' token
 #define net_buffer_length (*mysql_get_parameters()->p_net_buffer_length)
                                                   ^
/install/mysql-connector-odbc-5.3.9-src/driver/driver.h:381:17: note: in expansion of macro 'net_buffer_length'
   ulong         net_buffer_length
                 ^
{{ommited lines}}

Stop.

I don't have C skills.

How to repeat:
Execute make on mysql-connector-odbc on AIX 7.1.
[16 Aug 2017 10:29] Bogdan Degtyariov
Hi Bruno,

What is the version of MySQL Server you are using to build the ODBC driver?
I am asking because the process of building of MySQL ODBC driver requires MySQL includes and libraries.
Thanks.
[16 Aug 2017 12:12] Bruno Domenici
I'm using MySQL 5.5.10. 
I'll equalize MySQL version with connector. I come back here to tell the results.
Thank you.
[16 Aug 2017 12:25] Bruno Domenici
Could you tell me which what MySQL Server version is compatible with MySQL connector 5.3.9? I've tried do find a MySQL version 5.3, but I cannot find it.
Thank you.
[16 Aug 2017 13:09] Bogdan Degtyariov
There is no obvious correspondence between the version of MySQL Server and MySQL Connector/ODBC.

We recommend using MySQL Server 5.7.18 for building the ODBC driver 5.3.9.
Unfortunately, any MySQL 5.5 will work for you because of the changes in the server headers. Some versions of MySQL 5.6 (like 5.6.20 and newer) might work, but we never tested it thoroughly.
I hope it helps.
[17 Sep 2017 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".