From: Caleb Ramírez Date: August 3 2012 1:03pm Subject: Re: mysql-connector-odbc-5.1.11 Fails to build List-Archive: http://lists.mysql.com/myodbc/11744 Message-Id: <501BCC04.2040302@helvex.com.mx> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------000906040305030606010709" --------------000906040305030606010709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, I'm trying to build mysql-connector-odbc on AIX 6.1. I've installed MySQL client libraries and include files from source in /usr/local/mysql. The cmake version is 2.8.8. There are insalled unixODBC and iODBC managers and cmake finishes successfully. But when make is launched it exits with folowing error: Scanning dependencies of target myodbc3u [ 2%] Building C object util/CMakeFiles/myodbc3u.dir/stringutil.c.o /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127:15: error: macro "my_free" requires 2 arguments, but only 1 given /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c: In function 'sqlchar_as_sqlwchar': /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error: 'my_free' undeclared (first use in this function) /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error: (Each undeclared identifier is reported only once /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:127: error: for each function it appears in.) -------I "fixed" the problem by setting same definitions for macro my_free on dirver/driver.h and util/stringutil.h but another error came up:----------- Target "util/CMakeFiles/myodbc3u.dir/build" is up to date. [ 8%] Built target myodbc3u [ 10%] Building C object driver/CMakeFiles/myodbc5.dir/ansi.c.o [ 12%] Building C object driver/CMakeFiles/myodbc5.dir/catalog.c.o [ 14%] Building C object driver/CMakeFiles/myodbc5.dir/catalog_no_i_s.c.o [ 16%] Building C object driver/CMakeFiles/myodbc5.dir/connect.c.o /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c: In function 'MySQLDriverConnect': /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error: 'RTLD_GLOBAL' undeclared (first use in this function) /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error: (Each undeclared identifier is reported only once /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error: for each function it appears in.) /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: error: 'RTLD_LAZY' undeclared (first use in this function) /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:614: warning: assignment makes pointer from integer without a cast /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:638: warning: passing argument 3 of 'set_dbc_error' makes pointer from integer without a cast And now I'm stucked here, can anybody help me please? Regards --------------000906040305030606010709--